import type { RepoSnapshot } from "../context/index.js"; import { type NormalizedPolicy, type PolicyIsolation, type PolicyNetworkAccess } from "../policy/index.js"; import type { WorkflowAttemptContext, WorkflowDiagnosticAdmissionConfig, WorkflowSpecialistProfile, WorkflowWorkContext } from "./types.js"; import type { WorkspaceBinding, WorkspaceCompatibilityExecutionEvidence } from "./workspaces/index.js"; export declare const WORKFLOW_RUN_MANIFEST_SCHEMA_VERSION: 2; export interface WorkflowRunManifest { schema_version: typeof WORKFLOW_RUN_MANIFEST_SCHEMA_VERSION; run_id: string; work_item_id?: string; work_context?: WorkflowWorkContext; attempt_context?: WorkflowAttemptContext; name: string; started_at: string; script: { path: string; sha256: string; }; repository_before: RepoSnapshot; execution: { cwd: string; default_adapter: string; max_agents: number; concurrency: number; diagnostic_admission?: WorkflowDiagnosticAdmissionConfig; subscription_only: boolean; allow_api_billing: boolean; approval_mode: "deny" | "park"; approval_addressee: string; isolation: PolicyIsolation; network_access: PolicyNetworkAccess; policy?: NormalizedPolicy; specialists?: Record; workspace_binding?: WorkspaceBinding; workspace_fallback?: WorkspaceCompatibilityExecutionEvidence; }; } export interface WriteWorkflowRunManifestInput { coordRoot: string; manifest: WorkflowRunManifest; } export declare function workflowScriptDigest(scriptPath: string): string; export declare function writeWorkflowRunManifest(input: WriteWorkflowRunManifestInput): string; export declare function readWorkflowRunManifest(coordRoot: string, runId: string): WorkflowRunManifest; export declare function assertWorkflowRunResumable(coordRoot: string, runId: string): { manifest: WorkflowRunManifest; approvalId: string; }; export declare function assertWorkflowScriptUnchanged(manifest: WorkflowRunManifest): void; export declare function workflowRunManifestPath(coordRoot: string, runId: string): string; /** Acquire an exclusive, crash-recoverable lease for one resume segment. */ export declare function acquireWorkflowResumeLease(coordRoot: string, runId: string): () => void; //# sourceMappingURL=run-state.d.ts.map