/** * `receipt.json` — the record `aidlc verify` writes after running the test command. * * It holds hashes and metadata only. Test output can print tokens and the receipt is * committed, so the output itself is never stored (tool-written-test-receipts/AC-7). * A read that finds any field of the wrong type is `unreadable`, never a pass (AC-16). * * Requirements: tool-written-test-receipts/AC-5, AC-7, AC-16 */ export declare const RECEIPT_FILE = "receipt.json"; export interface Receipt { version: 1; /** HEAD when the run started. */ commit: string; /** Whether any path outside the instance's state directory had changed (AC-6). */ dirty: boolean; command_sha256: string; /** A signal is recorded as 128 + its number (AC-10). */ exit_code: number; /** sha256 of stdout and stderr bytes in arrival order. */ output_sha256: string; duration_ms: number; cli_version: string; /** ISO 8601 UTC. */ finished_at: string; } export type ReadReceiptResult = { ok: true; receipt: Receipt; } | { ok: false; reason: 'missing' | 'unreadable'; }; export declare function sha256(data: string | Buffer): string; export declare function hashCommand(command: string): string; export declare function receiptPath(projectRoot: string, instance: string): string; export declare function readReceipt(projectRoot: string, instance: string): ReadReceiptResult; export declare function writeReceipt(projectRoot: string, instance: string, receipt: Receipt): string; //# sourceMappingURL=receipt.d.ts.map