import type { SearchProvider } from "./providers/provider.js"; import type { WebSearchOutcome } from "./types.js"; export interface SearchKeySet { readonly keys: readonly { value: string; }[]; readonly activeIndex: number; readonly source: string; } export declare function attemptProviderWithKeyRotation(opts: { provider: SearchProvider; keys: SearchKeySet; query: string; maxResults: number; timeoutMs: number; remainingMs: () => number; signal?: AbortSignal | undefined; retrySameKey: boolean; onOutcome: (outcome: WebSearchOutcome) => void; }): Promise;