export declare const CODE_WORKSPACE_ID_PATTERN: RegExp; /** Protocol-v1 ceiling enforced by the worker and Code API. */ export declare const CODE_WORKSPACE_MAX_COUNT = 32; /** API/client protocol for immutable conversation-owned environment decisions. */ export declare const CODE_ENVIRONMENT_DECISION_VERSION: 1; export declare const CODE_WORKSPACE_OPERATIONS: readonly ["read_file", "search_text", "list_files", "write_file", "preview_edit", "edit_file", "execute_command"]; export declare const CODE_WORKSPACE_SELECTION_ERROR_REASONS: readonly ["required", "invalid", "worker_unavailable", "unsupported", "missing", "locked"]; export declare const CODE_ENVIRONMENT_MODES: readonly ["attached", "without_attached"]; export type CodeWorkspaceOperation = (typeof CODE_WORKSPACE_OPERATIONS)[number]; export type CodeWorkspaceSelectionErrorReason = (typeof CODE_WORKSPACE_SELECTION_ERROR_REASONS)[number]; export type CodeEnvironmentMode = (typeof CODE_ENVIRONMENT_MODES)[number]; /** Public, path-free description of one root registered by an attached worker. */ export interface CodeWorkspaceDescriptor { id: string; name?: string; /** Omitted when every worker-level operation applies to this workspace. */ operations?: CodeWorkspaceOperation[]; } /** Conversation-owned selection, bound to the environment that advertised it. */ export interface CodeWorkspaceSelection { environmentId: string; workspaceId: string; } export declare function isCodeEnvironmentMode(value: unknown): value is CodeEnvironmentMode; export declare function isCodeWorkspaceSelectionErrorReason(value: unknown): value is CodeWorkspaceSelectionErrorReason; export declare function isCodeWorkspaceSelection(value: unknown): value is CodeWorkspaceSelection; /** One exact workspace per attached environment used by a conversation. */ export declare function isCodeWorkspaceSelections(value: unknown): value is CodeWorkspaceSelection[];