declare const GENERATION_LOCK_FILE = ".generation.lock"; export interface GenerationLockOptions { maxWaitMs?: number; signal?: AbortSignal; } export declare class GenerationLockHeldError extends Error { readonly lockPath: string; readonly ageMs: number; constructor(lockPath: string, ageMs: number); } /** Acquire the repository-scoped lock covering every mutating generation phase. */ export declare function acquireGenerationLock(rootPath: string, options?: GenerationLockOptions): Promise<() => Promise>; /** Serialize one complete mutating generation while always releasing ownership. */ export declare function withGenerationLock(rootPath: string, callback: () => Promise, options?: GenerationLockOptions): Promise; export { GENERATION_LOCK_FILE }; //# sourceMappingURL=generation-lock.d.ts.map