interface ToastParams { message: string; severity?: 'success' | 'error' | 'info'; /** * The error object from catch statement. */ error?: unknown; /** * Set the duration of toast in milisecond. * * @default 3000 - 3s */ life?: number; group?: string; } export interface ToastMethod { add(params: ToastParams): void; /** * Clears the messages that belongs to the group. * @param {string} group - Name of the message group. */ removeGroup(group: string): void; removeAllGroups(): void; } declare const useToast: () => ToastMethod; export default useToast;