import type { ChatImage, Mode, ProviderId } from "../types.js"; import type { TurnOutcome } from "../agent/turn-outcome.js"; import { type PromptStream } from "./readline-prompts.js"; export interface NoninteractiveOptions { readonly prompt: string; readonly historyPrompt?: string | undefined; readonly mode: Mode; readonly provider?: ProviderId | undefined; readonly model?: string | undefined; readonly yes?: boolean | undefined; readonly noHistory?: boolean | undefined; readonly showThinking?: boolean | undefined; readonly verbose?: boolean | undefined; readonly quiet?: boolean | undefined; readonly images?: ChatImage[] | undefined; readonly visionProven?: boolean | undefined; readonly out?: NodeJS.WritableStream | undefined; readonly err?: NodeJS.WritableStream | undefined; readonly input?: PromptStream | undefined; readonly columns?: number | undefined; readonly color?: boolean | undefined; readonly unicode?: boolean | undefined; readonly signal?: AbortSignal | undefined; } export interface NoninteractiveResult { readonly answer: string; readonly outcome: TurnOutcome; readonly exitCode: number; } export declare function exitCodeForOutcome(outcome: Pick): number; export declare function exitCodeForError(_error: unknown): number; export declare function startNoninteractive(options: NoninteractiveOptions): Promise;