/** * Compound Index for Multi-Field Indexing (T024) * * Supports indexing on multiple fields simultaneously */ import type { IIndex, IndexStats, IndexEntry } from './types.js'; /** * Compound Index wraps Hash or BTree index with multi-field support */ export declare class CompoundIndex implements IIndex { readonly name: string; readonly type: 'hash' | 'btree'; private index; private fields; constructor(name: string, fields: string[], options?: { type?: 'hash' | 'btree'; unique?: boolean; }); /** * Insert with compound key * @param key - Array of values corresponding to fields */ insert(key: any, path: string, value?: any): void; /** * Remove with compound key */ remove(key: any, path?: string): boolean; /** * Find with compound key */ find(key: any): string[]; /** * Check if compound key exists */ has(key: any): boolean; /** * Range query (only for btree) */ range(start: any, end: any): string[]; clear(): void; size(): number; stats(): IndexStats; keys(): IterableIterator; entries(): IterableIterator; /** * Get indexed fields */ getFields(): string[]; } //# sourceMappingURL=compound-index.d.ts.map