export interface FileLockOptions {
    /** Max time to wait for the lock before throwing (default MAX_WAIT_MS). */
    maxWaitMs?: number;
    /** Min lock age before a dead-PID lock is stale-breakable (default MIN_STALE_AGE_MS). */
    minStaleAgeMs?: number;
}
export declare function withFileLock<T>(targetPath: string, fn: () => Promise<T>, opts?: FileLockOptions): Promise<T>;
//# sourceMappingURL=file-lock.d.ts.map