import { Defer } from 'thingies/lib/Defer'; declare class Entry { readonly code: () => Promise; readonly future: Defer; constructor(code: () => Promise, future: Defer); } export declare class Mutex { protected readonly queue: Map[]>; readonly acquire: (key: string, code: () => Promise) => Promise; protected run(key: string, entry: Entry): Promise; } export {};