export interface BuildLockHolder { pid: number; /** When the holder took the lock (epoch ms). */ startedAt: number; lockPath: string; } export type BuildLock = { acquired: true; release: () => void; } | { acquired: false; holder: BuildLockHolder | null; }; export declare const buildLockPath: (dbPath: string) => string; /** The process holding the build lock for `dbPath`, or null when no live build holds it. */ export declare function liveBuildLockHolder(dbPath: string): BuildLockHolder | null; /** "(pid 123, running 2m)" — who holds a build lock, for log lines. */ export declare function describeBuildLockHolder(holder: BuildLockHolder): string; export declare function acquireBuildLock(dbPath: string): BuildLock; //# sourceMappingURL=build-lock.d.ts.map