import type { BackgroundAgentControlResult, BackgroundAgentController } from "../../code-agents/background-controller.js"; import type { BackgroundAgentRun, BackgroundAgentTranscriptEvent, ListBackgroundAgentRunsOptions } from "../../code-agents/background-run.js"; import type { ActiveRun } from "../run-manager.js"; import { type AgentHarnessOwnerScope } from "./lifecycle.js"; export declare function createAgentHarnessBackgroundAgentController(scope?: AgentHarnessOwnerScope, options?: { /** Hosts use this to project child output and drain queued thread work. */ onRunComplete?: (run: ActiveRun) => void | Promise; }): BackgroundAgentController; export declare const agentHarnessBackgroundAgentController: BackgroundAgentController; export declare function listAgentHarnessBackgroundRuns(options?: ListBackgroundAgentRunsOptions & { orgId?: string | null; }): Promise; export declare function getAgentHarnessBackgroundRun(runId: string, options?: AgentHarnessOwnerScope): Promise; export declare function listAgentHarnessBackgroundTranscriptEvents(runId: string, options?: AgentHarnessOwnerScope): Promise; export declare function stopAgentHarnessBackgroundRun(runId: string, options?: { ownerEmail: string | null; orgId?: string | null; }): Promise;