import type { Uint64Cell } from '../../dataStructures/uint64'; /** The kind of input required to store a vector for proper indexing */ export interface VectorKey { cell: Uint64Cell; } /** Represents a vector store or an array */ export interface VectorStore { push: (value: V) => void; get: (index: number) => Promise; length: number; values: () => AsyncGenerator; sort: (() => void) | (() => Promise); [Symbol.asyncIterator]: () => AsyncGenerator; close: () => void; } /** A constructor for a vector store */ export type VectorStoreConstructor = new () => VectorStore; /** A local vector key-value store */ export declare class Vector implements VectorStore { #private; /** * 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; /** @returns the length of the store */ get length(): number; /** * iterate through the values * @yields an iterator */ values(): AsyncGenerator; /** Sort the store in place */ sort(): void; /** * iterate through the values * @returns an iterator */ [Symbol.asyncIterator](): AsyncGenerator; /** Closes the store */ close(): void; } //# sourceMappingURL=index.d.ts.map