import type { ExportHandler, IndexOptionsForDocumentSearch } from 'flexsearch';
import type { FlexSearchData, SearchIndex, SearchParameters, SearchDocument } from '../../../../types';
import type { SearchResponse } from '../../../../../types/index.js';
export declare class FlexSearchIndex implements SearchIndex {
    #private;
    id: string;
    constructor(id: string, indexConfig: IndexOptionsForDocumentSearch<string>);
    get documents(): MapIterator<[number, SearchDocument]>;
    get documentsCount(): number;
    clearDocuments(): void;
    export(handler: ExportHandler<string | SearchDocument>): Promise<void>;
    import(searchData: FlexSearchData): Promise<void>;
    add(document: SearchDocument): void;
    search(params: SearchParameters): Promise<SearchResponse>;
}
//# sourceMappingURL=search-index.d.ts.map