import { Effect } from "effect/Effect"; import { LazyArg } from "@effect-app/core/Function"; import { Scope } from "effect/Scope"; import { HttpClient } from "@effect-app/prelude/Request"; import { ClientRequest } from "@effect/platform/Http/ClientRequest"; import * as Either from "effect/Either"; import type { Option } from "effect/Option"; export type _R> = [T] extends [ Effect ] ? R : never; export type _E> = [T] extends [ Effect ] ? E : never; /** * @tsplus fluent effect/data/Option encaseInEffect * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function encaseMaybeInEffect_(o: Option, onError: LazyArg): Effect; /** * @tsplus fluent effect/data/Option encaseInEither * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function encaseMaybeEither_(o: Option, onError: LazyArg): Either.Either; /** * @tsplus getter effect/io/Effect toNullable * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function toNullable(self: Effect, E, R>): import("effect/Effect").Effect; /** * @tsplus fluent effect/io/Effect scope * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function scope(scopedEffect: Effect, effect: Effect): Effect>; /** * @tsplus fluent effect/io/Effect flatMapScoped * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function flatMapScoped(scopedEffect: Effect, effect: (a: A) => Effect): Effect>; /** * Recovers from all errors. * @tsplus static effect/io/Effect.Ops catchAllMap * @tsplus pipeable effect/io/Effect catchAllMap * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function catchAllMap(f: (e: E) => A2): (self: Effect) => Effect; /** * Annotates each log in this effect with the specified log annotations. * @tsplus static effect/io/Effect.Ops annotateLogs * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function annotateLogs(kvps: Record): (effect: Effect) => Effect; /** * Annotates each log in this scope with the specified log annotation. * @tsplus static effect/io/Effect.Ops annotateLogscoped * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function annotateLogscoped(key: string, value: string): import("effect/Effect").Effect; /** * Annotates each log in this scope with the specified log annotations. * @tsplus static effect/io/Effect.Ops annotateLogsScoped * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function annotateLogsScoped(kvps: Record): import("effect/Effect").Effect; /** * @tsplus fluent function flow * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare function flow(f: (...args: Args) => B, g: (b: B) => C): (...args: Args) => C; /** * @tsplus fluent effect/platform/Http/Client request * @tsplus location "@effect-app/prelude/_ext/misc" */ export declare const client: { (client: HttpClient, req: Effect): Effect; (client: HttpClient, req: ClientRequest): Effect; }; //# sourceMappingURL=misc.d.ts.map