import type { AppServerClient } from '../services/app-server-client.js'; import type { TaskFileWriter } from '../services/task-file-writer.js'; import type { TaskHandle } from '../task/task-handle.js'; /** * Listen for `notification` events on the AppServerClient, capture agent * messages, command output, file diffs, and errors — writing them to the * TaskHandle's output methods. Returns an unsubscribe function. */ export declare function attachEventCapture(client: AppServerClient, handle: TaskHandle, threadId: string, fileWriter?: TaskFileWriter | undefined): () => void;