export interface RuntimePerformanceRecord { id: string; workflow: 'native' | 'classic'; kind: 'command' | 'check'; command: string; occurredAt: string; durationMs: number; exitCode: number; gitCommands: number; gitDurationMs: number; } /** 本地诊断记录有界保存;不包含命令参数、输出或环境变量。 */ export declare function recordRuntimePerformance(projectRoot: string, record: Omit): Promise; export declare function readRuntimePerformanceRecords(projectRoot: string, sampleLimit?: number): Promise<{ records: RuntimePerformanceRecord[]; truncated: boolean; sampleLimit: number; days: number; }>; /** 采集失败只丢弃本次诊断,保持原操作的结果与异常。 */ export declare function observeRuntimeOperation(options: { projectRoot: () => string | Promise; workflow: RuntimePerformanceRecord['workflow']; command: string; traceName?: string; kind?: RuntimePerformanceRecord['kind']; exitCode?: (result: T) => number; errorExitCode?: (error: unknown) => number; }, operation: () => Promise): Promise; //# sourceMappingURL=runtime-performance.d.ts.map