/** * Executes only one instance of give code at a time. For parallel calls, it * returns the result of the ongoing execution. */ export declare function mutex(fn: (this: This, ...args: Args) => Promise, context?: ClassMethodDecoratorContext Promise>): (this: This, ...args: Args) => Promise;