/**
 * Shared proper-lockfile acquisition policy for the file-backed auth and settings stores.
 *
 * proper-lockfile defaults to `stale: 10_000` and refreshes a held lock's mtime every
 * `stale / 2` ms (clamped to at least 1s). A sync contender using the default window can
 * therefore classify a live async lock (mtime refreshed every 15s at stale 30s) as stale in
 * the 10-15s gap and steal it. Every store acquires locks with this one policy so that no
 * contender can out-vote a live holder.
 */
export declare const FILE_STORAGE_LOCK_OPTIONS: {
    readonly realpath: false;
    readonly stale: 30000;
    readonly update: 10000;
    readonly retries: 0;
};
export declare const FILE_STORAGE_LOCK_RETRY_BUDGET_MS = 5500;
export declare const FILE_STORAGE_LOCK_RETRY_MIN_DELAY_MS = 100;
export declare const FILE_STORAGE_LOCK_RETRY_MAX_DELAY_MS = 1000;
export declare const FILE_STORAGE_SYNC_LOCK_BUDGET_MS = 1000;
export declare class CredentialStoreBusyError extends Error {
    readonly path: string;
    readonly waitedMs: number;
    constructor(path: string, waitedMs: number, cause?: unknown);
}
export declare function isLockError(error: unknown): boolean;
//# sourceMappingURL=lockfile-policy.d.ts.map