UNPKG

@playbooks/ui

Version:

An interface library for Playbooks.

40 lines (36 loc) 1.1 kB
// Generated by dts-bundle-generator v9.5.1 import React$1 from 'react'; export type InterfaceProps = { ref?: any; meta: any; theme?: any; createPortal: any; toggleScroll: any; }; export declare const InterfaceContext: React$1.Context<InterfaceProps>; export declare const InterfaceProvider: ({ meta, theme, children }: { meta: any; theme?: any; children: any; }) => import("react/jsx-runtime").JSX.Element; export declare const useInterface: () => InterfaceProps; export declare const LoadingContext: React$1.Context<any>; export declare const LoadingProvider: ({ children }: { children: any; }) => import("react/jsx-runtime").JSX.Element; export interface ToastContextProps { showSuccess: (title: any, message: any) => any; showInfo: (title: any, message: any) => any; showError: (v: any) => any; } export interface errorProps { type?: string; status?: number; title?: string; message?: string; } export declare const ToastProvider: ({ children }: { children: any; }) => import("react/jsx-runtime").JSX.Element; export declare const useToast: () => ToastContextProps; export {};