export declare class CheckedPromise implements Promise { [Symbol.toStringTag]: any; private hasCatch; private promise; constructor(executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void); then(onfulfilled?: (value: T) => PromiseLike | R, onrejected?: (reason: any) => PromiseLike | E): Promise; catch(onrejected?: (reason: any) => PromiseLike | TResult): Promise; finally(onfinally?: (() => void) | undefined | null): Promise; } export declare function checkPromise(p: Promise): CheckedPromise;