import type * as CL from "../Clock/index.js"; import * as O from "../Option/index.js"; import type { Effect } from "./effect.js"; /** * Returns an effect that will timeout this effect, returning `None` if the * timeout elapses before the effect has produced a value; and returning * `Some` of the produced value otherwise. * * If the timeout elapses without producing a value, the running effect * will be safely interrupted. * * WARNING: The effect returned by this method will not itself return until * the underlying effect is actually interrupted. This leads to more * predictable resource utilization. If early return is desired, then * instead of using `timeout(d)(effect)`, use `disconnect(timeout(d)(effect))`, * which first disconnects the effect's interruption signal before performing * the timeout, resulting in earliest possible return, before an underlying * effect has been successfully interrupted. * * @ets_data_first timeout_ */ export declare function timeout(d: number, __trace?: string): (self: Effect) => Effect>; /** * Returns an effect that will timeout this effect, returning `None` if the * timeout elapses before the effect has produced a value; and returning * `Some` of the produced value otherwise. * * If the timeout elapses without producing a value, the running effect * will be safely interrupted. * * WARNING: The effect returned by this method will not itself return until * the underlying effect is actually interrupted. This leads to more * predictable resource utilization. If early return is desired, then * instead of using `timeout(d)(effect)`, use `disconnect(timeout(d)(effect))`, * which first disconnects the effect's interruption signal before performing * the timeout, resulting in earliest possible return, before an underlying * effect has been successfully interrupted. */ export declare function timeout_(self: Effect, d: number, __trace?: string): Effect>; //# sourceMappingURL=timeout.d.ts.map