import type { ExternalProcessStatus, AgentRunnerConfig } from "../../shared/types.ts"; import type { RunnerAdapter } from "./runner-adapter.ts"; export declare function buildExternalCliPrompt(systemInstructions: string, task: string): string; export type ExternalCliRunnerConfig = Extract; export interface ExternalCliRunRequest { command: string; args?: string[]; cwd: string; prompt: string; asyncDir: string; stepIndex: number; attempt?: number; maxAttempts?: number; signal?: AbortSignal; registerTimeout?: (stop: (() => void) | undefined) => void; registerStop?: (stop: (() => void) | undefined) => void; timeoutMessage?: string; stopMessage?: string; onProcess?: (process: ExternalProcessStatus) => void; } export interface ExternalCliRunResult { output: string; exitCode: number | null; error?: string; timedOut?: boolean; stopped?: boolean; processSignal?: string | null; externalProcess: ExternalProcessStatus; } export declare function runExternalCli(input: ExternalCliRunRequest): Promise; export declare class ExternalCliRunner implements RunnerAdapter { readonly type = "external-cli"; private readonly config; constructor(config: ExternalCliRunnerConfig); run(input: ExternalCliRunRequest): Promise; } //# sourceMappingURL=external-cli-runner.d.ts.map