import type { BotConfig } from "../config/config.js"; import { type AuthCredentialReasonCode, type AuthProfileStore } from "./auth-profiles.js"; export type AuthProfileSource = "store"; export type AuthProfileHealthStatus = "ok" | "expiring" | "expired" | "missing" | "static"; export type AuthProfileHealth = { profileId: string; provider: string; type: "oauth" | "token" | "api_key"; status: AuthProfileHealthStatus; reasonCode?: AuthCredentialReasonCode; expiresAt?: number; remainingMs?: number; source: AuthProfileSource; label: string; }; export type AuthProviderHealthStatus = "ok" | "expiring" | "expired" | "missing" | "static"; export type AuthProviderHealth = { provider: string; status: AuthProviderHealthStatus; expiresAt?: number; remainingMs?: number; profiles: AuthProfileHealth[]; }; export type AuthHealthSummary = { now: number; warnAfterMs: number; profiles: AuthProfileHealth[]; providers: AuthProviderHealth[]; }; export declare const DEFAULT_OAUTH_WARN_MS: number; export declare function resolveAuthProfileSource(_profileId: string): AuthProfileSource; export declare function formatRemainingShort(remainingMs?: number, opts?: { underMinuteLabel?: string; }): string; export declare function buildAuthHealthSummary(params: { store: AuthProfileStore; cfg?: BotConfig; warnAfterMs?: number; providers?: string[]; }): AuthHealthSummary;