import { type ParsedArgs } from './parser.js'; import type { ReplDeps } from './commands/types.js'; export interface ShellOptions { jsonMode?: boolean; input?: NodeJS.ReadableStream; /** Result/data sink (stdout in production). */ output?: NodeJS.WritableStream; /** Human/diagnostic sink (stderr in production). Defaults to stderr. */ errorOutput?: NodeJS.WritableStream; /** Whether the session is attached to a terminal (interactive). */ isTty?: boolean; } export interface ShellResult { /** Number of commands that failed (error result, parse error, unknown). */ failures: number; } /** * Parse one interactive shell line: tokenize, resolve the command's boolean-flag * set, then parse so bare boolean flags never swallow the following positional. * Exported for the boolean-wiring seam test. */ export declare function parseCommandLine(line: string): ParsedArgs; export declare function startShell(deps: ReplDeps, options?: ShellOptions): Promise; //# sourceMappingURL=shell.d.ts.map