export interface BgTaskOutputSubscriber { onLine: (event: { stream: "stdout" | "stderr"; text: string; seq: number; }) => void; onDone: (event: { status: string; exitCode: number | null; signal: string | null; }) => void; } export interface BgTaskOutputSnapshot { taskId: string; status: string; exitCode: number | null; signal: string | null; startedAt: number; finishedAt: number | null; command: string; lines: string[]; nextSeq: number; totalLines: number; totalBytes: number; truncated: boolean; } export interface BgTaskSummary { taskId: string; status: string; command: string; commandPreview: string; description?: string; cwd: string; startedAt: number; finishedAt: number | null; exitCode: number | null; signal: string | null; outputLineCount: number; outputBytes: number; } export interface BgManagerLike { getTaskOutputSnapshot(agentId: string, taskId: string, tailLines?: number): BgTaskOutputSnapshot | null; subscribeTaskOutput(agentId: string, taskId: string, subscriber: BgTaskOutputSubscriber): (() => void) | null; listTasksWithReconcile?(agentId: string, statusFilter?: string): Promise; } export declare function getAcodeBgManager(): Promise;