/**
 * AIChatRTC.constants.js — AIChatRTC 共享常量与工具函数
 *
 * 提供给 AIChatRTC.js（主类）和 AIChatRTC.session.js（RTCChatSession）共同使用，
 * 避免两个文件之间的循环依赖。
 */
declare const DEFAULT_RTC_SDK_URL = "https://cdn.keepwork.com/keepwork/cdn/volcengine/rtc@4.68.1.index.min.js";
/** TLV message types matching VolcEngine AIGC protocol */
declare const MESSAGE_TYPE: {
    SUBTITLE: string;
    FUNCTION_CALL: string;
    FUNCTION_CALL_INFO: string;
    BRIEF: string;
    CHAT: string;
};
/** Agent conversation states */
declare const AGENT_STATE: {
    UNKNOWN: number;
    LISTENING: number;
    THINKING: number;
    SPEAKING: number;
    INTERRUPTED: number;
    FINISHED: number;
};
declare const AGENT_STATE_LABELS: {
    [AGENT_STATE.UNKNOWN]: string;
    [AGENT_STATE.LISTENING]: string;
    [AGENT_STATE.THINKING]: string;
    [AGENT_STATE.SPEAKING]: string;
    [AGENT_STATE.INTERRUPTED]: string;
    [AGENT_STATE.FINISHED]: string;
};
/** Binary-channel control commands */
declare const COMMAND: {
    INTERRUPT: string;
    EXTERNAL_TEXT_TO_SPEECH: string;
    EXTERNAL_TEXT_TO_LLM: string;
    EXTERNAL_PROMPTS_FOR_LLM: string;
};
declare const INTERRUPT_PRIORITY: {
    NONE: number;
    HIGH: number;
    MEDIUM: number;
    LOW: number;
};
/**
 * Encode a string into TLV (Type-Length-Value) binary format.
 * TLV: | type (4 bytes) | length (4 bytes, big-endian) | value (N bytes) |
 */
declare function string2tlv(str: string, type: string): ArrayBufferLike;
/**
 * Decode TLV binary data back to { type, value } strings.
 */
declare function tlv2String(tlvBuffer: ArrayBuffer | ArrayBufferView): {
    type: string;
    value: string;
};
declare function _randomId(len?: number): string;
declare function genId(prefix: string, username?: string): string;
declare function deepClone<T>(value: T): T;
declare function mergeToolDefinitions(existingTools: unknown, copilotTools: unknown[]): Array<Record<string, unknown>>;
declare function formatChildResultsSummary(results: Array<Record<string, unknown>>): string;
declare function normalizeRTCMessageContent(content: unknown): string | null;
export { DEFAULT_RTC_SDK_URL, MESSAGE_TYPE, AGENT_STATE, AGENT_STATE_LABELS, COMMAND, INTERRUPT_PRIORITY, string2tlv, tlv2String, _randomId, genId, deepClone, mergeToolDefinitions, formatChildResultsSummary, normalizeRTCMessageContent, };
//# sourceMappingURL=AIChatRTC.constants.d.ts.map