export declare class Mutex { private _lock; lock(fn: () => T | Promise): Promise; }