import { CreateOptions, Index } from "flexsearch";
import { IIndex } from "../../../api";
interface IDocument {
    text: string;
}
export declare class FlexSearchIndex implements IIndex {
    readonly flexSearch: Index<IDocument>;
    constructor(customConfig?: CreateOptions);
    add(element: string): void;
    search(query: string, limit?: number): Promise<string[]>;
    clear(): void;
}
export {};
