declare class ProfileContextSyncLock {
    private readonly locksDir;
    constructor(instancesDir: string);
    private sanitizeName;
    private getLockPath;
    private isProcessAlive;
    private parseContextSyncLock;
    private readContextSyncLockSnapshot;
    private tryRemoveLockIfUnchanged;
    private tryRemoveDeadOwnerLock;
    withNamedLock<T>(lockName: string, callback: () => Promise<T>): Promise<T>;
    withLock<T>(profileName: string, callback: () => Promise<T>): Promise<T>;
    withNamedLockSync<T>(lockName: string, callback: () => T): T;
    withLockSync<T>(profileName: string, callback: () => T): T;
}
export default ProfileContextSyncLock;
//# sourceMappingURL=profile-context-sync-lock.d.ts.map