import { default as React } from 'react';
import { SearchResult } from '../../lib/search';
interface SearchContextValue {
    isLoaded: boolean;
    isLoading: boolean;
    error: string | null;
    search: (query: string) => Promise<SearchResult[]>;
    results: SearchResult[];
    query: string;
    setQuery: (query: string) => void;
    open: boolean;
    setOpen: (open: boolean) => void;
    loadIndex: () => Promise<void>;
}
export declare function useSearch(): SearchContextValue;
interface SearchProviderProps {
    children: React.ReactNode;
    lang?: string;
    enabled?: boolean;
    maxResults?: number;
    enableHotkeys?: boolean;
}
export declare function SearchProvider({ children, lang, enabled, maxResults, enableHotkeys, }: SearchProviderProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=SearchProvider.d.ts.map