import type { AgentToolResult } from "@lpb-work/pi-agent-core"; import { type Details, type SubagentState } from "../../shared/types.ts"; import { type SubagentWaitDeps, type SubagentWaitParams, type WaitEventBus } from "./subagent-wait.ts"; export declare const DEFAULT_AUTO_DRAIN_TIMEOUT_MS: number; export interface AutoDrainDeps { state: SubagentState; events?: WaitEventBus; timeoutMs?: number; now?: () => number; wait?: (params: SubagentWaitParams, signal: AbortSignal | undefined, deps: SubagentWaitDeps) => Promise>; hasWork?: (sessionId: string, nowMs: number) => boolean; } /** Drain all work owned by the current headless session, including work added while draining. */ export declare function drainOutstandingWork(deps: AutoDrainDeps): Promise; //# sourceMappingURL=auto-drain.d.ts.map