import { Env } from "@tsplus/stdlib/service/Env"; import { RuntimeFlags } from "@effect/core/io/RuntimeFlags/definition"; import { FiberRefs } from "@effect/core/io/FiberRefs/definition"; import { Effect } from "@effect/core/io/Effect/definition"; import { FiberId } from "@effect/core/io/FiberId/definition"; import { FiberRef } from "@effect/core/io/FiberRef/definition"; import { Supervisor } from "@effect/core/io/Supervisor/definition"; import { Maybe } from "@tsplus/stdlib/data/Maybe/definition"; import { FiberScope } from "@effect/core/io/FiberScope/definition"; import { Exit } from "@effect/core/io/Exit/definition"; import { identity } from "@tsplus/stdlib/data/Function"; import { FiberRuntime } from "@effect/core/io/Fiber/_internal/runtime"; export declare class AsyncFiber { readonly fiber: FiberRuntime; readonly _tag = "AsyncFiber"; constructor(fiber: FiberRuntime); } export declare class Runtime { readonly environment: Env; readonly runtimeFlags: RuntimeFlags; readonly fiberRefs: FiberRefs; constructor(environment: Env, runtimeFlags: RuntimeFlags, fiberRefs: FiberRefs); unsafeFork: (effect: import("../Effect").Effect) => FiberRuntime; unsafeRunWith: (effect: import("../Effect").Effect, k: (exit: import("../Exit").Exit) => void) => (fiberId: FiberId) => (_: (exit: import("../Exit").Exit) => void) => void; unsafeRunSync: (effect: import("../Effect").Effect) => A; unsafeRunSyncExit: (effect: import("../Effect").Effect) => import("../Exit").Exit; /** * Executes the effect asynchronously, discarding the result of execution. * * This method is effectful and should only be invoked at the edges of your * program. */ unsafeRunAsync: (effect: import("../Effect").Effect) => void; /** * Executes the effect asynchronously, eventually passing the exit value to * the specified callback. * * This method is effectful and should only be invoked at the edges of your * program. */ unsafeRunAsyncWith: (effect: import("../Effect").Effect, k: (exit: import("../Exit").Exit) => void) => void; /** * Runs the `Effect`, returning a JavaScript `Promise` that will be resolved * with the value of the effect once the effect has been executed, or will be * rejected with the first error or exception throw by the effect. * * This method is effectful and should only be used at the edges of your * program. */ unsafeRunPromise: (effect: import("../Effect").Effect) => Promise; /** * Runs the `Effect`, returning a JavaScript `Promise` that will be resolved * with the `Exit` state of the effect once the effect has been executed. * * This method is effectful and should only be used at the edges of your * program. */ unsafeRunPromiseExit: (effect: import("../Effect").Effect) => Promise>; } //# sourceMappingURL=definition.d.ts.map