import React, { ReactNode } from 'react';
import Surreal from 'surrealdb.js';
export interface SurrealContextType {
    database?: InstanceType<typeof Surreal>;
    isReady: boolean;
    hasError: boolean;
    errorMessage: string;
}
export declare const SurrealContext: React.Context<SurrealContextType>;
export interface SurrealProviderProps {
    children?: ReactNode;
    database: InstanceType<typeof Surreal>;
    options: {
        user: string;
        pass: string;
        database: string;
        namespace: string;
    };
}
export declare const DatabaseProvider: ({ children, database, options }: SurrealProviderProps) => JSX.Element;
export declare const useSurreal: () => SurrealContextType;
