/** * * Agora Real Time Engagement * Created by Lyu Ge in 2021-11. * Copyright (c) 2022 Agora IO. All rights reserved. * */ import { RteLoc } from '../../common/common'; import { Msg } from '../msg'; export interface CmdValue { command: string; src?: RteLoc; dest?: RteLoc[]; cmd_id?: string; seq_id?: string; [index: string]: any; } export interface CmdStatusValue extends CmdValue { command: 'status'; status_code: string; detail: string; } export declare function isCmdStatus(cmd: CmdValue | CmdStatusValue): cmd is CmdStatusValue; export declare class Cmd extends Msg implements CmdValue { constructor(value?: CmdValue | undefined); getId(): string; setJson(value: CmdValue): void; toJson(): CmdValue; readonly [index: string]: any; readonly command: string; readonly cmd_id?: string | undefined; readonly seq_id?: string | undefined; }