export type ReplCommand = { kind: 'retry'; targets: string[]; cascade: boolean; } | { kind: 'start'; targets: string[]; } | { kind: 'status'; } | { kind: 'help'; } | { kind: 'quit'; } | { kind: 'noop'; } | { kind: 'error'; message: string; }; /** * Parse a single line of user input into a ReplCommand. Pure — no I/O. */ export declare function parseReplLine(line: string): ReplCommand; export interface ReplHandlers { retry(targets: string[], cascade: boolean): Promise; start(targets: string[]): Promise; status(): void; quit(): Promise; } export interface ReplOptions { input?: NodeJS.ReadableStream; output?: NodeJS.WritableStream; /** * When false, attach unconditionally. When true (default), only attach when * `input` is a TTY — keeps `orc start` usable in non-interactive contexts * (CI, pipes) without spurious prompt clutter. */ requireTty?: boolean; /** Override the prompt string. */ prompt?: string; } export interface Repl { detach(): void; printHint(message: string): void; } /** * Attach an interactive command loop to an orchestrator. Returns null when * no TTY is available and `requireTty` is true (the default). */ export declare function attachRepl(handlers: ReplHandlers, options?: ReplOptions): Repl | null; //# sourceMappingURL=repl.d.ts.map