export declare const RELEASE_EVIDENCE_FRAGMENT_ROOT = ".workspace-kit/release-evidence";
export declare const CLOSEOUT_VALIDATION_COMMANDS: readonly ["pnpm run build", "pnpm run check", "pnpm run test", "pnpm run parity", "node scripts/check-release-metadata.mjs", "pnpm run pre-merge-gates"];
export type ReleaseEvidenceResolveFailure = {
    ok: false;
    code: string;
    message: string;
    details?: Record<string, unknown>;
};
/** Deep-merge release-evidence partial objects; arrays of records concatenate with de-dupe. */
export declare function mergeReleaseEvidencePartials(base: Record<string, unknown>, overlay: Record<string, unknown>): Record<string, unknown>;
export declare function releaseEvidenceFragmentDir(workspacePath: string, releaseVersion: string): string;
export type ReleaseEvidenceFragmentFs = {
    exists?: (path: string) => boolean;
    readdir?: (path: string) => string[];
    readFile?: (path: string, encoding: BufferEncoding) => string;
};
export declare function loadReleaseEvidenceFragmentsFromDir(dir: string, fsImpl?: ReleaseEvidenceFragmentFs): {
    ok: true;
    merged: Record<string, unknown>;
    files: string[];
} | ReleaseEvidenceResolveFailure;
export declare function resolveReleaseEvidenceCommandArgs(args: {
    workspacePath: string;
    commandArgs: Record<string, unknown>;
    packageVersion?: string | null;
    fsImpl?: ReleaseEvidenceFragmentFs;
}): {
    ok: true;
    args: Record<string, unknown>;
    sources: string[];
} | ReleaseEvidenceResolveFailure;
