export declare class ProfileLockedError extends Error { readonly profileDir: string; readonly holderPid?: number; constructor(profileDir: string, holderPid?: number); } export interface ProfileLockHandle { readonly profileDir: string; readonly lockPath: string; released: boolean; release(): void; } export declare function lockPathFor(profileDir: string): string; export interface AcquireLockOptions { staleMs?: number; } export declare function acquireProfileLock(profileDir: string, options?: AcquireLockOptions): ProfileLockHandle; export declare function isProfileLocked(profileDir: string): boolean; export declare function withProfileLock(profileDir: string, fn: (lock: ProfileLockHandle) => Promise, options?: AcquireLockOptions): Promise; //# sourceMappingURL=profile-lock.d.ts.map