export interface PtyShellLaunchPlan { shellArgs: string[]; /** Fallback for shells whose command language Wand cannot safely wrap. */ commandToWrite?: string; cliExitMarker: PtyCliExitMarker | null; } export interface PtyCliExitChunk { data: string; exitCode: number | null; } /** * Removes Wand's private CLI/shell boundary marker even when a PTY splits it * across chunks. The marker never reaches terminal rendering, transcripts, or * Claude's PTY parser. */ export declare class PtyCliExitMarker { readonly token: string; private readonly prefix; private pending; private completed; constructor(token?: string); consume(chunk: string): PtyCliExitChunk; } /** * Build the PTY process shape without conflating three different lifecycles: * a bare interactive shell, a provider CLI that falls back to a shell, and a * one-shot non-provider command. */ export declare function buildPtyShellLaunchPlan(options: { shell: string; command: string; bareShell: boolean; providerCommand: boolean; platform?: NodeJS.Platform; markerToken?: string; }): PtyShellLaunchPlan;