import type { SearchDocument, SearchFacet, SearchFacetCount } from '@redocly/theme';
import type { AfterRoutesCreatedActions, SearchEngine } from '../../../../types';
import type { SearchRequestParams, SearchResponse, FacetCountsRequestParams } from '../../../../../types/index.js';
export declare class FlexSearch implements SearchEngine {
    private indexes;
    private indexSchema;
    initIndexSchema(_facets: Map<string, SearchFacet>): Promise<void>;
    private getIndex;
    private createIndex;
    addDocuments(group: string, locale: string, documents: SearchDocument[]): void;
    search(params: SearchRequestParams, _facets?: Map<string, SearchFacet>): Promise<SearchResponse>;
    export(outDir: string): Promise<void>;
    import(sourceDir: string): Promise<void>;
    countFacets(_params: FacetCountsRequestParams, facets: Map<string, SearchFacet>): Record<string, SearchFacetCount[]>;
    cleanupFacetValues(_actions: AfterRoutesCreatedActions): void;
}
//# sourceMappingURL=index.d.ts.map