import { type BackgroundAgentRegistry } from '../../background-registry.js'; import type { SubagentManager } from '../../subagent.js'; import type { ToolResult } from '../types.js'; type ForkedHandle = Awaited>; export interface RunBackgroundBranchArgs { handle: ForkedHandle; registry: BackgroundAgentRegistry | undefined; prompt: string; model: string | undefined; parentSessionId: string | undefined; onSettled?: (isError: boolean) => void; budgetRelease?: () => void; onCleanup?: () => Promise; isolationTeardown?: { repoRoot: string; worktreePath: string; }; } export declare function runBackgroundBranch(args: RunBackgroundBranchArgs): Promise; export {};