import type * as HttpApi from "@effect/platform/HttpApi"; import * as HttpApiClient from "@effect/platform/HttpApiClient"; import type * as HttpApiEndpoint from "@effect/platform/HttpApiEndpoint"; import type * as HttpApiGroup from "@effect/platform/HttpApiGroup"; import type * as HttpApiMiddleware from "@effect/platform/HttpApiMiddleware"; import type * as HttpClient from "@effect/platform/HttpClient"; import type * as HttpClientError from "@effect/platform/HttpClientError"; import type { HttpClientResponse } from "@effect/platform/HttpClientResponse"; import * as Context from "effect/Context"; import * as Duration from "effect/Duration"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import type * as ParseResult from "effect/ParseResult"; import type { ReadonlyRecord } from "effect/Record"; import type { NoInfer, Simplify } from "effect/Types"; import * as Atom from "./Atom.js"; import type * as Result from "./Result.js"; /** * @since 1.0.0 * @category Models */ export interface AtomHttpApiClient extends Context.Tag>> { new (_: never): Context.TagClassShape>>; readonly layer: Layer.Layer; readonly runtime: Atom.AtomRuntime; readonly mutation: , Name extends HttpApiEndpoint.HttpApiEndpoint.Name>, Group extends HttpApiGroup.HttpApiGroup.Any = HttpApiGroup.HttpApiGroup.WithName, Endpoint extends HttpApiEndpoint.HttpApiEndpoint.Any = HttpApiEndpoint.HttpApiEndpoint.WithName, Name>, const WithResponse extends boolean = false>(group: GroupName, endpoint: Name, options?: { readonly withResponse?: WithResponse | undefined; }) => [Endpoint] extends [ HttpApiEndpoint.HttpApiEndpoint ] ? Atom.AtomResultFn & { readonly reactivityKeys?: ReadonlyArray | ReadonlyRecord> | undefined; }>, WithResponse extends true ? [_Success, HttpClientResponse] : _Success, _Error | HttpApiGroup.HttpApiGroup.Error | E | HttpClientError.HttpClientError | ParseResult.ParseError> : never; readonly query: , Name extends HttpApiEndpoint.HttpApiEndpoint.Name>, Group extends HttpApiGroup.HttpApiGroup.Any = HttpApiGroup.HttpApiGroup.WithName, Endpoint extends HttpApiEndpoint.HttpApiEndpoint.Any = HttpApiEndpoint.HttpApiEndpoint.WithName, Name>, const WithResponse extends boolean = false>(group: GroupName, endpoint: Name, request: [Endpoint] extends [ HttpApiEndpoint.HttpApiEndpoint ] ? Simplify & { readonly reactivityKeys?: ReadonlyArray | ReadonlyRecord> | undefined; readonly timeToLive?: Duration.DurationInput | undefined; }> : never) => [Endpoint] extends [ HttpApiEndpoint.HttpApiEndpoint ] ? Atom.Atom | E | HttpClientError.HttpClientError | ParseResult.ParseError>> : never; } declare global { interface ErrorConstructor { stackTraceLimit: number; } } /** * @since 1.0.0 * @category Constructors */ export declare const Tag: () => (id: Id, options: { readonly api: HttpApi.HttpApi; readonly httpClient: Layer.Layer | HttpApiGroup.HttpApiGroup.ClientContext>> | HttpClient.HttpClient, E>; readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined; readonly transformResponse?: ((effect: Effect.Effect) => Effect.Effect) | undefined; readonly baseUrl?: URL | string | undefined; readonly runtime?: Atom.RuntimeFactory | undefined; }) => AtomHttpApiClient; //# sourceMappingURL=AtomHttpApi.d.ts.map