import * as Redacted from "effect/Redacted"; import { CredentialsStore } from "../Auth/Credentials.ts"; import { AlchemyProfile } from "../Auth/Profile.ts"; export declare const FLY_AUTH_PROVIDER_NAME = "Fly"; export declare const FLY_API_TOKEN_ENV = "FLY_API_TOKEN"; export declare const FLY_API_HOSTNAME_ENV = "FLY_API_HOSTNAME"; export type FlyAuthConfig = { method: "env"; } | { method: "stored"; }; export type FlyStoredCredentials = { type: "token"; apiKey: string; apiBaseUrl?: string; }; export type FlyResolvedCredentials = { type: "token"; apiKey: Redacted.Redacted; apiBaseUrl: string; source: { type: FlyAuthConfig["method"]; details?: string; }; }; /** * Layer that registers the Fly {@link AuthProvider} into the * {@link AuthProviders} registry. Include this in the Fly `providers()` * layer so `alchemy login` can discover it. * * Auth is a Fly.io API token (`FLY_API_TOKEN`). There is no OAuth flow. * An optional `FLY_API_HOSTNAME` overrides the Machines API root * (default `https://api.machines.dev/v1`). */ export declare const FlyAuth: import("effect/Layer").Layer; //# sourceMappingURL=AuthProvider.d.ts.map