import React, { ReactNode } from 'react'; import { Severity } from '../../../constants/severity.types'; import { ToastActionConfig } from '../Toast'; export type ToastConfig = { id?: string; title?: ReactNode; message?: ReactNode; severity?: Severity; action?: ToastActionConfig; duration?: number; }; type ToastContextValue = { showToast: (config: ToastConfig) => string; hideToast: (id: string) => void; clearToasts: () => void; }; type ToastProviderProps = { children: ReactNode; defaultDuration?: number; }; export declare function ToastProvider({ children, defaultDuration, }: ToastProviderProps): React.ReactNode; export declare function useToast(): ToastContextValue; export declare function useOptionalToast(): ToastContextValue | undefined; export {};