import { Effect } from "@effect/core/io/Effect/definition"; import { FiberId } from "@effect/core/io/FiberId/definition"; /** * Imports an asynchronous side-effect into a pure `Effect` value. See * `asyncMaybe` for the more expressive variant of this function that can * return a value synchronously. * * The callback function `Effect => any` must be called at most once. * @tsplus static effect/core/io/Effect.Ops async * @tsplus location "@effect/core/io/Effect/operations/async" */ export declare function _async(register: (callback: (_: Effect) => void) => void): Effect; export { _async as async }; /** * Imports an asynchronous side-effect into a pure `Effect` value. See * `asyncMaybe` for the more expressive variant of this function that can * return a value synchronously. * * The callback function `Effect => any` must be called at most once. * * The list of fibers, that may complete the async callback, is used to * provide better diagnostics. * @tsplus static effect/core/io/Effect.Ops asyncBlockingOn * @tsplus location "@effect/core/io/Effect/operations/async" */ export declare function asyncBlockingOn(register: (callback: (_: Effect) => void) => void, blockingOn: FiberId): Effect; //# sourceMappingURL=async.d.ts.map