import { ConfigError } from "@distilled.cloud/core/errors"; import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Redacted from "effect/Redacted"; export declare const DEFAULT_API_BASE_URL = "https://api.prisma.io"; export interface Config { /** Absent when the `HttpClient` authenticates requests itself. No Authorization header is sent. */ readonly apiToken?: Redacted.Redacted; readonly apiBaseUrl: string; } declare const Credentials_base: Context.ServiceClass>; export declare class Credentials extends /*@__PURE__*/ Credentials_base { } /** Layer from a redacted token + optional base URL. */ export declare const fromApiToken: (config: { readonly apiToken: Redacted.Redacted; readonly apiBaseUrl?: string; }) => Layer.Layer; /** * Layer resolving credentials from `PRISMA_API_TOKEN`, with * `PRISMA_POSTGRES_API_TOKEN` as a backwards-compatible fallback. * The base URL is fixed to {@link DEFAULT_API_BASE_URL}. */ export declare const CredentialsFromEnv: Layer.Layer; export {}; //# sourceMappingURL=credentials.d.ts.map