/** * A manually (or externally) controlled asynchronous Promise implementation */ export declare class ManualPromise implements Promise { /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined): Promise; /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | null | undefined): Promise; readonly [Symbol.toStringTag]: "Promise"; private p; /** * A method to manually resolve the Promise. */ resolve: (value?: T | PromiseLike | undefined) => void; /** * A method to manually reject the Promise */ reject: (e: any) => void; private state; /** * Returns true of the Promise has been Resolved or Rejected */ readonly isCompleted: boolean; /** * Returns true if the Promise has been Resolved. */ readonly isResolved: boolean; /** * Returns true if the Promise has been Rejected. */ readonly isRejected: boolean; constructor(); }