import type { Lazy } from "../Function/index.js"; import type { IO, UIO } from "./effect.js"; /** * Create an Effect that when executed will construct `promise` and wait for its result, * errors will be handled using `onReject` */ export declare function tryCatchPromise(promise: Lazy>, onReject: (reason: unknown) => E, __trace?: string): IO; /** * Create an Effect that when executed will construct `promise` and wait for its result, * errors will produce failure as `unknown` */ export declare function tryPromise(effect: Lazy>, __trace?: string): IO; /** * Like tryPromise but produces a defect in case of errors */ export declare function promise(effect: Lazy>, __trace?: string): UIO; //# sourceMappingURL=promise.d.ts.map