import type { FasedAgentConfig } from "../config/config.js";
import { 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?: "invalid_expires" | "missing_token";
    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?: FasedAgentConfig;
    warnAfterMs?: number;
    providers?: string[];
}): AuthHealthSummary;
