declare type $InnerThen = (result: T) => unknown; declare type $InnerCatch = (reason?: unknown) => unknown; export declare class PromiseOut { promise: Promise; is_resolved: boolean; is_rejected: boolean; is_finished: boolean; value?: T; reason?: unknown; resolve: (value: T | PromiseLike) => void; reject: (reason?: unknown) => void; private _innerFinally?; private _innerFinallyArg?; private _innerThen?; private _innerCatch?; constructor(); onSuccess(innerThen: $InnerThen): void; onError(innerCatch: $InnerCatch): void; onFinished(innerFinally: () => unknown): void; private _runFinally; private __callInnerFinally; private _runThen; private _runCatch; private __callInnerThen; private __callInnerCatch; } export {};