import { IconType } from '@roomstay/ui';
import React from 'react';
interface ErrorContextType {
    addError: (error: ErrorType) => void;
}
interface ErrorType {
    id?: number;
    retry?: () => void;
    message: string;
    title?: string;
    icon?: IconType;
    buttonText?: string;
}
declare const ErrorContext: React.Context<ErrorContextType | null>;
export default ErrorContext;
interface ErrorContextWrapperProps {
    children: React.ReactNode;
}
export declare const ErrorHandler: {
    add: (error: ErrorType) => void;
} | any;
export declare function ErrorContextWrapper(props: ErrorContextWrapperProps): React.JSX.Element;
