/** * The `CallbackPromise` provides a mechanism for creating a promise that can be resolved or rejected * like a Node callback function. */ export declare class CallbackPromise implements Promise { readonly callback: (...args: any[]) => void; private readonly promise; private hasBeenCalled; [Symbol.toStringTag]: string; constructor(strict?: boolean); then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise; catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise; finally(onfinally?: (() => void) | undefined | null): Promise; }