/** * Chunk ID helpers. * * Vectorize caps IDs at 64 bytes, so every generator slugifies + truncates a * human-readable label. Truncation alone is collision-prone: two sections whose * headings share a prefix, or two long paths that match after the byte cut, * produce identical IDs and silently overwrite each other on upsert. We defend * against that by appending a short deterministic hash of the *fully distinct* * key so colliding slugs still resolve to unique IDs. The hash is stable across * runs, so re-indexing the same content keeps the same ID (upsert dedup intact). */ /** Deterministic short hex hash used to disambiguate truncated chunk IDs. */ export declare function chunkIdHash(distinctKey: string): string; /** * Combine a readable slug with a hash of the fully-distinct key. * * @param readable - Human-readable slug (may exceed the budget; it gets cut) * @param distinctKey - The fully-qualified, collision-free key to hash * @returns ID of at most 64 bytes, unique whenever `distinctKey` differs */ export declare function finalizeChunkId(readable: string, distinctKey: string): string; //# sourceMappingURL=chunk-id.d.ts.map