/** 单次 proof run 最大字节(B3:防帧捕获失控撑爆磁盘)。 */ export declare const MAX_PROOF_BYTES: number; export interface ProofRun { runId: string; dir: string; bytes: number; } export declare function createProofRun(projectPath: string): ProofRun; export declare function archiveFrame(run: ProofRun, index: number, pngBuffer: Buffer): string; /** 记录一个已写入 proof 目录的文件字节到 run 配额(B3:frame_sequence 用 GDScript 直写绕过 archiveFrame, * 需显式累计)。超配额抛错,调用方 catch 决定停止捕获。 */ export declare function recordFrameBytes(run: ProofRun, filePath: string): void; export declare function writeMetrics(run: ProofRun, metrics: Record): string; /** 清理 proof run 临时目录(B1:验证完成后回收,防 proof/ 无限堆积)。 * Windows 句柄占用等致 rmSync 失败时忽略(下次 cleanup 兜底)。 */ export declare function cleanupProofRun(run: ProofRun): void;