/** * 并发fn * @param {(...args: any[]) => Promise} fn * @param {any} context * @returns */ export declare function withCo(fn: any, context?: any): (...args: any[]) => Promise; /** * once 支持Asynchronous并发 * @param {(...args: any[]) => Promise} fn * @param {object?} option * @param {any?} option.context 执行context * @param {(...args) => string} option.getKey 从args中获取mutexlock key * @returns */ export declare function withOnce(fn: any, { context, getKey, timeout }?: { timeout?: number; context?: any; getKey?: (...args: any[]) => string; }): (...args: any[]) => Promise;