import type { ProviderErrorEvent, ProviderFailureEvent, ProviderHealthConfig, ProviderSuccessEvent, VirtualRouterHealthSnapshot } from '../types.js';
import type { VirtualRouterEngine } from '../engine-legacy.js';
export declare function providerHealthConfig(engine: VirtualRouterEngine): Required<ProviderHealthConfig>;
export declare function markProviderCooldown(engine: VirtualRouterEngine, providerKey: string, cooldownMs: number | undefined): void;
export declare function clearProviderCooldown(engine: VirtualRouterEngine, providerKey: string): void;
export declare function isProviderCoolingDown(engine: VirtualRouterEngine, providerKey: string): boolean;
export declare function getProviderCooldownRemainingMs(engine: VirtualRouterEngine, providerKey: string): number;
export declare function restoreHealthFromStore(engine: VirtualRouterEngine): void;
export declare function buildHealthSnapshot(engine: VirtualRouterEngine): VirtualRouterHealthSnapshot;
export declare function persistHealthSnapshot(engine: VirtualRouterEngine): void;
export declare function handleProviderFailure(engine: VirtualRouterEngine, event: ProviderFailureEvent): void;
export declare function handleProviderError(engine: VirtualRouterEngine, event: ProviderErrorEvent): void;
export declare function handleProviderSuccess(engine: VirtualRouterEngine, event: ProviderSuccessEvent): void;
