import type { ReactNode } from 'react'; import type { SnapshotStore } from '@deepseek-ai/dsh-client-store'; import type { SnapshotSelectorHook } from '@deepseek-ai/dsh-client-ui-slots'; import type { EarsSettings } from '../config.js'; import { type CloudAsrCredentialField } from '../asr/providers.js'; import type { AboutInfo, UpdateCheckResult } from '../remote-contract.js'; import type { CloudModelsHook, CloudModelsView, EarsCardHook, EarsSettingsHook, FieldName, ReasoningEffortsHook, RouteHook, WhisperModelHook } from './settings-controller.js'; import { type Translate } from './settings-locale.js'; export { LOCALE_NAMESPACE, localeEn, localeZh } from './settings-locale.js'; export type { LocaleKey, Translate } from './settings-locale.js'; interface EarsSettingsSectionProps { readonly useEarsCard: EarsCardHook; readonly useEarsRoutes: RouteHook; readonly useEarsReasoning: ReasoningEffortsHook; readonly useEarsWhisper: WhisperModelHook; readonly useEarsCloudModels: CloudModelsHook; readonly useUiLocale?: () => string; readonly earsT: Translate; readonly edit: (field: FieldName, text: string) => void; readonly setCredential?: (field: CloudAsrCredentialField, text: string) => void; readonly clearCredential?: (field: CloudAsrCredentialField) => void; readonly undoCredentialClear?: (field: CloudAsrCredentialField) => void; readonly setApiKey: (text: string) => void; readonly clearApiKey: () => void; readonly undoClearApiKey: () => void; readonly setDeepgramApiKey: (text: string) => void; readonly clearDeepgramApiKey: () => void; readonly undoClearDeepgramApiKey: () => void; readonly setCustomApiKey: (text: string) => void; readonly clearCustomApiKey: () => void; readonly undoClearCustomApiKey: () => void; readonly setBailianApiKey: (text: string) => void; readonly clearBailianApiKey: () => void; readonly undoClearBailianApiKey: () => void; readonly setTencentSecretKey: (text: string) => void; readonly clearTencentSecretKey: () => void; readonly undoClearTencentSecretKey: () => void; readonly setMimoApiKey: (text: string) => void; readonly clearMimoApiKey: () => void; readonly undoClearMimoApiKey: () => void; readonly setSiliconFlowApiKey: (text: string) => void; readonly clearSiliconFlowApiKey: () => void; readonly undoClearSiliconFlowApiKey: () => void; readonly setVolcengineApiKey: (text: string) => void; readonly clearVolcengineApiKey: () => void; readonly undoClearVolcengineApiKey: () => void; readonly flush: () => void; readonly refreshRoutes: () => void; readonly retryCloudModels: () => void; readonly downloadModel: () => void; readonly cancelModel: () => void; readonly deleteModel: () => void; readonly loadAbout: () => Promise; readonly checkForUpdate: () => Promise; } export declare function createSnapshotHook(store: SnapshotStore, fallback: T): SnapshotSelectorHook; export declare function createSettingsHook(store: SnapshotStore): EarsSettingsHook; export declare function EarsSettingsSection(props: EarsSettingsSectionProps): ReactNode; export declare function deepgramModelCandidates(service: string, models: CloudModelsView): readonly string[];