/** * Callback used by {@link LegacyAdapters}. * @public */ export type LegacyCallback = (error: TError | null | undefined, result: TResult) => void; /** * Helper functions used when interacting with APIs that do not follow modern coding practices. * @public */ export declare class LegacyAdapters { /** * This function wraps a function with a callback in a promise. */ static convertCallbackToPromise(fn: (cb: LegacyCallback) => void): Promise; static convertCallbackToPromise(fn: (arg1: TArg1, cb: LegacyCallback) => void, arg1: TArg1): Promise; static convertCallbackToPromise(fn: (arg1: TArg1, arg2: TArg2, cb: LegacyCallback) => void, arg1: TArg1, arg2: TArg2): Promise; static convertCallbackToPromise(fn: (arg1: TArg1, arg2: TArg2, arg3: TArg3, cb: LegacyCallback) => void, arg1: TArg1, arg2: TArg2, arg3: TArg3): Promise; static convertCallbackToPromise(fn: (arg1: TArg1, arg2: TArg2, arg3: TArg3, arg4: TArg4, cb: LegacyCallback) => void, arg1: TArg1, arg2: TArg2, arg3: TArg3, arg4: TArg4): Promise; /** * Normalizes an object into an `Error` object. */ static scrubError(error: Error | string | any): Error; /** * Prior to Node 11.x, the `Array.sort()` algorithm is not guaranteed to be stable. * If you need a stable sort, you can use `sortStable()` as a workaround. * * @deprecated * Use native Array.sort(), since Node < 14 is no longer supported * @remarks * On NodeJS 11.x and later, this method simply calls the native `Array.sort()`. */ static sortStable(array: T[], compare?: (a: T, b: T) => number): void; } //# sourceMappingURL=LegacyAdapters.d.ts.map