import { z } from 'zod'; import type { EarsSettings, PolishRoute, WhisperAccelerationId } from './config.js'; import type { EarsErrorCode, EarsErrorParams } from './errors.js'; import type { AsrBackendInfo } from './asr/types.js'; export declare const cloudAsrProviderSchema: z.ZodEnum<{ bailian: "bailian"; custom: "custom"; deepgram: "deepgram"; groq: "groq"; mimo: "mimo"; siliconflow: "siliconflow"; tencent: "tencent"; volcengine: "volcengine"; }>; export declare const textSchema: z.ZodString; export declare const earsSettingsSchema: z.ZodObject<{ asrBackend: z.ZodString; webSpeechLanguage: z.ZodString; localWhisperModel: z.ZodString; localWhisperAcceleration: z.ZodString; localWhisperLanguage: z.ZodString; cloudAsrProvider: z.ZodString; cloudAsrGroqApiKey: z.ZodString; cloudAsrGroqModel: z.ZodString; cloudAsrGroqLanguage: z.ZodString; cloudAsrDeepgramApiKey: z.ZodDefault; cloudAsrDeepgramModel: z.ZodDefault; cloudAsrDeepgramLanguage: z.ZodDefault; cloudAsrDeepgramService: z.ZodDefault; cloudAsrCustomApiKey: z.ZodString; cloudAsrCustomEndpoint: z.ZodString; cloudAsrCustomModel: z.ZodString; cloudAsrCustomLanguage: z.ZodString; cloudAsrBailianApiKey: z.ZodString; cloudAsrBailianHost: z.ZodString; cloudAsrBailianModel: z.ZodString; cloudAsrBailianLanguage: z.ZodString; cloudAsrTencentAppId: z.ZodString; cloudAsrTencentSecretId: z.ZodString; cloudAsrTencentSecretKey: z.ZodString; cloudAsrTencentEngineType: z.ZodString; cloudAsrTencentService: z.ZodString; cloudAsrMimoApiKey: z.ZodDefault; cloudAsrMimoService: z.ZodDefault; cloudAsrMimoCluster: z.ZodDefault; cloudAsrMimoModel: z.ZodDefault; cloudAsrMimoLanguage: z.ZodDefault; cloudAsrSiliconFlowApiKey: z.ZodDefault; cloudAsrSiliconFlowModel: z.ZodDefault; cloudAsrSiliconFlowLanguage: z.ZodDefault; cloudAsrVolcengineApiKey: z.ZodDefault; cloudAsrVolcengineService: z.ZodDefault; cloudAsrVolcengineRealtimeModel: z.ZodDefault; cloudAsrVolcengineRecordingModel: z.ZodDefault; cloudAsrVolcengineLanguage: z.ZodDefault; maxRecordingSeconds: z.ZodNumber; voiceShortcutEnabled: z.ZodBoolean; voiceShortcut: z.ZodString; voiceSoundsEnabled: z.ZodBoolean; settingsDisplayName: z.ZodString; polishingEnabled: z.ZodBoolean; polishProvider: z.ZodString; polishModel: z.ZodString; polishReasoningEffort: z.ZodString; polishPrompt: z.ZodString; }, z.core.$strip>; export declare const earsSettingsPatchSchema: z.ZodObject<{ asrBackend: z.ZodOptional>; webSpeechLanguage: z.ZodOptional; localWhisperModel: z.ZodOptional>; localWhisperAcceleration: z.ZodOptional>; localWhisperLanguage: z.ZodOptional; cloudAsrProvider: z.ZodOptional>; cloudAsrGroqApiKey: z.ZodOptional; cloudAsrGroqModel: z.ZodOptional; cloudAsrGroqLanguage: z.ZodOptional; cloudAsrDeepgramApiKey: z.ZodOptional; cloudAsrDeepgramModel: z.ZodOptional; cloudAsrDeepgramLanguage: z.ZodOptional; cloudAsrDeepgramService: z.ZodOptional>; cloudAsrCustomApiKey: z.ZodOptional; cloudAsrCustomEndpoint: z.ZodOptional; cloudAsrCustomModel: z.ZodOptional; cloudAsrCustomLanguage: z.ZodOptional; cloudAsrBailianApiKey: z.ZodOptional; cloudAsrBailianHost: z.ZodOptional; cloudAsrBailianModel: z.ZodOptional; cloudAsrBailianLanguage: z.ZodOptional; cloudAsrTencentAppId: z.ZodOptional; cloudAsrTencentSecretId: z.ZodOptional; cloudAsrTencentSecretKey: z.ZodOptional; cloudAsrTencentEngineType: z.ZodOptional; cloudAsrTencentService: z.ZodOptional>; cloudAsrMimoApiKey: z.ZodOptional; cloudAsrMimoService: z.ZodOptional>; cloudAsrMimoCluster: z.ZodOptional>; cloudAsrMimoModel: z.ZodOptional; cloudAsrMimoLanguage: z.ZodOptional; cloudAsrSiliconFlowApiKey: z.ZodOptional; cloudAsrSiliconFlowModel: z.ZodOptional; cloudAsrSiliconFlowLanguage: z.ZodOptional; cloudAsrVolcengineApiKey: z.ZodOptional; cloudAsrVolcengineService: z.ZodOptional>; cloudAsrVolcengineRealtimeModel: z.ZodOptional>; cloudAsrVolcengineRecordingModel: z.ZodOptional>; cloudAsrVolcengineLanguage: z.ZodOptional; maxRecordingSeconds: z.ZodOptional; voiceShortcutEnabled: z.ZodOptional; voiceShortcut: z.ZodOptional; voiceSoundsEnabled: z.ZodOptional; settingsDisplayName: z.ZodOptional>; polishingEnabled: z.ZodOptional; polishProvider: z.ZodOptional; polishModel: z.ZodOptional; polishReasoningEffort: z.ZodOptional; polishPrompt: z.ZodOptional; }, z.core.$strip>; export declare const earsSettingsViewSchema: z.ZodObject<{ available: z.ZodBoolean; writable: z.ZodBoolean; settings: z.ZodObject<{ asrBackend: z.ZodString; webSpeechLanguage: z.ZodString; localWhisperModel: z.ZodString; localWhisperAcceleration: z.ZodString; localWhisperLanguage: z.ZodString; cloudAsrProvider: z.ZodString; cloudAsrGroqApiKey: z.ZodString; cloudAsrGroqModel: z.ZodString; cloudAsrGroqLanguage: z.ZodString; cloudAsrDeepgramApiKey: z.ZodDefault; cloudAsrDeepgramModel: z.ZodDefault; cloudAsrDeepgramLanguage: z.ZodDefault; cloudAsrDeepgramService: z.ZodDefault; cloudAsrCustomApiKey: z.ZodString; cloudAsrCustomEndpoint: z.ZodString; cloudAsrCustomModel: z.ZodString; cloudAsrCustomLanguage: z.ZodString; cloudAsrBailianApiKey: z.ZodString; cloudAsrBailianHost: z.ZodString; cloudAsrBailianModel: z.ZodString; cloudAsrBailianLanguage: z.ZodString; cloudAsrTencentAppId: z.ZodString; cloudAsrTencentSecretId: z.ZodString; cloudAsrTencentSecretKey: z.ZodString; cloudAsrTencentEngineType: z.ZodString; cloudAsrTencentService: z.ZodString; cloudAsrMimoApiKey: z.ZodDefault; cloudAsrMimoService: z.ZodDefault; cloudAsrMimoCluster: z.ZodDefault; cloudAsrMimoModel: z.ZodDefault; cloudAsrMimoLanguage: z.ZodDefault; cloudAsrSiliconFlowApiKey: z.ZodDefault; cloudAsrSiliconFlowModel: z.ZodDefault; cloudAsrSiliconFlowLanguage: z.ZodDefault; cloudAsrVolcengineApiKey: z.ZodDefault; cloudAsrVolcengineService: z.ZodDefault; cloudAsrVolcengineRealtimeModel: z.ZodDefault; cloudAsrVolcengineRecordingModel: z.ZodDefault; cloudAsrVolcengineLanguage: z.ZodDefault; maxRecordingSeconds: z.ZodNumber; voiceShortcutEnabled: z.ZodBoolean; voiceShortcut: z.ZodString; voiceSoundsEnabled: z.ZodBoolean; settingsDisplayName: z.ZodString; polishingEnabled: z.ZodBoolean; polishProvider: z.ZodString; polishModel: z.ZodString; polishReasoningEffort: z.ZodString; polishPrompt: z.ZodString; }, z.core.$strip>; cloudAsrGroqApiKeyConfigured: z.ZodBoolean; cloudAsrDeepgramApiKeyConfigured: z.ZodDefault; cloudAsrCustomApiKeyConfigured: z.ZodBoolean; cloudAsrBailianApiKeyConfigured: z.ZodBoolean; cloudAsrTencentSecretKeyConfigured: z.ZodBoolean; cloudAsrMimoApiKeyConfigured: z.ZodDefault; cloudAsrSiliconFlowApiKeyConfigured: z.ZodDefault; cloudAsrVolcengineApiKeyConfigured: z.ZodDefault; defaultPolishRoute: z.ZodOptional; }, z.core.$strip>>; recoveredSettingsFields: z.ZodOptional>; localWhisperAccelerations: z.ZodOptional>>; overridden: z.ZodArray; }, z.core.$strip>; export declare const polishRouteSchema: z.ZodObject<{ provider: z.ZodString; providerName: z.ZodString; model: z.ZodString; modelName: z.ZodString; }, z.core.$strip>; export declare const listRoutesResultSchema: z.ZodArray>; export declare const reasoningEffortInfoSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>; export declare const reasoningEffortsViewSchema: z.ZodObject<{ efforts: z.ZodArray; }, z.core.$strip>>; defaultEffort: z.ZodOptional; }, z.core.$strip>; export declare const whisperModelStateSchema: z.ZodObject<{ runtimeAvailable: z.ZodBoolean; downloaded: z.ZodBoolean; downloading: z.ZodBoolean; progress: z.ZodNullable; bytes: z.ZodNullable; totalBytes: z.ZodNullable; error: z.ZodNullable; errorCode: z.ZodOptional; errorParams: z.ZodOptional>>; }, z.core.$strip>; export declare const cloudProviderModelsViewSchema: z.ZodObject<{ status: z.ZodEnum<{ error: "error"; "no-key": "no-key"; ok: "ok"; unsupported: "unsupported"; }>; models: z.ZodOptional>; modelCapabilities: z.ZodOptional; streaming: z.ZodOptional; transport: z.ZodOptional>; }, z.core.$strip>>>; error: z.ZodOptional; errorCode: z.ZodOptional; errorParams: z.ZodOptional>>; }, z.core.$strip>; export declare const asrBackendInfoSchema: z.ZodObject<{ id: z.ZodEnum<{ "cloud-openai": "cloud-openai"; "local-whisper": "local-whisper"; "web-speech": "web-speech"; }>; name: z.ZodString; available: z.ZodBoolean; detail: z.ZodString; detailCode: z.ZodOptional; detailParams: z.ZodOptional>>; }, z.core.$strip>; export declare const listAsrBackendsResultSchema: z.ZodArray; name: z.ZodString; available: z.ZodBoolean; detail: z.ZodString; detailCode: z.ZodOptional; detailParams: z.ZodOptional>>; }, z.core.$strip>>; export declare const audioBase64Schema: z.ZodString; export declare const audioMimeTypeSchema: z.ZodString; export declare const remoteTextResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"ok">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"error">; code: z.ZodString; message: z.ZodString; params: z.ZodOptional>>; }, z.core.$strip>], "status">; export declare const transcribeResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"ok">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"error">; code: z.ZodString; message: z.ZodString; params: z.ZodOptional>>; }, z.core.$strip>], "status">; export declare const polishResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"ok">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"error">; code: z.ZodString; message: z.ZodString; params: z.ZodOptional>>; }, z.core.$strip>], "status">; export declare const realtimeSessionSchema: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; export declare const realtimeTranscriptSchema: z.ZodObject<{ text: z.ZodString; final: z.ZodBoolean; }, z.core.$strip>; export declare const realtimeCancelledSchema: z.ZodObject<{ cancelled: z.ZodLiteral; }, z.core.$strip>; export type RemoteTextResult = z.infer; export type RemoteTextSuccess = Extract; export type RemoteTextFailure = Extract; export type RealtimeSession = z.infer; export type RealtimeTranscript = z.infer; export declare function remoteTextSuccess(text: string): RemoteTextSuccess; export declare function remoteTextFailure(code: EarsErrorCode, message: string, params?: EarsErrorParams): RemoteTextFailure; export declare const aboutInfoSchema: z.ZodObject<{ repository: z.ZodString; repositorySlug: z.ZodString; version: z.ZodString; license: z.ZodString; dshCompatibility: z.ZodString; updateCommand: z.ZodString; }, z.core.$strip>; export declare const updateCheckResultSchema: z.ZodObject<{ status: z.ZodEnum<{ error: "error"; unpublished: "unpublished"; "up-to-date": "up-to-date"; "update-available": "update-available"; }>; installed: z.ZodString; latest: z.ZodNullable; updateCommand: z.ZodString; }, z.core.$strip>; export type EarsSettingsPatch = Partial; export type EarsSettingsView = { available: boolean; writable: boolean; settings: EarsSettings; cloudAsrGroqApiKeyConfigured: boolean; cloudAsrDeepgramApiKeyConfigured: boolean; cloudAsrCustomApiKeyConfigured: boolean; cloudAsrBailianApiKeyConfigured: boolean; cloudAsrTencentSecretKeyConfigured: boolean; cloudAsrMimoApiKeyConfigured: boolean; cloudAsrSiliconFlowApiKeyConfigured: boolean; cloudAsrVolcengineApiKeyConfigured: boolean; defaultPolishRoute?: { provider: string; model: string; reasoningEffort?: string; }; recoveredSettingsFields?: string[]; localWhisperAccelerations?: WhisperAccelerationId[]; overridden: string[]; }; export type { PolishRoute }; export type { AsrBackendInfo }; export type { AsrBackendId, ReasoningEffortInfo, ReasoningEffortsView } from './config.js'; export type { WhisperAccelerationId } from './config.js'; export type { WhisperModelState } from './asr/whisper-models.js'; export type CloudProviderModelsView = z.infer; export type AboutInfo = z.infer; export type UpdateCheckResult = z.infer;