import { z } from "zod"; export declare const executionWorkspaceStatusSchema: z.ZodEnum<["active", "idle", "in_review", "archived", "cleanup_failed"]>; export declare const executionWorkspaceConfigSchema: z.ZodObject<{ environmentId: z.ZodNullable>; provisionCommand: z.ZodNullable>; teardownCommand: z.ZodNullable>; cleanupCommand: z.ZodNullable>; workspaceRuntime: z.ZodNullable>>; desiredState: z.ZodNullable>>; serviceStates: z.ZodNullable>>>; }, "strict", z.ZodTypeAny, { environmentId?: string | null | undefined; provisionCommand?: string | null | undefined; teardownCommand?: string | null | undefined; cleanupCommand?: string | null | undefined; workspaceRuntime?: Record | null | undefined; desiredState?: "running" | "manual" | "stopped" | null | undefined; serviceStates?: Record | null | undefined; }, { environmentId?: string | null | undefined; provisionCommand?: string | null | undefined; teardownCommand?: string | null | undefined; cleanupCommand?: string | null | undefined; workspaceRuntime?: Record | null | undefined; desiredState?: "running" | "manual" | "stopped" | null | undefined; serviceStates?: Record | null | undefined; }>; export declare const workspaceRuntimeControlTargetSchema: z.ZodObject<{ workspaceCommandId: z.ZodNullable>; runtimeServiceId: z.ZodNullable>; serviceIndex: z.ZodNullable>; }, "strict", z.ZodTypeAny, { workspaceCommandId?: string | null | undefined; runtimeServiceId?: string | null | undefined; serviceIndex?: number | null | undefined; }, { workspaceCommandId?: string | null | undefined; runtimeServiceId?: string | null | undefined; serviceIndex?: number | null | undefined; }>; export declare const executionWorkspaceCloseReadinessStateSchema: z.ZodEnum<["ready", "ready_with_warnings", "blocked"]>; export declare const executionWorkspaceCloseActionKindSchema: z.ZodEnum<["archive_record", "stop_runtime_services", "cleanup_command", "teardown_command", "git_worktree_remove", "git_branch_delete", "remove_local_directory"]>; export declare const executionWorkspaceCloseActionSchema: z.ZodObject<{ kind: z.ZodEnum<["archive_record", "stop_runtime_services", "cleanup_command", "teardown_command", "git_worktree_remove", "git_branch_delete", "remove_local_directory"]>; label: z.ZodString; description: z.ZodString; command: z.ZodNullable; }, "strict", z.ZodTypeAny, { description: string; kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory"; label: string; command: string | null; }, { description: string; kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory"; label: string; command: string | null; }>; export declare const executionWorkspaceCloseLinkedIssueSchema: z.ZodObject<{ id: z.ZodString; identifier: z.ZodNullable; title: z.ZodString; status: z.ZodString; isTerminal: z.ZodBoolean; }, "strict", z.ZodTypeAny, { title: string; status: string; id: string; identifier: string | null; isTerminal: boolean; }, { title: string; status: string; id: string; identifier: string | null; isTerminal: boolean; }>; export declare const executionWorkspaceCloseGitReadinessSchema: z.ZodObject<{ repoRoot: z.ZodNullable; workspacePath: z.ZodNullable; branchName: z.ZodNullable; baseRef: z.ZodNullable; hasDirtyTrackedFiles: z.ZodBoolean; hasUntrackedFiles: z.ZodBoolean; dirtyEntryCount: z.ZodNumber; untrackedEntryCount: z.ZodNumber; aheadCount: z.ZodNullable; behindCount: z.ZodNullable; isMergedIntoBase: z.ZodNullable; createdByRuntime: z.ZodBoolean; }, "strict", z.ZodTypeAny, { repoRoot: string | null; workspacePath: string | null; branchName: string | null; baseRef: string | null; hasDirtyTrackedFiles: boolean; hasUntrackedFiles: boolean; dirtyEntryCount: number; untrackedEntryCount: number; aheadCount: number | null; behindCount: number | null; isMergedIntoBase: boolean | null; createdByRuntime: boolean; }, { repoRoot: string | null; workspacePath: string | null; branchName: string | null; baseRef: string | null; hasDirtyTrackedFiles: boolean; hasUntrackedFiles: boolean; dirtyEntryCount: number; untrackedEntryCount: number; aheadCount: number | null; behindCount: number | null; isMergedIntoBase: boolean | null; createdByRuntime: boolean; }>; export declare const workspaceRuntimeServiceSchema: z.ZodObject<{ id: z.ZodString; companyId: z.ZodString; projectId: z.ZodNullable; projectWorkspaceId: z.ZodNullable; executionWorkspaceId: z.ZodNullable; issueId: z.ZodNullable; scopeType: z.ZodEnum<["project_workspace", "execution_workspace", "run", "agent"]>; scopeId: z.ZodNullable; serviceName: z.ZodString; status: z.ZodEnum<["starting", "running", "stopped", "failed"]>; lifecycle: z.ZodEnum<["shared", "ephemeral"]>; reuseKey: z.ZodNullable; command: z.ZodNullable; cwd: z.ZodNullable; port: z.ZodNullable; url: z.ZodNullable; provider: z.ZodEnum<["local_process", "adapter_managed"]>; providerRef: z.ZodNullable; ownerAgentId: z.ZodNullable; startedByRunId: z.ZodNullable; lastUsedAt: z.ZodDate; startedAt: z.ZodDate; stoppedAt: z.ZodNullable; stopPolicy: z.ZodNullable>; healthStatus: z.ZodEnum<["unknown", "healthy", "unhealthy"]>; configIndex: z.ZodOptional>; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strict", z.ZodTypeAny, { companyId: string; status: "running" | "failed" | "stopped" | "starting"; provider: "adapter_managed" | "local_process"; url: string | null; id: string; createdAt: Date; updatedAt: Date; issueId: string | null; command: string | null; projectId: string | null; projectWorkspaceId: string | null; executionWorkspaceId: string | null; scopeType: "agent" | "run" | "execution_workspace" | "project_workspace"; scopeId: string | null; serviceName: string; lifecycle: "ephemeral" | "shared"; reuseKey: string | null; cwd: string | null; port: number | null; providerRef: string | null; ownerAgentId: string | null; startedByRunId: string | null; lastUsedAt: Date; startedAt: Date; stoppedAt: Date | null; stopPolicy: Record | null; healthStatus: "unknown" | "healthy" | "unhealthy"; configIndex?: number | null | undefined; }, { companyId: string; status: "running" | "failed" | "stopped" | "starting"; provider: "adapter_managed" | "local_process"; url: string | null; id: string; createdAt: Date; updatedAt: Date; issueId: string | null; command: string | null; projectId: string | null; projectWorkspaceId: string | null; executionWorkspaceId: string | null; scopeType: "agent" | "run" | "execution_workspace" | "project_workspace"; scopeId: string | null; serviceName: string; lifecycle: "ephemeral" | "shared"; reuseKey: string | null; cwd: string | null; port: number | null; providerRef: string | null; ownerAgentId: string | null; startedByRunId: string | null; lastUsedAt: Date; startedAt: Date; stoppedAt: Date | null; stopPolicy: Record | null; healthStatus: "unknown" | "healthy" | "unhealthy"; configIndex?: number | null | undefined; }>; export declare const executionWorkspaceCloseReadinessSchema: z.ZodObject<{ workspaceId: z.ZodString; state: z.ZodEnum<["ready", "ready_with_warnings", "blocked"]>; blockingReasons: z.ZodArray; warnings: z.ZodArray; linkedIssues: z.ZodArray; title: z.ZodString; status: z.ZodString; isTerminal: z.ZodBoolean; }, "strict", z.ZodTypeAny, { title: string; status: string; id: string; identifier: string | null; isTerminal: boolean; }, { title: string; status: string; id: string; identifier: string | null; isTerminal: boolean; }>, "many">; plannedActions: z.ZodArray; label: z.ZodString; description: z.ZodString; command: z.ZodNullable; }, "strict", z.ZodTypeAny, { description: string; kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory"; label: string; command: string | null; }, { description: string; kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory"; label: string; command: string | null; }>, "many">; isDestructiveCloseAllowed: z.ZodBoolean; isSharedWorkspace: z.ZodBoolean; isProjectPrimaryWorkspace: z.ZodBoolean; git: z.ZodNullable; workspacePath: z.ZodNullable; branchName: z.ZodNullable; baseRef: z.ZodNullable; hasDirtyTrackedFiles: z.ZodBoolean; hasUntrackedFiles: z.ZodBoolean; dirtyEntryCount: z.ZodNumber; untrackedEntryCount: z.ZodNumber; aheadCount: z.ZodNullable; behindCount: z.ZodNullable; isMergedIntoBase: z.ZodNullable; createdByRuntime: z.ZodBoolean; }, "strict", z.ZodTypeAny, { repoRoot: string | null; workspacePath: string | null; branchName: string | null; baseRef: string | null; hasDirtyTrackedFiles: boolean; hasUntrackedFiles: boolean; dirtyEntryCount: number; untrackedEntryCount: number; aheadCount: number | null; behindCount: number | null; isMergedIntoBase: boolean | null; createdByRuntime: boolean; }, { repoRoot: string | null; workspacePath: string | null; branchName: string | null; baseRef: string | null; hasDirtyTrackedFiles: boolean; hasUntrackedFiles: boolean; dirtyEntryCount: number; untrackedEntryCount: number; aheadCount: number | null; behindCount: number | null; isMergedIntoBase: boolean | null; createdByRuntime: boolean; }>>; runtimeServices: z.ZodArray; projectWorkspaceId: z.ZodNullable; executionWorkspaceId: z.ZodNullable; issueId: z.ZodNullable; scopeType: z.ZodEnum<["project_workspace", "execution_workspace", "run", "agent"]>; scopeId: z.ZodNullable; serviceName: z.ZodString; status: z.ZodEnum<["starting", "running", "stopped", "failed"]>; lifecycle: z.ZodEnum<["shared", "ephemeral"]>; reuseKey: z.ZodNullable; command: z.ZodNullable; cwd: z.ZodNullable; port: z.ZodNullable; url: z.ZodNullable; provider: z.ZodEnum<["local_process", "adapter_managed"]>; providerRef: z.ZodNullable; ownerAgentId: z.ZodNullable; startedByRunId: z.ZodNullable; lastUsedAt: z.ZodDate; startedAt: z.ZodDate; stoppedAt: z.ZodNullable; stopPolicy: z.ZodNullable>; healthStatus: z.ZodEnum<["unknown", "healthy", "unhealthy"]>; configIndex: z.ZodOptional>; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strict", z.ZodTypeAny, { companyId: string; status: "running" | "failed" | "stopped" | "starting"; provider: "adapter_managed" | "local_process"; url: string | null; id: string; createdAt: Date; updatedAt: Date; issueId: string | null; command: string | null; projectId: string | null; projectWorkspaceId: string | null; executionWorkspaceId: string | null; scopeType: "agent" | "run" | "execution_workspace" | "project_workspace"; scopeId: string | null; serviceName: string; lifecycle: "ephemeral" | "shared"; reuseKey: string | null; cwd: string | null; port: number | null; providerRef: string | null; ownerAgentId: string | null; startedByRunId: string | null; lastUsedAt: Date; startedAt: Date; stoppedAt: Date | null; stopPolicy: Record | null; healthStatus: "unknown" | "healthy" | "unhealthy"; configIndex?: number | null | undefined; }, { companyId: string; status: "running" | "failed" | "stopped" | "starting"; provider: "adapter_managed" | "local_process"; url: string | null; id: string; createdAt: Date; updatedAt: Date; issueId: string | null; command: string | null; projectId: string | null; projectWorkspaceId: string | null; executionWorkspaceId: string | null; scopeType: "agent" | "run" | "execution_workspace" | "project_workspace"; scopeId: string | null; serviceName: string; lifecycle: "ephemeral" | "shared"; reuseKey: string | null; cwd: string | null; port: number | null; providerRef: string | null; ownerAgentId: string | null; startedByRunId: string | null; lastUsedAt: Date; startedAt: Date; stoppedAt: Date | null; stopPolicy: Record | null; healthStatus: "unknown" | "healthy" | "unhealthy"; configIndex?: number | null | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { state: "blocked" | "ready" | "ready_with_warnings"; workspaceId: string; blockingReasons: string[]; warnings: string[]; linkedIssues: { title: string; status: string; id: string; identifier: string | null; isTerminal: boolean; }[]; plannedActions: { description: string; kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory"; label: string; command: string | null; }[]; isDestructiveCloseAllowed: boolean; isSharedWorkspace: boolean; isProjectPrimaryWorkspace: boolean; git: { repoRoot: string | null; workspacePath: string | null; branchName: string | null; baseRef: string | null; hasDirtyTrackedFiles: boolean; hasUntrackedFiles: boolean; dirtyEntryCount: number; untrackedEntryCount: number; aheadCount: number | null; behindCount: number | null; isMergedIntoBase: boolean | null; createdByRuntime: boolean; } | null; runtimeServices: { companyId: string; status: "running" | "failed" | "stopped" | "starting"; provider: "adapter_managed" | "local_process"; url: string | null; id: string; createdAt: Date; updatedAt: Date; issueId: string | null; command: string | null; projectId: string | null; projectWorkspaceId: string | null; executionWorkspaceId: string | null; scopeType: "agent" | "run" | "execution_workspace" | "project_workspace"; scopeId: string | null; serviceName: string; lifecycle: "ephemeral" | "shared"; reuseKey: string | null; cwd: string | null; port: number | null; providerRef: string | null; ownerAgentId: string | null; startedByRunId: string | null; lastUsedAt: Date; startedAt: Date; stoppedAt: Date | null; stopPolicy: Record | null; healthStatus: "unknown" | "healthy" | "unhealthy"; configIndex?: number | null | undefined; }[]; }, { state: "blocked" | "ready" | "ready_with_warnings"; workspaceId: string; blockingReasons: string[]; warnings: string[]; linkedIssues: { title: string; status: string; id: string; identifier: string | null; isTerminal: boolean; }[]; plannedActions: { description: string; kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory"; label: string; command: string | null; }[]; isDestructiveCloseAllowed: boolean; isSharedWorkspace: boolean; isProjectPrimaryWorkspace: boolean; git: { repoRoot: string | null; workspacePath: string | null; branchName: string | null; baseRef: string | null; hasDirtyTrackedFiles: boolean; hasUntrackedFiles: boolean; dirtyEntryCount: number; untrackedEntryCount: number; aheadCount: number | null; behindCount: number | null; isMergedIntoBase: boolean | null; createdByRuntime: boolean; } | null; runtimeServices: { companyId: string; status: "running" | "failed" | "stopped" | "starting"; provider: "adapter_managed" | "local_process"; url: string | null; id: string; createdAt: Date; updatedAt: Date; issueId: string | null; command: string | null; projectId: string | null; projectWorkspaceId: string | null; executionWorkspaceId: string | null; scopeType: "agent" | "run" | "execution_workspace" | "project_workspace"; scopeId: string | null; serviceName: string; lifecycle: "ephemeral" | "shared"; reuseKey: string | null; cwd: string | null; port: number | null; providerRef: string | null; ownerAgentId: string | null; startedByRunId: string | null; lastUsedAt: Date; startedAt: Date; stoppedAt: Date | null; stopPolicy: Record | null; healthStatus: "unknown" | "healthy" | "unhealthy"; configIndex?: number | null | undefined; }[]; }>; export declare const updateExecutionWorkspaceSchema: z.ZodObject<{ name: z.ZodOptional; cwd: z.ZodNullable>; repoUrl: z.ZodNullable>; baseRef: z.ZodNullable>; branchName: z.ZodNullable>; providerRef: z.ZodNullable>; status: z.ZodOptional>; cleanupEligibleAt: z.ZodNullable>; cleanupReason: z.ZodNullable>; config: z.ZodNullable>; provisionCommand: z.ZodNullable>; teardownCommand: z.ZodNullable>; cleanupCommand: z.ZodNullable>; workspaceRuntime: z.ZodNullable>>; desiredState: z.ZodNullable>>; serviceStates: z.ZodNullable>>>; }, "strict", z.ZodTypeAny, { environmentId?: string | null | undefined; provisionCommand?: string | null | undefined; teardownCommand?: string | null | undefined; cleanupCommand?: string | null | undefined; workspaceRuntime?: Record | null | undefined; desiredState?: "running" | "manual" | "stopped" | null | undefined; serviceStates?: Record | null | undefined; }, { environmentId?: string | null | undefined; provisionCommand?: string | null | undefined; teardownCommand?: string | null | undefined; cleanupCommand?: string | null | undefined; workspaceRuntime?: Record | null | undefined; desiredState?: "running" | "manual" | "stopped" | null | undefined; serviceStates?: Record | null | undefined; }>>>; metadata: z.ZodNullable>>; }, "strict", z.ZodTypeAny, { status?: "active" | "archived" | "idle" | "in_review" | "cleanup_failed" | undefined; name?: string | undefined; branchName?: string | null | undefined; baseRef?: string | null | undefined; cwd?: string | null | undefined; providerRef?: string | null | undefined; repoUrl?: string | null | undefined; cleanupEligibleAt?: string | null | undefined; cleanupReason?: string | null | undefined; config?: { environmentId?: string | null | undefined; provisionCommand?: string | null | undefined; teardownCommand?: string | null | undefined; cleanupCommand?: string | null | undefined; workspaceRuntime?: Record | null | undefined; desiredState?: "running" | "manual" | "stopped" | null | undefined; serviceStates?: Record | null | undefined; } | null | undefined; metadata?: Record | null | undefined; }, { status?: "active" | "archived" | "idle" | "in_review" | "cleanup_failed" | undefined; name?: string | undefined; branchName?: string | null | undefined; baseRef?: string | null | undefined; cwd?: string | null | undefined; providerRef?: string | null | undefined; repoUrl?: string | null | undefined; cleanupEligibleAt?: string | null | undefined; cleanupReason?: string | null | undefined; config?: { environmentId?: string | null | undefined; provisionCommand?: string | null | undefined; teardownCommand?: string | null | undefined; cleanupCommand?: string | null | undefined; workspaceRuntime?: Record | null | undefined; desiredState?: "running" | "manual" | "stopped" | null | undefined; serviceStates?: Record | null | undefined; } | null | undefined; metadata?: Record | null | undefined; }>; export type UpdateExecutionWorkspace = z.infer; //# sourceMappingURL=execution-workspace.d.ts.map