/** * ProjectIdentity v1(roadmap §5.3)原型:用于 P0 provenance spike。 */ export type ProjectKind = "git" | "cwd"; export interface ProjectIdentity { version: 1; kind: ProjectKind; normalizedRoot: string; projectKey: string; unresolved: boolean; } /** * 规范化路径分隔符与尾部斜杠;Windows 盘符小写。 */ export declare function normalizeRootPath(input: string): string; export type PathExistsFn = (candidate: string) => boolean; /** * 向上查找最近 git/worktree root;找不到则用 cwd。 */ export declare function resolveProjectIdentity(cwd: string, existsSync?: PathExistsFn): ProjectIdentity; /** * 计算 projectKey。 */ export declare function hashProjectKey(kind: ProjectKind, normalizedRoot: string): string; //# sourceMappingURL=project-identity.d.ts.map