/** * Coalesce in-flight hashline `edit` calls that target the same snapshot. * * Models often emit several parallel `edit` calls against one `[path#TAG]`. * Those hunks were authored against the original snapshot, so they must apply * as one batch — the same merge `Patch.parse` already does inside a single * call. The first writer to hold the file mutation lock absorbs every * compatible sibling that has already announced and applies them together. */ export declare function parallelEditBatchWarning(count: number): string; export declare class EditBatchEntry { #private; readonly input: string; readonly paths: ReadonlyMap; readonly signal: AbortSignal | undefined; readonly promise: Promise; constructor(input: string, paths: ReadonlyMap, signal?: AbortSignal); get settled(): boolean; resolve(value: T): void; reject(reason: unknown): void; } export declare class EditBatchCoordinator { #private; announce(input: string, paths: ReadonlyMap, signal?: AbortSignal): EditBatchEntry; /** * Claim `leader` plus every pending sibling whose sections are a subset of * the leader's locked `(path → tag)` set. Aborted siblings are rejected and * dropped instead of being absorbed. */ takeCompatible(leader: EditBatchEntry): EditBatchEntry[]; drop(entry: EditBatchEntry): void; } //# sourceMappingURL=edit-batch.d.ts.map