import type { VectorKey, VectorStore } from '.';
/** MMap based vector store */
export declare class MMapVector<V extends VectorKey> implements VectorStore<V> {
    #private;
    /** @param fileName - the path + file name without the extension */
    constructor(fileName?: string);
    /** @returns the length of the store */
    get length(): number;
    /**
     * Push a value into the store
     * @param value - the value to store
     */
    push(value: V): void;
    /**
     * @param index - the position in the store to get the value from
     * @returns the value
     */
    get(index: number): Promise<V>;
    /** Sort the store */
    sort(): Promise<void>;
    /**
     * iterate through the values
     * @yields an iterator
     */
    values(): AsyncGenerator<V>;
    /**
     * iterate through the values
     * @returns an iterator
     */
    [Symbol.asyncIterator](): AsyncGenerator<V>;
    /** Closes the store */
    close(): void;
}
//# sourceMappingURL=mmap.d.ts.map