import { r as ShellResult } from "./shell-CU60cw5X.mjs"; //#region src/cmdSession.d.ts interface CmdSessionOpts { cwd?: string; env?: Record; minWait?: number; maxWait?: number; startupDelay?: number; useOsc133?: boolean; envFile?: string; cwdFile?: string; funcFile?: string; } declare class CmdSession { private proc; private stdoutBuffer; private stderrBuffer; private minWait; private maxWait; private startupDelay; private useOsc133; private firstExecute; private closed; private stdoutReader; private stderrReader; constructor(cmd: string, opts?: CmdSessionOpts); private startReaders; /** * Wait for subprocess to be ready by detecting OSC 133;A prompt marker. * This is more robust than a fixed delay as it adapts to actual subprocess startup time. * Falls back to startupDelay timeout if no marker is received. */ private waitForReady; /** * Execute a command and wait for output with timeout-based completion detection * * When useOsc133 is enabled, waits for OSC 133;D marker and extracts exit code. * Falls back to silence-based detection on timeout. */ execute(command: string): Promise; /** * Close the subprocess */ close(): Promise; /** * Check if the subprocess is still running */ get isRunning(): boolean; [Symbol.asyncDispose](): Promise; } //#endregion export { CmdSession, CmdSessionOpts };