import { getServiceToken as getConvexServiceToken } from "convex/server"; import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Schema from "effect/Schema"; import * as HttpClient from "effect/http/HttpClient"; import * as HttpClientError from "effect/http/HttpClientError"; declare const AiGatewayDisabled_base: Schema.Class, import("effect/Cause").YieldableError>; /** * The current team is on the free plan or has the Convex AI gateway disabled. * Upgrade to a paid plan, or contact Convex support if this looks wrong. */ export declare class AiGatewayDisabled extends AiGatewayDisabled_base { get message(): string; } declare const AiGatewayUnavailable_base: Schema.Class, import("effect/Cause").YieldableError>; /** * The current deployment is anonymous, outdated, or self-hosted and cannot use * the Convex AI gateway. Authenticated, project-linked local deployments are * supported. */ export declare class AiGatewayUnavailable extends AiGatewayUnavailable_base { get message(): string; } /** * A schema for the possible failures that can occur while obtaining a Convex AI * gateway service token. */ export declare const AiGatewayError: Schema.Union; /** * The possible failures that can occur while obtaining a Convex AI gateway * service token. */ export type AiGatewayError = typeof AiGatewayError.Type; type GetServiceToken = typeof getConvexServiceToken; export interface Service { readonly get: (service: "ai-gateway") => Effect.Effect; } declare const AiGatewayServiceToken_base: Context.ServiceClass; export declare class AiGatewayServiceToken extends AiGatewayServiceToken_base { } export declare const make: (getServiceToken: GetServiceToken) => Service; export declare const layer: Layer.Layer; export declare const transformClientRequest: (serviceToken: Service) => (self: HttpClient.HttpClient.With) => HttpClient.HttpClient.With; export {}; //# sourceMappingURL=AiGatewayServiceToken.d.ts.map