import React from 'react';
import { type AutopilotChatError, type AutopilotChatErrorLevel } from '../service';
interface AutopilotErrorContextType {
    error: AutopilotChatError | undefined;
    setError: (message: string | undefined, level?: AutopilotChatErrorLevel) => void;
    clearError: () => void;
}
export declare const AutopilotErrorContext: React.Context<AutopilotErrorContextType>;
export declare function AutopilotErrorProvider({ children }: {
    children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export declare function useError(): AutopilotErrorContextType;
export {};
//# sourceMappingURL=error-provider.d.ts.map