/**
 * Gives each task the exclusive use of its paths, and the shared use
 * of their parent directories. A task starts when each task before
 * it that uses one of its paths, or a directory above or below one,
 * is done.
 *
 * Paths that differ only in case or in Unicode form are the same
 * path, because they can be the same file on disk.
 */
export declare class PathReservations {
    #private;
    /** @param win32 run one task at a time */
    constructor(win32?: boolean);
    /**
     * Call `fn` when it is first in line for each of its paths. The
     * paths are free again when the promise of `fn` settles. Returns a
     * promise with the result of `fn`.
     */
    reserve(paths: string[], fn: () => Promise<void>): Promise<void>;
}
//# sourceMappingURL=path-reservations.d.ts.map