import { ReactNode } from 'react'; /** * Shape of a single error item. */ export interface AppError { id: string; message: string; title?: string; type?: 'error' | 'warning' | 'info'; autoClose?: boolean; } /** * The shape of the error context. */ interface ErrorContextType { errors: AppError[]; addError: (error: Omit) => void; removeError: (id: string) => void; } /** * Custom hook to access the ErrorContext. * Throws an error if used outside of an ErrorProvider. */ export declare const useError: () => ErrorContextType; /** * Provider component that encapsulates the error state and logic. */ export declare const ErrorProvider: ({ children }: { children: ReactNode; }) => import("react/jsx-runtime").JSX.Element; export {};