import { default as Action } from '.'; import { default as BaseAction } from './base'; import { IStateParams } from '../type/client'; declare class ConfigAction extends BaseAction { private seqId; private statesTime; constructor(action: Action); /** * 批量获取serverConfig, 获取错误码/i18n等json链接、会控地址、im地址 * * @param {string[]} includeConfigNameList 需要的配置key值 * @returns */ getServerConfig(includeConfigNameList?: string[]): Promise; /** * 获取json文件内容 * * @param { string } url * @returns */ getCodeByJson(url: string): Promise; /** * 功能操作上报记录 * * @private * @param { IStateParams | IStateParams[] } state * @property { TCategory } category - 事件类别 * @property { TEventName } eventName - 事件名称 * @property { Objet } params - 事件详细数据 */ setStates(state: IStateParams | IStateParams[]): Promise; /** * 信令多活:获取信令服务信息 * * @param { number } userId - 用户ID * @param { string } server - 服务端地址 * @param { string } enterpriseId - 企业ID * @since 4.0.2 * @param { boolean } isStart - 强制分配 不读缓存 * @returns */ getAllocation(userId: number, server: string, enterpriseId: string): Promise; /** * WebRTC 内外网探测 * * @param { Object } params * @param { string } params.extId 企业ID * @param { string } params.clientId * @param { string } params.clientSecret * @param { string } params.httpServer 服务器地址 * @returns */ locator(enterpriseId: string): Promise; /** * 获取能力集 * * @param { number[] } localAbilities - 终端能力集 * @returns { number[] } abilityList - 服务端能力集 */ getAbility(localAbilities?: number[]): Promise; } export default ConfigAction;