export { appendWorkflowTranscriptEvent } from "../transcript.js"; import type { GitRepositoryBinding, IntegrationApplyAttempt, IntegrationApplyReceipt, IntegrationAuthorization, IntegrationPlan, IntegrationReviewRecord, WorkspaceAllocationRequest, WorkspaceBinding, WorkspaceCancellationReceipt, WorkspaceCleanupAttempt, WorkspaceCleanupIntent, WorkspaceCleanupReceipt, WorkspaceCleanupResult } from "./types.js"; export interface WorkspaceClaim { schema_version: 1; provider_id: string; provider_version: string; binding_id: string; workspace_id: string; request: WorkspaceAllocationRequest; request_sha256: string; recovery_token: string; created_at: string; workspace_root: string; active_root: string; writable_root: WorkspaceBinding["writable_root"]; repository: { source_root: GitRepositoryBinding["source_root"]; common_dir: GitRepositoryBinding["common_dir"]; base_commit: string; target_commit: string; target_ref: string; workspace_ref: string; workspace_branch: string; }; } export interface WorkspaceProviderEvent { schema_version: 1; seq: number; previous_sha256: string | null; record_sha256: string; event: string; recorded_at: string; request_sha256: string; binding_id: string; workspace_id: string; data: Record; } export declare function workflowRunDir(coordRoot: string, runId: string): string; export declare function workspaceRequestPath(coordRoot: string, runId: string): string; export declare function workspaceClaimPath(coordRoot: string, providerId: string, bindingId: string): string; export declare function workspaceEventsPath(coordRoot: string, providerId: string, bindingId: string): string; export declare function workspaceBindingPath(coordRoot: string, providerId: string, bindingId: string): string; export declare function workspaceLockPath(coordRoot: string, providerId: string, bindingId: string): string; export declare function writeWorkspaceRequest(coordRoot: string, request: WorkspaceAllocationRequest): string; export declare function readWorkspaceRequest(coordRoot: string, runId: string): WorkspaceAllocationRequest | undefined; export declare function writeWorkspaceClaim(coordRoot: string, claim: WorkspaceClaim): boolean; export declare function readWorkspaceClaim(coordRoot: string, providerId: string, bindingId: string): WorkspaceClaim | undefined; export declare function writeWorkspaceBinding(coordRoot: string, binding: WorkspaceBinding): boolean; export declare function readWorkspaceBinding(coordRoot: string, providerId: string, bindingId: string): WorkspaceBinding | undefined; export declare function appendWorkspaceEvent(coordRoot: string, claim: WorkspaceClaim, event: string, data?: Record): WorkspaceProviderEvent; export declare function readWorkspaceEvents(coordRoot: string, providerId: string, bindingId: string): WorkspaceProviderEvent[]; export type WorkflowSupplement = WorkspaceBinding | IntegrationReviewRecord | IntegrationPlan | IntegrationAuthorization | IntegrationApplyReceipt | WorkspaceCleanupResult | WorkspaceCancellationReceipt | WorkspaceCleanupIntent | WorkspaceCleanupReceipt; export declare function appendCleanupAttempt(coordRoot: string, runId: string, input: Omit): WorkspaceCleanupAttempt; export declare function appendIntegrationAttempt(coordRoot: string, runId: string, input: Omit): IntegrationApplyAttempt; export declare function readIntegrationAttempts(coordRoot: string, runId: string): IntegrationApplyAttempt[]; export declare function readCleanupAttempts(coordRoot: string, runId: string): WorkspaceCleanupAttempt[]; export declare function writeWorkflowSupplement(coordRoot: string, runId: string, relativePath: string, value: WorkflowSupplement): string; export declare function readWorkflowSupplement(coordRoot: string, runId: string, relativePath: string): T | undefined; export { canonicalJson, fileSha256, readJsonRecord, stableDigest, writeImmutableJson, } from "../durable-record.js"; //# sourceMappingURL=state.d.ts.map