/** * @param {string} gitRoot * @param {string} absPath */ export declare function relFromRoot(gitRoot: string, absPath: string): string; /** * @param {string} gitRoot * @param {string} changeDir */ export declare function collectCollaborationArtifacts(gitRoot: string, changeDir: string): Promise<{ dirs: Record; counts: Record; }>; /** * Evidence_Path is user-declared; we treat it as best-effort hints, not hard gates. * * @param {string} gitRoot * @param {string} changeId * @param {string[]} evidencePaths * @returns {Promise<{ * entries: Array<{rel: string, abs: string, exists: boolean, kind: string, isAbsolute: boolean}>, * counts: { total: number, exists: number, missing: number, tmp: number, persistent: number, other: number, absolute: number }, * missing: string[] * }>} */ export declare function analyzeEvidencePaths(gitRoot: string, changeId: string, evidencePaths: string[]): Promise<{ entries: { rel: string; abs: string; exists: boolean; kind: string; isAbsolute: boolean; }[]; counts: { total: number; exists: number; missing: number; tmp: number; persistent: number; other: number; absolute: number; }; missing: string[]; }>; /** * @param {string[]} a * @param {string[]} b */ export declare function mergeDeclaredValues(a: string[], b: string[]): string[]; /** * @param {string[]} values */ export declare function formatDeclaredValues(values: string[]): string; /** * Replace or insert a simple "ID: value" style line in Markdown. * * @param {string} text * @param {string[]} labelCandidates * @param {string} value * @param {{ insertAfterLabels?: string[] }} options */ export declare function upsertIdLine(text: string, labelCandidates: string[], value: string, options: any): { ok: boolean; changed: boolean; text: string; mode: string; label: string; }; /** * Special-case insertion for proposal.md template style. * * @param {string} proposalText * @param {string} value */ export declare function upsertProposalEvidencePath(proposalText: string, value: string): { changed: boolean; text: string; mode: string; }; /** * @param {string} changeId */ export declare function planVerifyHint(changeId: string): string; /** * @param {string} absDir * @param {(fileName: string) => boolean} predicate */ export declare function findLatestFileByMtime(absDir: string, predicate: (fileName: string) => boolean): Promise; /** * @param {{ * gitRoot: string, * changeId: string, * branch: string, * status: any, * collaboration: any, * created: string[], * validateRes: any, * validateFailed: boolean * }} options */ export declare function buildDeliverySummary(options: any): string;