/********************************************************************** * * @模块名称: promise * * @模块作用: promise * * @创建人: pgli * * @date: 2024/7/9 5:10 下午 * * @版权所有: pgli * **********************************************************************/ declare const _Promise: (fn: Function) => void; declare class newPromise { value: any; error: any; status: 'pending' | 'fulfilled' | 'rejected'; onResolveCallbacks: Function[]; onRejectedCallbacks: Function[]; constructor(executor: (resolve: (value: any) => void, reject: (value: any) => void) => void | Promise); then(onResolve: Function, onRejected?: Function): newPromise; catch(onRejected: Function): void; static all: (promises: Array) => Promise; }