import { z } from 'zod'; /** * AudioSidecar 状态:描述本地音频子系统的旁路生命周期。 * 与电台 CAT 连接解耦——主引擎已进入 RUNNING,但音频可能仍在重试或已停用。 */ export declare enum AudioSidecarStatus { /** 引擎未运行或 sidecar 未启动 */ IDLE = "idle", /** 首次尝试启动音频流中 */ CONNECTING = "connecting", /** 音频输入/输出/监听均已就绪 */ CONNECTED = "connected", /** 上一次尝试失败,等待下一次退避重试 */ RETRYING = "retrying", /** 配置错误或不可恢复的失败,已停止重试 */ DISABLED = "disabled" } export declare const AudioSidecarStatusSchema: z.ZodNativeEnum; export declare const AudioSidecarErrorSchema: z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; userMessage: z.ZodOptional; userMessageKey: z.ZodOptional; userMessageParams: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { message: string; code?: string | undefined; userMessage?: string | undefined; userMessageKey?: string | undefined; userMessageParams?: Record | undefined; }, { message: string; code?: string | undefined; userMessage?: string | undefined; userMessageKey?: string | undefined; userMessageParams?: Record | undefined; }>; export type AudioSidecarError = z.infer; /** * AudioSidecar 状态变化载荷。 * 前端以此渲染 RadioControl 中的音频副状态 spinner + Popover。 */ export declare const AudioSidecarStatusPayloadSchema: z.ZodObject<{ /** 当前状态 */ status: z.ZodNativeEnum; /** 音频输入/输出是否已就绪可用 */ isConnected: z.ZodBoolean; /** 当前重试尝试计数(0 表示首次未重试过) */ retryAttempt: z.ZodNumber; /** 下次重试延迟 ms(仅 RETRYING 有值) */ nextRetryMs: z.ZodNullable; /** 连续失败超过阈值时置 true,用于前端提示"长时间未就绪" */ longRunning: z.ZodBoolean; /** 最近一次错误摘要 */ lastError: z.ZodNullable; message: z.ZodString; userMessage: z.ZodOptional; userMessageKey: z.ZodOptional; userMessageParams: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { message: string; code?: string | undefined; userMessage?: string | undefined; userMessageKey?: string | undefined; userMessageParams?: Record | undefined; }, { message: string; code?: string | undefined; userMessage?: string | undefined; userMessageKey?: string | undefined; userMessageParams?: Record | undefined; }>>; /** 当前目标设备名(来自 AudioConfig.inputDeviceName) */ deviceName: z.ZodNullable; }, "strip", z.ZodTypeAny, { status: AudioSidecarStatus; lastError: { message: string; code?: string | undefined; userMessage?: string | undefined; userMessageKey?: string | undefined; userMessageParams?: Record | undefined; } | null; nextRetryMs: number | null; isConnected: boolean; retryAttempt: number; longRunning: boolean; deviceName: string | null; }, { status: AudioSidecarStatus; lastError: { message: string; code?: string | undefined; userMessage?: string | undefined; userMessageKey?: string | undefined; userMessageParams?: Record | undefined; } | null; nextRetryMs: number | null; isConnected: boolean; retryAttempt: number; longRunning: boolean; deviceName: string | null; }>; export type AudioSidecarStatusPayload = z.infer; //# sourceMappingURL=audio-sidecar.schema.d.ts.map