import { Credentials } from "@distilled.cloud/planetscale/Credentials"; import * as Config from "effect/Config"; import * as Layer from "effect/Layer"; import * as Redacted from "effect/Redacted"; import { AlchemyProfile } from "../Auth/Profile.ts"; export { Credentials, CredentialsFromEnv, DEFAULT_API_BASE_URL, } from "@distilled.cloud/planetscale/Credentials"; /** * Build a PlanetScale `Credentials` Layer from an explicit token. Useful for * tests or when the caller already has credentials in hand. * * @example * ```ts * Effect.provide( * Planetscale.fromToken({ * tokenId: "abcd1234", * token: "api-token-secret", * organization: "my-org", * }), * ) * ``` */ export declare const fromToken: (input: { tokenId: string | Redacted.Redacted; token: string | Redacted.Redacted; organization: string; apiBaseUrl?: string; }) => Layer.Layer; /** * Build a PlanetScale `Credentials` Layer that resolves credentials via the * Alchemy AuthProvider using the configured profile (defaults to "default", * overridable with the `ALCHEMY_PROFILE` env/config value). */ export declare const fromAuthProvider: () => Layer.Layer; //# sourceMappingURL=Credentials.d.ts.map