export declare const IDENTITY_LOCK_RELEASE_AFTER: unique symbol; export interface IdentityLockDeferredRelease { readonly [IDENTITY_LOCK_RELEASE_AFTER]: Promise; } export interface IdentityLockOptions { readonly waitTimeoutMs?: number; readonly pollIntervalMs?: number; } export declare class IdentityLockTimeoutError extends Error { readonly lockPath: string; constructor(lockPath: string, waitTimeoutMs: number); } export declare function ensurePrivateIdentityDirectory(directory: string): Promise; export declare function withIdentityLock(directory: string, operation: () => Promise, options?: IdentityLockOptions): Promise;