import type { Lock } from "./lock.js"; /** * A mutex between callers inside one process, held by nothing but this object. * Contenders have to share the instance, since there is no path or pid for a * second one to find. Waiters are served in the order they arrived. */ export declare class MemoryLock implements Lock { private tail; private handOff; acquire(): Promise; release(): Promise; releaseIfOurs(): Promise; }