import type { CredentialBundle, Region } from "../types.js"; import { type AuthErrorCode } from "./auth-errors.js"; import { type CredentialStore, type StoredCredentialInput } from "./stored-credentials.js"; export declare const AUTH_LOGIN_URL: Readonly>; export type AuthCredentialSource = "environment" | "store" | "none"; export type AuthVerificationState = "verified" | "unverified" | "expired" | "invalid"; export interface AuthRegionStatus { profileId: string; region: Region; source: AuthCredentialSource; configured: boolean; operationReady: boolean; active: boolean; verification: AuthVerificationState; verifiedAt?: string; expiresAt?: string; reasonCode?: AuthErrorCode; } export interface AuthInspectionOptions { store: CredentialStore; env?: Readonly>; profileId?: string; region?: Region; now?: () => Date; } export interface AuthenticationProbeOptions { fetch?: typeof globalThis.fetch; timeoutMs?: number; now?: () => Date; } export interface AuthenticationProbeResult { verifiedAt: string; } export type AuthenticationProbe = (region: Region, credentials: StoredCredentialInput) => Promise; export declare function resolveEffectiveProfileId(store: CredentialStore, env?: Readonly>): string; export declare function inspectAuthentication(options: AuthInspectionOptions): readonly AuthRegionStatus[]; export declare function listAuthentication(options: Omit): readonly AuthRegionStatus[]; export declare function resolveAuthenticationCredentials(store: CredentialStore, env: Readonly>, profileId: string, region: Region): CredentialBundle | undefined; export declare function probeAuthentication(region: Region, credentials: StoredCredentialInput, options?: AuthenticationProbeOptions): Promise; //# sourceMappingURL=auth-lifecycle.d.ts.map