/** * Run `fn` while holding the per-file mutation lock for `filePath`. * * `filePath` may be a single path or an array of paths. For an array, each * file gets its own per-file queue key (NOT a joined blob — a joined key would * fail to serialize against single-path locks on the same file). Keys are * sorted and acquired in a fixed order to avoid deadlock between two array * locks that share a subset of files. The callback runs only once all locks * are held and every lock is released in the `finally` block. */ export declare function withFileMutationQueue(filePath: string | string[], fn: () => Promise): Promise; //# sourceMappingURL=file-mutation-queue.d.ts.map