/** * Identity enrichment for structural diffs. * * When WARP indexed truth is available, projects canonical symbol * identity (`sid:*`) onto DiffEntry objects. Level 1 address truth * (name, kind, signature) is preserved — identityId is additive. * * Symbols without indexed identity keep identityId undefined. * This module never fabricates identity from heuristics. */ import type { GraftDiffResult } from "./graft-diff.js"; /** * Identity lookup: maps symbol name to identityId for a single file. */ export type IdentityMap = ReadonlyMap; /** * Resolves canonical symbol identities for a file path. * Returns an empty map when the file has no indexed symbols. */ export type IdentityResolver = (filePath: string) => Promise; /** * Enrich a GraftDiffResult with canonical symbol identities. * * For each file in the diff, resolves symbol identities through the * provided resolver and attaches them to matching DiffEntry objects. * Files with no indexed symbols pass through unchanged. * * This function is safe to call even when the resolver has no data — * it gracefully degrades to returning the original result. */ export declare function enrichDiffWithIdentity(result: GraftDiffResult, resolve: IdentityResolver): Promise; //# sourceMappingURL=diff-identity.d.ts.map