import { LazyArg } from "@tsplus/stdlib/data/Function"; import { Effect } from "@effect/core/io/Effect/definition"; /** * Create an `Effect` that when executed will construct `promise` and wait for * its result, errors will be handled using `onReject`. * @tsplus static effect/core/io/Effect.Ops tryCatchPromise * @tsplus location "@effect/core/io/Effect/operations/promise" */ export declare function tryCatchPromise(promise: LazyArg>, onReject: (reason: unknown) => E): Effect; /** * Create an `Effect` that when executed will construct `promise` and wait for * its result, errors will produce failure as `unknown`. * @tsplus static effect/core/io/Effect.Ops tryPromise * @tsplus location "@effect/core/io/Effect/operations/promise" */ export declare function tryPromise(promise: LazyArg>): Effect; /** * Like `tryPromise` but produces a defect in case of errors. * @tsplus static effect/core/io/Effect.Ops promise * @tsplus location "@effect/core/io/Effect/operations/promise" */ export declare function promise(promise: LazyArg>): Effect; //# sourceMappingURL=promise.d.ts.map