import type { OpenCodeContext } from "../../types/plugin"; import type { BackgroundTask, LaunchInput } from "./types"; export declare class BackgroundAgentManager { private readonly tasks; private readonly concurrency; private readonly abortControllers; constructor(concurrencyLimit?: number); launch(ctx: OpenCodeContext, input: LaunchInput): Promise; private runLifecycle; dispose(): void; complete(id: string, result: string): void; fail(id: string, error: string): void; cancel(ctx: OpenCodeContext, id: string): Promise; private cleanupSession; private evictStaleTasks; get(id: string): BackgroundTask | undefined; getAll(): BackgroundTask[]; }