export type CommitAnchor = 'before-content' | 'after-content' | `after-subagent:${string}`; export interface CommitBatch { anchor: CommitAnchor; commits: Array<() => void>; } export declare class CommitCoordinator { private readonly beforeContent; private readonly afterSubagent; private readonly afterContent; schedule(batch: CommitBatch): void; drainSubagent(id: string): void; flushAll(streamingMarkdownFlush?: () => Promise): Promise; }