import { z } from "zod"; //#region src/pty-protocol.d.ts declare const PtyPlatformSchema: z.ZodEnum<["windows", "macos", "common"]>; declare const TerminalCwdTargetSchema: z.ZodEnum<["launch-project", "planning-root"]>; declare const PtySessionInfoSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; command: z.ZodString; args: z.ZodArray; platform: z.ZodEnum<["windows", "macos", "common"]>; isExited: z.ZodBoolean; exitCode: z.ZodNullable; closeTip: z.ZodOptional; closeCallbackUrl: z.ZodOptional]>>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; initialCwd: z.ZodString; rootGeneration: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }, { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }>; declare const PtyCreateMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"create">; requestId: z.ZodString; cols: z.ZodOptional; rows: z.ZodOptional; command: z.ZodOptional; args: z.ZodOptional>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; /** Opaque planning-root generation captured by a Server workflow preparation. */ expectedRootGeneration: z.ZodOptional; closeTip: z.ZodOptional; closeCallbackUrl: z.ZodOptional]>>; }, "strip", z.ZodTypeAny, { type: "create"; requestId: string; cwdTarget: "launch-project" | "planning-root"; command?: string | undefined; args?: string[] | undefined; cols?: number | undefined; rows?: number | undefined; expectedRootGeneration?: string | undefined; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }, { type: "create"; requestId: string; cwdTarget: "launch-project" | "planning-root"; command?: string | undefined; args?: string[] | undefined; cols?: number | undefined; rows?: number | undefined; expectedRootGeneration?: string | undefined; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }>; declare const PtyInputMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"input">; sessionId: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "input"; sessionId: string; data: string; }, { type: "input"; sessionId: string; data: string; }>; declare const PtyResizeMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"resize">; sessionId: z.ZodString; cols: z.ZodNumber; rows: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "resize"; sessionId: string; cols: number; rows: number; }, { type: "resize"; sessionId: string; cols: number; rows: number; }>; declare const PtyCloseMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"close">; sessionId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "close"; sessionId: string; }, { type: "close"; sessionId: string; }>; declare const PtyAttachMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"attach">; sessionId: z.ZodString; cols: z.ZodOptional; rows: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "attach"; sessionId: string; cols?: number | undefined; rows?: number | undefined; }, { type: "attach"; sessionId: string; cols?: number | undefined; rows?: number | undefined; }>; declare const PtyListMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"list">; }, "strip", z.ZodTypeAny, { type: "list"; }, { type: "list"; }>; declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"create">; requestId: z.ZodString; cols: z.ZodOptional; rows: z.ZodOptional; command: z.ZodOptional; args: z.ZodOptional>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; /** Opaque planning-root generation captured by a Server workflow preparation. */ expectedRootGeneration: z.ZodOptional; closeTip: z.ZodOptional; closeCallbackUrl: z.ZodOptional]>>; }, "strip", z.ZodTypeAny, { type: "create"; requestId: string; cwdTarget: "launch-project" | "planning-root"; command?: string | undefined; args?: string[] | undefined; cols?: number | undefined; rows?: number | undefined; expectedRootGeneration?: string | undefined; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }, { type: "create"; requestId: string; cwdTarget: "launch-project" | "planning-root"; command?: string | undefined; args?: string[] | undefined; cols?: number | undefined; rows?: number | undefined; expectedRootGeneration?: string | undefined; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"input">; sessionId: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "input"; sessionId: string; data: string; }, { type: "input"; sessionId: string; data: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workflow-input">; requestId: z.ZodString; sessionId: z.ZodString; expectedRootGeneration: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "workflow-input"; sessionId: string; data: string; requestId: string; expectedRootGeneration: string; }, { type: "workflow-input"; sessionId: string; data: string; requestId: string; expectedRootGeneration: string; }>, z.ZodObject<{ type: z.ZodLiteral<"resize">; sessionId: z.ZodString; cols: z.ZodNumber; rows: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "resize"; sessionId: string; cols: number; rows: number; }, { type: "resize"; sessionId: string; cols: number; rows: number; }>, z.ZodObject<{ type: z.ZodLiteral<"close">; sessionId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "close"; sessionId: string; }, { type: "close"; sessionId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"attach">; sessionId: z.ZodString; cols: z.ZodOptional; rows: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "attach"; sessionId: string; cols?: number | undefined; rows?: number | undefined; }, { type: "attach"; sessionId: string; cols?: number | undefined; rows?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"list">; }, "strip", z.ZodTypeAny, { type: "list"; }, { type: "list"; }>]>; declare const PtyCreatedResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"created">; requestId: z.ZodString; sessionId: z.ZodString; platform: z.ZodEnum<["windows", "macos", "common"]>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; initialCwd: z.ZodString; rootGeneration: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "created"; sessionId: string; rootGeneration: string | null; requestId: string; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; }, { type: "created"; sessionId: string; rootGeneration: string | null; requestId: string; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; }>; declare const PtyOutputResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"output">; sessionId: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "output"; sessionId: string; data: string; }, { type: "output"; sessionId: string; data: string; }>; declare const PtyExitResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"exit">; sessionId: z.ZodString; exitCode: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "exit"; exitCode: number; sessionId: string; }, { type: "exit"; exitCode: number; sessionId: string; }>; declare const PtyTitleResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"title">; sessionId: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { type: "title"; sessionId: string; title: string; }, { type: "title"; sessionId: string; title: string; }>; declare const PtyProcessTitleResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"process-title">; sessionId: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { type: "process-title"; sessionId: string; title: string; }, { type: "process-title"; sessionId: string; title: string; }>; declare const PtyBellResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"bell">; sessionId: z.ZodString; createdAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "bell"; sessionId: string; createdAt?: number | undefined; }, { type: "bell"; sessionId: string; createdAt?: number | undefined; }>; declare const PtyBufferResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"buffer">; sessionId: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "buffer"; sessionId: string; data: string; }, { type: "buffer"; sessionId: string; data: string; }>; declare const PtyListResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"list">; sessions: z.ZodArray; platform: z.ZodEnum<["windows", "macos", "common"]>; isExited: z.ZodBoolean; exitCode: z.ZodNullable; closeTip: z.ZodOptional; closeCallbackUrl: z.ZodOptional]>>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; initialCwd: z.ZodString; rootGeneration: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }, { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "list"; sessions: { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }[]; }, { type: "list"; sessions: { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }[]; }>; declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED", "UNAUTHORIZED"]>; declare const PtyErrorResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"error">; code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED", "UNAUTHORIZED"]>; message: z.ZodString; sessionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED"; message: string; type: "error"; sessionId?: string | undefined; }, { code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED"; message: string; type: "error"; sessionId?: string | undefined; }>; declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"created">; requestId: z.ZodString; sessionId: z.ZodString; platform: z.ZodEnum<["windows", "macos", "common"]>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; initialCwd: z.ZodString; rootGeneration: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "created"; sessionId: string; rootGeneration: string | null; requestId: string; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; }, { type: "created"; sessionId: string; rootGeneration: string | null; requestId: string; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workflow-input-accepted">; requestId: z.ZodString; sessionId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "workflow-input-accepted"; sessionId: string; requestId: string; }, { type: "workflow-input-accepted"; sessionId: string; requestId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workflow-input-rejected">; requestId: z.ZodString; sessionId: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; type: "workflow-input-rejected"; sessionId: string; requestId: string; }, { message: string; type: "workflow-input-rejected"; sessionId: string; requestId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"output">; sessionId: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "output"; sessionId: string; data: string; }, { type: "output"; sessionId: string; data: string; }>, z.ZodObject<{ type: z.ZodLiteral<"exit">; sessionId: z.ZodString; exitCode: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "exit"; exitCode: number; sessionId: string; }, { type: "exit"; exitCode: number; sessionId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"title">; sessionId: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { type: "title"; sessionId: string; title: string; }, { type: "title"; sessionId: string; title: string; }>, z.ZodObject<{ type: z.ZodLiteral<"process-title">; sessionId: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { type: "process-title"; sessionId: string; title: string; }, { type: "process-title"; sessionId: string; title: string; }>, z.ZodObject<{ type: z.ZodLiteral<"cwd">; sessionId: z.ZodString; cwd: z.ZodString; }, "strip", z.ZodTypeAny, { type: "cwd"; sessionId: string; cwd: string; }, { type: "cwd"; sessionId: string; cwd: string; }>, z.ZodObject<{ type: z.ZodLiteral<"progress">; sessionId: z.ZodString; state: z.ZodEnum<["clear", "set", "error", "indeterminate", "warning"]>; value: z.ZodNullable; }, "strip", z.ZodTypeAny, { value: number | null; type: "progress"; sessionId: string; state: "set" | "error" | "warning" | "clear" | "indeterminate"; }, { value: number | null; type: "progress"; sessionId: string; state: "set" | "error" | "warning" | "clear" | "indeterminate"; }>, z.ZodObject<{ type: z.ZodLiteral<"prompt-state">; sessionId: z.ZodString; state: z.ZodEnum<["prompt-start", "prompt-end", "command-start", "command-output", "command-end"]>; exitCode: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "prompt-state"; sessionId: string; state: "prompt-start" | "prompt-end" | "command-start" | "command-output" | "command-end"; exitCode?: number | undefined; }, { type: "prompt-state"; sessionId: string; state: "prompt-start" | "prompt-end" | "command-start" | "command-output" | "command-end"; exitCode?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"bell">; sessionId: z.ZodString; createdAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "bell"; sessionId: string; createdAt?: number | undefined; }, { type: "bell"; sessionId: string; createdAt?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"buffer">; sessionId: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: "buffer"; sessionId: string; data: string; }, { type: "buffer"; sessionId: string; data: string; }>, z.ZodObject<{ type: z.ZodLiteral<"list">; sessions: z.ZodArray; platform: z.ZodEnum<["windows", "macos", "common"]>; isExited: z.ZodBoolean; exitCode: z.ZodNullable; closeTip: z.ZodOptional; closeCallbackUrl: z.ZodOptional]>>; cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>; initialCwd: z.ZodString; rootGeneration: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }, { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "list"; sessions: { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }[]; }, { type: "list"; sessions: { id: string; exitCode: number | null; title: string; command: string; args: string[]; rootGeneration: string | null; cwdTarget: "launch-project" | "planning-root"; platform: "windows" | "macos" | "common"; initialCwd: string; isExited: boolean; closeTip?: string | undefined; closeCallbackUrl?: string | Record | undefined; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"error">; code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED", "UNAUTHORIZED"]>; message: z.ZodString; sessionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED"; message: string; type: "error"; sessionId?: string | undefined; }, { code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED"; message: string; type: "error"; sessionId?: string | undefined; }>]>; type PtyClientMessage = z.infer; type PtyServerMessage = z.infer; type PtySessionInfo = z.infer; type PtyPlatform = z.infer; type TerminalCwdTarget = z.infer; //#endregion //#region src/terminal-invocation.d.ts interface TerminalShellEnv { SHELL?: string; ComSpec?: string; } declare const TERMINAL_SHELL_QUOTE_STYLE_VALUES: readonly ["posix", "cmd", "powershell"]; declare const TERMINAL_COMMAND_FIELD_TYPE_VALUES: readonly ["text", "textarea", "boolean", "select"]; declare const TerminalShellQuoteStyleSchema: z.ZodEnum<["posix", "cmd", "powershell"]>; type TerminalShellQuoteStyle = z.infer; declare const TerminalShellProfileSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; command: z.ZodString; args: z.ZodDefault>; source: z.ZodDefault>; quoteStyle: z.ZodDefault>; }, "strip", z.ZodTypeAny, { id: string; label: string; source: "custom" | "builtin"; command: string; args: string[]; quoteStyle: "posix" | "cmd" | "powershell"; }, { id: string; label: string; command: string; source?: "custom" | "builtin" | undefined; args?: string[] | undefined; quoteStyle?: "posix" | "cmd" | "powershell" | undefined; }>; type TerminalShellProfile = z.infer; declare const TerminalCommandFieldSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; type: z.ZodEnum<["text", "textarea", "boolean", "select"]>; description: z.ZodOptional; placeholder: z.ZodOptional; defaultValue: z.ZodOptional>; options: z.ZodDefault>; required: z.ZodDefault; advanced: z.ZodDefault; }, "strip", z.ZodTypeAny, { options: string[]; type: "boolean" | "text" | "textarea" | "select"; id: string; required: boolean; label: string; advanced: boolean; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; }, { type: "boolean" | "text" | "textarea" | "select"; id: string; label: string; options?: string[] | undefined; required?: boolean | undefined; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; advanced?: boolean | undefined; }>; type TerminalCommandField = z.infer; declare const TerminalCommandArgumentSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"literal">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>; type TerminalCommandArgument = z.infer; declare const TerminalCommandJsonSchemaPropertySchema: z.ZodObject<{ type: z.ZodDefault>; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional>; enum: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "string" | "boolean"; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }, { type?: "string" | "boolean" | undefined; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }>; type TerminalCommandJsonSchemaProperty = z.infer; declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodDefault>; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional>; enum: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "string" | "boolean"; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }, { type?: "string" | "boolean" | undefined; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }>>>; required: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "object"; required: string[]; properties: Record; }, { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }>; type TerminalCommandJsonSchema = z.infer; declare const TerminalCommandParametersSchema: z.ZodObject<{ schema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodDefault>; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional>; enum: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "string" | "boolean"; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }, { type?: "string" | "boolean" | undefined; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }>>>; required: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "object"; required: string[]; properties: Record; }, { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }>; uiSchema: z.ZodDefault>; }, "strip", z.ZodTypeAny, { schema: { type: "object"; required: string[]; properties: Record; }; uiSchema: Record; }, { schema: { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }; uiSchema?: Record | undefined; }>; type TerminalCommandParameters = z.infer; declare const TerminalCommandBuilderPartSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"literal">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>; type TerminalCommandBuilderPart = z.infer; declare const TerminalCommandBuilderSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"argv">; parts: z.ZodDefault; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>, "many">>; }, "strip", z.ZodTypeAny, { kind: "argv"; parts: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; }, { kind: "argv"; parts?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"shellLine">; template: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "shellLine"; template: string; }, { kind: "shellLine"; template?: string | undefined; }>]>; type TerminalCommandBuilder = z.infer; declare const TerminalSpawnCommandSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional; command: z.ZodString; args: z.ZodDefault; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>, "many">>; fields: z.ZodDefault; description: z.ZodOptional; placeholder: z.ZodOptional; defaultValue: z.ZodOptional>; options: z.ZodDefault>; required: z.ZodDefault; advanced: z.ZodDefault; }, "strip", z.ZodTypeAny, { options: string[]; type: "boolean" | "text" | "textarea" | "select"; id: string; required: boolean; label: string; advanced: boolean; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; }, { type: "boolean" | "text" | "textarea" | "select"; id: string; label: string; options?: string[] | undefined; required?: boolean | undefined; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; advanced?: boolean | undefined; }>, "many">>; parameters: z.ZodOptional; properties: z.ZodDefault>; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional>; enum: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "string" | "boolean"; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }, { type?: "string" | "boolean" | undefined; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }>>>; required: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "object"; required: string[]; properties: Record; }, { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }>; uiSchema: z.ZodDefault>; }, "strip", z.ZodTypeAny, { schema: { type: "object"; required: string[]; properties: Record; }; uiSchema: Record; }, { schema: { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }; uiSchema?: Record | undefined; }>>; builder: z.ZodOptional; parts: z.ZodDefault; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>, "many">>; }, "strip", z.ZodTypeAny, { kind: "argv"; parts: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; }, { kind: "argv"; parts?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"shellLine">; template: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "shellLine"; template: string; }, { kind: "shellLine"; template?: string | undefined; }>]>>; shellProfileId: z.ZodOptional; source: z.ZodDefault>; }, "strip", z.ZodTypeAny, { id: string; label: string; source: "custom" | "builtin"; command: string; args: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; fields: { options: string[]; type: "boolean" | "text" | "textarea" | "select"; id: string; required: boolean; label: string; advanced: boolean; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; }[]; description?: string | undefined; parameters?: { schema: { type: "object"; required: string[]; properties: Record; }; uiSchema: Record; } | undefined; builder?: { kind: "argv"; parts: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; } | { kind: "shellLine"; template: string; } | undefined; shellProfileId?: string | undefined; }, { id: string; label: string; command: string; description?: string | undefined; source?: "custom" | "builtin" | undefined; args?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; fields?: { type: "boolean" | "text" | "textarea" | "select"; id: string; label: string; options?: string[] | undefined; required?: boolean | undefined; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; advanced?: boolean | undefined; }[] | undefined; parameters?: { schema: { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }; uiSchema?: Record | undefined; } | undefined; builder?: { kind: "argv"; parts?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; } | { kind: "shellLine"; template?: string | undefined; } | undefined; shellProfileId?: string | undefined; }>; type TerminalSpawnCommand = z.infer; declare const TerminalInvocationSettingsSchema: z.ZodObject<{ defaultShellProfileId: z.ZodOptional; customShellProfiles: z.ZodDefault>; source: z.ZodDefault>; quoteStyle: z.ZodDefault>; }, "strip", z.ZodTypeAny, { id: string; label: string; source: "custom" | "builtin"; command: string; args: string[]; quoteStyle: "posix" | "cmd" | "powershell"; }, { id: string; label: string; command: string; source?: "custom" | "builtin" | undefined; args?: string[] | undefined; quoteStyle?: "posix" | "cmd" | "powershell" | undefined; }>, "many">>; customSpawnCommands: z.ZodDefault; command: z.ZodString; args: z.ZodDefault; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>, "many">>; fields: z.ZodDefault; description: z.ZodOptional; placeholder: z.ZodOptional; defaultValue: z.ZodOptional>; options: z.ZodDefault>; required: z.ZodDefault; advanced: z.ZodDefault; }, "strip", z.ZodTypeAny, { options: string[]; type: "boolean" | "text" | "textarea" | "select"; id: string; required: boolean; label: string; advanced: boolean; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; }, { type: "boolean" | "text" | "textarea" | "select"; id: string; label: string; options?: string[] | undefined; required?: boolean | undefined; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; advanced?: boolean | undefined; }>, "many">>; parameters: z.ZodOptional; properties: z.ZodDefault>; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional>; enum: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "string" | "boolean"; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }, { type?: "string" | "boolean" | undefined; description?: string | undefined; title?: string | undefined; default?: string | boolean | undefined; enum?: string[] | undefined; }>>>; required: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "object"; required: string[]; properties: Record; }, { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }>; uiSchema: z.ZodDefault>; }, "strip", z.ZodTypeAny, { schema: { type: "object"; required: string[]; properties: Record; }; uiSchema: Record; }, { schema: { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }; uiSchema?: Record | undefined; }>>; builder: z.ZodOptional; parts: z.ZodDefault; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; kind: "literal"; }, { value: string; kind: "literal"; }>, z.ZodObject<{ kind: z.ZodLiteral<"field">; fieldId: z.ZodString; prefix: z.ZodDefault; omitWhenEmpty: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; }, { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"booleanFlag">; fieldId: z.ZodString; flag: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "booleanFlag"; fieldId: string; flag: string; }, { kind: "booleanFlag"; fieldId: string; flag: string; }>]>, "many">>; }, "strip", z.ZodTypeAny, { kind: "argv"; parts: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; }, { kind: "argv"; parts?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"shellLine">; template: z.ZodDefault; }, "strip", z.ZodTypeAny, { kind: "shellLine"; template: string; }, { kind: "shellLine"; template?: string | undefined; }>]>>; shellProfileId: z.ZodOptional; source: z.ZodDefault>; }, "strip", z.ZodTypeAny, { id: string; label: string; source: "custom" | "builtin"; command: string; args: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; fields: { options: string[]; type: "boolean" | "text" | "textarea" | "select"; id: string; required: boolean; label: string; advanced: boolean; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; }[]; description?: string | undefined; parameters?: { schema: { type: "object"; required: string[]; properties: Record; }; uiSchema: Record; } | undefined; builder?: { kind: "argv"; parts: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; } | { kind: "shellLine"; template: string; } | undefined; shellProfileId?: string | undefined; }, { id: string; label: string; command: string; description?: string | undefined; source?: "custom" | "builtin" | undefined; args?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; fields?: { type: "boolean" | "text" | "textarea" | "select"; id: string; label: string; options?: string[] | undefined; required?: boolean | undefined; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; advanced?: boolean | undefined; }[] | undefined; parameters?: { schema: { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }; uiSchema?: Record | undefined; } | undefined; builder?: { kind: "argv"; parts?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; } | { kind: "shellLine"; template?: string | undefined; } | undefined; shellProfileId?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { customShellProfiles: { id: string; label: string; source: "custom" | "builtin"; command: string; args: string[]; quoteStyle: "posix" | "cmd" | "powershell"; }[]; customSpawnCommands: { id: string; label: string; source: "custom" | "builtin"; command: string; args: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; fields: { options: string[]; type: "boolean" | "text" | "textarea" | "select"; id: string; required: boolean; label: string; advanced: boolean; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; }[]; description?: string | undefined; parameters?: { schema: { type: "object"; required: string[]; properties: Record; }; uiSchema: Record; } | undefined; builder?: { kind: "argv"; parts: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix: string; omitWhenEmpty: boolean; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[]; } | { kind: "shellLine"; template: string; } | undefined; shellProfileId?: string | undefined; }[]; defaultShellProfileId?: string | undefined; }, { defaultShellProfileId?: string | undefined; customShellProfiles?: { id: string; label: string; command: string; source?: "custom" | "builtin" | undefined; args?: string[] | undefined; quoteStyle?: "posix" | "cmd" | "powershell" | undefined; }[] | undefined; customSpawnCommands?: { id: string; label: string; command: string; description?: string | undefined; source?: "custom" | "builtin" | undefined; args?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; fields?: { type: "boolean" | "text" | "textarea" | "select"; id: string; label: string; options?: string[] | undefined; required?: boolean | undefined; description?: string | undefined; placeholder?: string | undefined; defaultValue?: string | boolean | undefined; advanced?: boolean | undefined; }[] | undefined; parameters?: { schema: { type: "object"; required?: string[] | undefined; properties?: Record | undefined; }; uiSchema?: Record | undefined; } | undefined; builder?: { kind: "argv"; parts?: ({ value: string; kind: "literal"; } | { kind: "field"; fieldId: string; prefix?: string | undefined; omitWhenEmpty?: boolean | undefined; } | { kind: "booleanFlag"; fieldId: string; flag: string; })[] | undefined; } | { kind: "shellLine"; template?: string | undefined; } | undefined; shellProfileId?: string | undefined; }[] | undefined; }>; type TerminalInvocationSettings = z.infer; type TerminalCommandFieldValue = string | boolean; type TerminalCommandFieldValues = Record; type TerminalCommandRenderResult = { kind: 'argv'; argv: string[]; } | { kind: 'shellLine'; commandLine: string; }; interface TerminalShellDefaults { platform: PtyPlatform; effectiveDefaultShell: TerminalShellProfile; builtinShellProfiles: TerminalShellProfile[]; } declare function resolveTerminalShellDefaults(options: { platform: PtyPlatform; env?: TerminalShellEnv; }): TerminalShellDefaults; declare const BUILTIN_TERMINAL_SPAWN_COMMANDS: readonly TerminalSpawnCommand[]; declare function fieldsToTerminalCommandParameters(fields: readonly TerminalCommandField[]): TerminalCommandParameters; declare function getTerminalCommandParameters(command: TerminalSpawnCommand): TerminalCommandParameters; declare function getTerminalCommandDefaultValues(command: TerminalSpawnCommand, presetValues?: TerminalCommandFieldValues): TerminalCommandFieldValues; declare function renderTerminalCommandArgs(command: TerminalSpawnCommand, values: TerminalCommandFieldValues): string[]; declare function renderTerminalSpawnCommand(options: { command: TerminalSpawnCommand; values: TerminalCommandFieldValues; }): TerminalCommandRenderResult; declare function quoteTerminalShellArg(value: string, quoteStyle: TerminalShellQuoteStyle): string; declare function renderTerminalSpawnCommandLine(options: { command: TerminalSpawnCommand; values: TerminalCommandFieldValues; quoteStyle: TerminalShellQuoteStyle; }): string; //#endregion export { PtyServerMessageSchema as $, renderTerminalSpawnCommand as A, PtyCreatedResponseSchema as B, TerminalSpawnCommand as C, getTerminalCommandParameters as D, getTerminalCommandDefaultValues as E, PtyBufferResponseSchema as F, PtyListMessageSchema as G, PtyErrorResponseSchema as H, PtyClientMessage as I, PtyPlatform as J, PtyListResponseSchema as K, PtyClientMessageSchema as L, resolveTerminalShellDefaults as M, PtyAttachMessageSchema as N, quoteTerminalShellArg as O, PtyBellResponseSchema as P, PtyServerMessage as Q, PtyCloseMessageSchema as R, TerminalShellQuoteStyleSchema as S, fieldsToTerminalCommandParameters as T, PtyExitResponseSchema as U, PtyErrorCodeSchema as V, PtyInputMessageSchema as W, PtyProcessTitleResponseSchema as X, PtyPlatformSchema as Y, PtyResizeMessageSchema as Z, TerminalShellDefaults as _, TerminalCommandBuilder as a, TerminalShellProfileSchema as b, TerminalCommandFieldSchema as c, TerminalCommandJsonSchema as d, PtySessionInfo as et, TerminalCommandJsonSchemaProperty as f, TerminalInvocationSettingsSchema as g, TerminalInvocationSettings as h, TerminalCommandArgument as i, renderTerminalSpawnCommandLine as j, renderTerminalCommandArgs as k, TerminalCommandFieldValue as l, TerminalCommandRenderResult as m, TERMINAL_COMMAND_FIELD_TYPE_VALUES as n, TerminalCwdTarget as nt, TerminalCommandBuilderPart as o, TerminalCommandParameters as p, PtyOutputResponseSchema as q, TERMINAL_SHELL_QUOTE_STYLE_VALUES as r, TerminalCwdTargetSchema as rt, TerminalCommandField as s, BUILTIN_TERMINAL_SPAWN_COMMANDS as t, PtyTitleResponseSchema as tt, TerminalCommandFieldValues as u, TerminalShellEnv as v, TerminalSpawnCommandSchema as w, TerminalShellQuoteStyle as x, TerminalShellProfile as y, PtyCreateMessageSchema as z };