declare const toStringTag: typeof Symbol.toStringTag; declare class CancelablePromiseInternal { #private; [toStringTag]: string; constructor({ executor, internals, promise, }: { executor?: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void, onCancel: (cancelHandler: () => void) => void) => void; internals?: Internals; promise?: Promise; }); then(onfulfilled?: ((value: T) => TResult1 | PromiseLike | CancelablePromise) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike | CancelablePromise) | undefined | null): CancelablePromise; catch(onrejected?: ((reason: any) => TResult | PromiseLike | CancelablePromise) | undefined | null): CancelablePromise; finally(onfinally?: (() => void) | undefined | null, runWhenCanceled?: boolean): CancelablePromise; cancel(): void; isCanceled(): boolean; } export declare class CancelablePromise extends CancelablePromiseInternal { static all: (values: T_1) => CancelablePromise<{ -readonly [P in keyof T_1]: Awaited; }>; static allSettled: { (values: T_1): CancelablePromise<{ -readonly [P in keyof T_1]: PromiseSettledResult>; }>; (values: Iterable | CancelablePromise>): CancelablePromise>[]>; }; static any: { (values: T_1): CancelablePromise>; (values: Iterable | CancelablePromise>): CancelablePromise>; }; static race: (values: T_1) => CancelablePromise>; static resolve: { (): CancelablePromise; (value: T_1 | PromiseLike | CancelablePromise): CancelablePromise; }; static reject: (reason?: any) => CancelablePromise; static isCancelable: typeof isCancelablePromise; constructor(executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void, onCancel: (cancelHandler: () => void) => void) => void); } export default CancelablePromise; export declare function cancelable(promise: Promise): CancelablePromise; export declare function isCancelablePromise(promise: any): boolean; interface Internals { isCanceled: boolean; onCancelList: any[]; }