import type React from 'react'; export interface FallbackCandidate { providerId: string; model: string; } export interface FallbackOverlayProps { requestId: string; from: { providerId: string; model: string; }; status: number; candidates: FallbackCandidate[]; autoSwitchSeconds: number; selected: number; /** Called when the user manually picks a model (Enter or countdown expiry on selected). */ onChoose: (choice: { providerId: string; model: string; } | null) => void; /** Called when the selection should move (up/down arrows). */ onMove: (delta: number) => void; } /** * Fallback model overlay — shown when `provider.fallback_pending` fires. * * Displays the failed model, a list of fallback candidates, and a countdown. * The user can: * - Use ↑/↓ to highlight a candidate and press Enter to pick it. * - Press Esc to accept the auto-switch (null → chain head). * - Wait for the countdown to expire → auto-switch to the highlighted entry. * * The overlay always appears on top of whatever else is rendered, ensuring * the user is notified on every model switch — even when a fallback list * is already visible elsewhere. */ export declare function FallbackOverlay({ from, status, candidates, autoSwitchSeconds, selected, onChoose, onMove, }: FallbackOverlayProps): React.ReactElement; //# sourceMappingURL=fallback-overlay.d.ts.map