/** * Hash-based index for O(1) lookups (T022) * * Provides fast key-based lookups using a hash table. * Best for exact matches and equality queries. */ import type { IIndex, IndexStats, IndexEntry } from './types.js'; export declare class HashIndex implements IIndex { readonly name: string; readonly type: 'hash'; private index; private unique; private caseInsensitive; constructor(name: string, options?: { unique?: boolean; caseInsensitive?: boolean; }); /** * Normalize key for case-insensitive comparison */ private normalizeKey; /** * Insert entry into index */ insert(key: any, path: string, value?: any): void; /** * Remove entry from index */ remove(key: any, path?: string): boolean; /** * Find paths by key */ find(key: any): string[]; /** * Check if key exists */ has(key: any): boolean; /** * Clear all entries */ clear(): void; /** * Get number of unique keys */ size(): number; /** * Get index statistics */ stats(): IndexStats; /** * Get all keys */ keys(): IterableIterator; /** * Get all entries */ entries(): IterableIterator; } //# sourceMappingURL=hash-index.d.ts.map