import * as Layer from "effect/Layer"; import type * as HttpClient from "effect/unstable/http/HttpClient"; import type * as HttpClientError from "effect/unstable/http/HttpClientError"; import * as API from "@distilled.cloud/core/api"; import { type API_ERRORS, type ConfigError } from "@distilled.cloud/core/errors"; import { Credentials } from "./credentials.ts"; import { PaymentRequired, UnknownMongodbAtlasError } from "./errors.ts"; /** * Error channel shared by every generated Atlas operation. Generated service * files annotate operations with `API.OperationMethod` explicitly so the compiler * never infers these back out of the schema generics. */ export type MongodbAtlasOpError = InstanceType<(typeof API_ERRORS)[number]> | PaymentRequired | UnknownMongodbAtlasError | ConfigError | HttpClientError.HttpClientError; /** Context (requirements) shared by every generated Atlas operation. */ export type MongodbAtlasOpContext = Credentials | HttpClient.HttpClient; export declare const MongodbAtlasProtocol: Layer.Layer; //# sourceMappingURL=protocol.d.ts.map