import { type CodeAgentFollowUpMode, type CodeAgentPermissionMode } from "../cli/code-agent-runs.js"; import type { ReasoningEffort } from "../shared/reasoning-effort.js"; import { type BackgroundAgentRun, type BackgroundAgentTranscriptEvent, type ListBackgroundAgentRunsOptions } from "./background-run.js"; export type BackgroundAgentControlCommand = "approve" | "deny" | "resume" | "retry" | "stop"; export interface BackgroundAgentControlInput { runId: string; command: BackgroundAgentControlCommand; stdout?: NodeJS.WritableStream; } export interface BackgroundAgentFollowUpInput { runId: string; prompt: string; mode?: CodeAgentFollowUpMode; permissionMode?: CodeAgentPermissionMode; model?: string; reasoningEffort?: ReasoningEffort; source?: string; metadata?: Record; stdout?: NodeJS.WritableStream; } export interface BackgroundAgentControlResult { ok: boolean; runId: string; run: BackgroundAgentRun | null; queued?: boolean; message?: string; error?: string; } export interface BackgroundAgentController { list(options?: ListBackgroundAgentRunsOptions): Promise | BackgroundAgentRun[]; get(runId: string): Promise | BackgroundAgentRun | null; transcript(runId: string): Promise | BackgroundAgentTranscriptEvent[]; sendFollowUp(input: BackgroundAgentFollowUpInput): Promise; control(input: BackgroundAgentControlInput): Promise; } export declare function createCompositeBackgroundAgentController(controllers: BackgroundAgentController[]): BackgroundAgentController; export declare function createLocalCodeBackgroundAgentController(): BackgroundAgentController; export declare const localCodeBackgroundAgentController: BackgroundAgentController; //# sourceMappingURL=background-controller.d.ts.map