@solfacil/girassol
Version:
Girassol design system
15 lines (14 loc) • 885 B
TypeScript
import type { ContentTostParams, Position, ToastOptionsLimited } from './types';
type createToastReturn = {
close: (id: number, position: Position) => void;
};
declare function clearAllToasts(): void;
export declare function useToast(): {
createToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
createErrorToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
createSuccessToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
createInformativeToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
createWarningToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
clearAllToasts: typeof clearAllToasts;
};
export {};