import { type RuntimeStore, type WorkflowRun } from '../engine/runtime.js'; import { type RuntimeTraceSpan } from '../../platform/process/runtime-trace.js'; export declare const workflowTraceId: (workflow: "native" | "classic", runId: string) => string; interface WorkflowTraceSnapshot { runId: string; revision: number; status: WorkflowRun['status']; actions: { id: string; attempt: number; status: string; reason?: string; outcome?: { outcomeId: string; summary?: string; }; }[]; waits: { id: string; status: string; }[]; evidenceWaits?: { id: string; status: string; }[]; } /** 只有成功提交的转换产生计时;既有快照首次被观测时保留未知的开始时间。 */ export declare function workflowRunTraceUpdates(options: { workflow: 'native' | 'classic'; previous: WorkflowTraceSnapshot | null; next: WorkflowRun; initial: boolean; observedAt: string; }): RuntimeTraceSpan[]; /** 观测 Store 的成功提交,原 Store 继续拥有并发校验、恢复与推进权威。 */ export declare function observeWorkflowRunStore(projectRoot: string, workflow: 'native' | 'classic', store: RuntimeStore): RuntimeStore; /** 有界读取内置 SDK 的原始只读快照;不触发 YAML 投影、恢复或应用执行模块。 */ export declare function readChangeTraceSnapshots(projectRoot: string, workflow: 'native' | 'classic', limit?: number): Promise<{ runs: WorkflowRun[]; truncated: boolean; unreadable: number; }>; export {}; //# sourceMappingURL=run-trace.d.ts.map