import type { SearchProviderId } from "../../tools/web/types.js"; import type { ProviderStatus } from "../../types.js"; import { SecretSource } from "./secret-store.js"; export declare const searchProviderEnvVars: Record; export interface ProviderKeySlot { readonly id: string; readonly value: string; readonly createdAt: number; readonly disabled?: boolean | undefined; } export interface ProviderKeysResult { readonly keys: ProviderKeySlot[]; readonly activeIndex: number; readonly source: ProviderStatus['source']; } export declare const MAX_PROVIDER_KEYS = 10; export declare function newKeyId(): string; export declare function clampActiveIndex(index: number, len: number): number; export declare function parseProviderKeysPayload(raw: string | undefined): { keys: ProviderKeySlot[]; activeIndex: number; }; export declare function serializeProviderKeysPayload(keys: readonly ProviderKeySlot[], activeIndex: number): string; export declare function getSearchProviderKeys(id: SearchProviderId): Promise; export declare function getSearchProviderKey(id: SearchProviderId): Promise<{ value?: string; source: SecretSource; }>; export declare function setSearchProviderKeys(id: SearchProviderId, values: readonly string[], activeIndex?: number, disabledValues?: readonly string[]): Promise<'keychain' | 'fallback'>; export declare function appendSearchProviderKey(id: SearchProviderId, secret: string): Promise<'keychain' | 'fallback'>; export declare function unsetSearchProviderSecret(id: SearchProviderId): Promise; export declare function setSearchProviderKeyDisabled(id: SearchProviderId, value: string, disabled: boolean): Promise; export declare function markSearchProviderKeySuccess(id: SearchProviderId, index: number): Promise;