import fs from "node:fs"; import { type ParsedMessageEntry } from "../sessions/parser.js"; import { type ProjectIdentity } from "./project-identity.js"; /** * Parent-chain provenance resolver(roadmap §5.2)。 */ export type ProvenanceStatus = "verified" | "unresolved"; export interface EntryAttribution { entryId: string; role: string; provenance: ProvenanceStatus; originProjectKey?: string; reason?: string; } export interface ProvenanceReport { sessionId: string; headerProject: ProjectIdentity; attributions: EntryAttribution[]; unresolvedCopiedCount: number; } /** * 对 session 文件做 provenance 归属分析。 */ export declare function resolveSessionProvenance(sessionFile: string, options?: { registeredRoots?: string[]; readFileSync?: typeof fs.readFileSync; existsSync?: typeof fs.existsSync; }): ProvenanceReport; /** * entry 指纹:entryId + parentId + type + role + content hash。 */ export declare function entryFingerprint(entry: ParsedMessageEntry): string; //# sourceMappingURL=resolver.d.ts.map