import { type ServerErrorMessage } from '../../api/websocket';
interface BackendErrorContext {
    clearErrors: () => void;
    errors: ServerErrorMessage['message'][];
}
/**
 * Provides a live stream of backend errors
 */
export declare function BackendErrorsProvider(props: {
    children: JSX.Element;
}): JSX.Element;
/**
 * Get the current backend errors from context
 */
export declare function useBackendErrors(): BackendErrorContext;
export {};
//# sourceMappingURL=backend-errors-ctx.d.ts.map