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