import type { ISearchProvider, ISearchResult } from '@diplodoc/components';
import type { SearchConfig, SearchProviderExtended } from '../types';
export declare class DefaultSearchProvider implements ISearchProvider, SearchProviderExtended {
    private worker;
    private config;
    constructor(config: SearchConfig);
    init: () => void;
    suggest(query: string): Promise<ISearchResult[]>;
    search(query: string, page?: number, count?: number): Promise<{
        items: ISearchResult[];
        total: number;
    }>;
    link: (query: string, page?: number) => string;
    private get base();
    private request;
}
export declare function createProvider(config: SearchConfig): ISearchProvider | null;
export declare const SearchProvider: typeof DefaultSearchProvider;
