import type { WorkerConfig } from '@diplodoc/search-extension';
import type { BuildRun, EntryInfo, SearchProvider } from "../..";
export type ProviderConfig = Pick<WorkerConfig, 'tolerance' | 'confidence'> & {
    enabled: boolean;
};
export declare class LocalSearchProvider implements SearchProvider {
    private run;
    private _config;
    private indexer;
    private outputDir;
    private apiLink;
    private nocache;
    constructor(run: BuildRun, config: ProviderConfig);
    add(path: string, lang: string, info: EntryInfo): Promise<void>;
    release(): Promise<void>;
    config(lang: string): {
        api: string;
        provider: string;
        link: string;
        tolerance: number;
        confidence: import("node_modules/@diplodoc/search-extension/lib/types").Confidence | "phrased" | "sparsed";
        enabled: boolean;
    };
    resourcesLink(lang: string): string;
    private resources;
    private indexLink;
    private registryLink;
    private languageLink;
    private pageLink;
}
