import { type ProviderAuthCheckOperator, type ProviderAuthCheckResultCode, type ProviderAuthStatusSnapshot } from "@mono-agent/agent-contracts"; import { type RuntimeModelReference } from "@mono-agent/runtime-adapter"; import type { ProviderAuthObservationTracker } from "./provider-auth-observations.js"; import { type ProviderAuthStatusOptions } from "./provider-auth-status.js"; export interface ProviderAuthCheckExecution { readonly state: "passed" | "auth_failed" | "network_failed" | "quota_limited" | "model_not_entitled" | "inconclusive"; readonly code: ProviderAuthCheckResultCode; readonly message: string; } export interface ProviderAuthCheckManager extends ProviderAuthCheckOperator { isActive(): boolean; credentialPersisted(providerId: string): void; stop(): Promise; } export interface CreateProviderAuthCheckManagerOptions extends ProviderAuthStatusOptions { readonly observations: ProviderAuthObservationTracker; readonly isLoginActive: () => boolean; readonly now?: () => number; readonly execute?: (model: RuntimeModelReference, signal: AbortSignal) => Promise; /** Deterministic test seam for the passive snapshot prepared before a batch. */ readonly statusSnapshot?: () => Promise; readonly providerTimeoutMs?: number; readonly batchTimeoutMs?: number; readonly cooldownMs?: number; } export declare function createProviderAuthCheckManager(options: CreateProviderAuthCheckManagerOptions): ProviderAuthCheckManager; //# sourceMappingURL=provider-auth-checks.d.ts.map