export declare const EXECUTION_ENVIRONMENT_KINDS: readonly ["local_checkout", "managed_worktree"]; export type ExecutionEnvironmentKind = (typeof EXECUTION_ENVIRONMENT_KINDS)[number]; export declare const EXECUTION_ENVIRONMENT_STATUSES: readonly ["requested", "provisioning", "ready", "degraded", "deleting", "deleted", "error"]; export type ExecutionEnvironmentStatus = (typeof EXECUTION_ENVIRONMENT_STATUSES)[number]; export interface ExecutionEnvironment { id: string; projectId?: string; kind: ExecutionEnvironmentKind; status: ExecutionEnvironmentStatus; rootPath: string; repositoryRoot?: string; gitCommonDir?: string; baseRef?: string; baseSha?: string; branchRef?: string; version: number; lastError?: string; createdAt: number; updatedAt: number; lastUsedAt?: number; deletedAt?: number; } export interface ExecutionEnvironmentBinding { id: string; sessionKey: string; environmentId: string; createdAt: number; releasedAt?: number; } export interface ExecutionEnvironmentEvent { id: string; environmentId: string; fromStatus?: ExecutionEnvironmentStatus; toStatus: ExecutionEnvironmentStatus; reason: string; metadata: Record; createdAt: number; } export interface CreateExecutionEnvironmentInput { id?: string; projectId?: string; kind: ExecutionEnvironmentKind; rootPath: string; repositoryRoot?: string; gitCommonDir?: string; baseRef?: string; baseSha?: string; branchRef?: string; } export interface ExecutionEnvironmentListQuery { projectId?: string; status?: ExecutionEnvironmentStatus; includeDeleted?: boolean; limit?: number; } export interface BindExecutionEnvironmentInput { sessionKey: string; environmentId: string; } export interface TransitionExecutionEnvironmentInput { environmentId: string; toStatus: ExecutionEnvironmentStatus; expectedVersion: number; reason: string; error?: string; metadata?: Record; } export declare class ExecutionEnvironmentConflictError extends Error { constructor(message: string); } export declare class ExecutionEnvironmentNotFoundError extends Error { constructor(environmentId: string); } export declare function canTransitionExecutionEnvironment(fromStatus: ExecutionEnvironmentStatus, toStatus: ExecutionEnvironmentStatus): boolean;