import type { SearchFacet, SearchFacetCount } from '@redocly/theme/core/types';
import type { SearchRequestParams, SearchResponse as ISearchResponse, FacetCountsRequestParams } from '../../../../../types/index.js';
import type { AfterRoutesCreatedActions, SearchEngine, AuthDetails, AddDocumentsParams, SearchDocument } from '../../../../types';
export declare class Typesense implements SearchEngine {
    #private;
    constructor();
    initIndexSchema(searchFacets: Map<string, SearchFacet>): Promise<void>;
    addDocuments(documents: SearchDocument[], params: AddDocumentsParams): Promise<void>;
    search(params: SearchRequestParams, auth: AuthDetails): Promise<ISearchResponse>;
    exportDocuments(outDir: string): Promise<void>;
    exportIndexes(outDir: string): Promise<void>;
    import(_sourceDir: string): Promise<void>;
    countFacets(params: FacetCountsRequestParams, auth: AuthDetails): Promise<Record<string, SearchFacetCount[]>>;
    cleanupFacetValues(actions: AfterRoutesCreatedActions): void;
}
//# sourceMappingURL=index.d.ts.map