/** * @file The lock a corpus build holds on its output directory for as long as it runs. * * Two builds writing one `--out` would interleave their align outputs, overwrite each other's checkpoints and * source records, and assemble a manifest over files the other build is still writing. The lock is the shared * directory lock from `@mailwoman/core/fs/lock`, so a lock left by a killed build on this host is taken over by * the next build. */ import { type DirectoryLock } from "@mailwoman/core/fs/lock"; import { type PathBuilderLike } from "path-ts"; /** * The lock directory's name under `--out`. */ export declare const BUILD_LOCK_DIRECTORY = ".corpus-build.lock"; /** * Take the lock on `outputDir`, returning a handle whose disposal releases it. * * @throws When a live build holds the lock, or a build on another host does, * naming the owner's pid, host and start time. */ export declare function acquireBuildLock(outputDir: PathBuilderLike): Promise; //# sourceMappingURL=lock.d.ts.map