import { chatIdType } from "../chatstate"; import { IMayHaveChannelId } from "../channel"; import { ACTION } from "../command/action"; import { baseParamsType } from "../command/baseparams"; import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand"; import { EnumBooleanDigitized, EnumBooleanStringified, EnumBooleanStringifiedExtended } from "../../@types"; import { clientID } from "../clivechat"; export declare enum EnumPowerEstimation { LOW = "LOW", MIDDLE = "MIDDLE", HIGH = "HIGH" } export declare class CMDP_STARTSEND implements ICOMMAND { action: ACTION; params: baseParamsType & { capabilities?: string; }; } export declare class CMDP_STARTSEND_RESPONSE extends CMDP_STARTSEND implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDP_STOPSEND implements ICOMMAND { action: ACTION; params: baseParamsType & { streamError?: EnumBooleanStringifiedExtended; errorCode?: string; }; } export declare class CMDP_STOPSEND_RESPONSE extends CMDP_STOPSEND implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDP_TRACERT_REPLY implements ICOMMAND { action: ACTION; params: baseParamsType & { tracertID: string; hopID: string; targetIP: string; replyHost: string; replyIP: string; replyTime: string; replyCode: string; replyString: string; }; } export declare class CMDP_TRACERT_REPLY_RESPONSE extends CMDP_TRACERT_REPLY implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDP_FSK16 implements ICOMMAND { action: ACTION.CMDP_FSK16; params: baseParamsType & { fsk16: EnumBooleanStringifiedExtended; }; } export declare class CMDP_START_STREAM_PREVIEW implements ICOMMAND { action: ACTION; params: baseParamsType & { duration: string; }; } export declare class CMDP_START_STREAM_PREVIEW_RESPONSE extends CMDP_START_STREAM_PREVIEW implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { dataURL: string; mediaJpegWsUrl: string; }; } export declare class CMDP_STOP_STREAM_PREVIEW implements ICOMMAND { action: ACTION; params: baseParamsType & { dataURL: string; dataID: string; }; } export declare class CMDP_STOP_STREAM_PREVIEW_RESPONSE extends CMDP_STOP_STREAM_PREVIEW implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDP_STARTBANDWIDTHTEST implements ICOMMAND { action: ACTION; params: baseParamsType; } export declare class CMDP_STARTBANDWIDTHTEST_RESPONSE extends CMDP_STARTBANDWIDTHTEST implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { testID: string; seconds: string; dataURL: string; dataID: string; speedTestUrl?: string; }; } export declare class CMDP_STOPBANDWIDTHTEST implements ICOMMAND { action: ACTION; params: baseParamsType & { testID: string; seconds: string; dataID: string; bitrate: string; cpuUsage: string; }; } export declare class CMDP_STOPBANDWIDTHTEST_RESPONSE extends CMDP_STOPBANDWIDTHTEST implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { validated: EnumBooleanStringified; }; } export declare class CMDP_STARTLOOPBACK9 implements ICOMMAND { action: ACTION; params: baseParamsType; } export declare class CMDP_STARTLOOPBACK9_RESPONSE extends CMDP_STARTLOOPBACK9 implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { testID: string; pushUrl: string; pullUrl: string; pushUrlAudio: string; pullUrlAudio: string; }; } export declare class CMDP_STOPLOOPBACK9 implements ICOMMAND { action: ACTION; params: baseParamsType & { testID: string; VideoDevice: string; VideoDeviceWidth: string; VideoDeviceHeight: string; VideoDeviceFPS: string; VideoSendBitrate: string; VideoSendFPS: string; AudioDevice: string | "-"; AudioDeviceFPS: string; AudioSendFPS: string; AudioSendBitrate: string; CPU: string | "-1"; localCode: string | "0"; }; } export declare class CMDP_STOPLOOPBACK9_RESPONSE extends CMDP_STOPLOOPBACK9 implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { statusCode: string; statusText: string; }; } export declare class CMDP_SQUERY_FORMAT implements ICOMMAND { action: ACTION; params: baseParamsType & { width: string; height: string; fps: string; bandWidth: string; cpuUsage: string; }; } export declare class CMDP_SQUERY_FORMAT_RESPONSE extends CMDP_SQUERY_FORMAT implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { width: string; height: string; fps: string; ref_width: string; ref_height: string; ref_fps: string; rtmp?: EnumBooleanDigitized.TRUE; codec?: string; }; } export declare enum QueryUserKeyEnum { FSK = "fsk", SINGLE = "single", SINGLEC2C = "singleC2C", QUERY_SINGLE = "querysingle" } export declare enum QueryUserButtons { btn0 = "btn0", btn1 = "btn1" } export interface IQueryUserParams { queryId: string; key: QueryUserKeyEnum; messageKey?: string; caption?: string; text: string; [QueryUserButtons.btn0]: string; [QueryUserButtons.btn1]: string; timeout?: string; sound?: string; btnDefault?: EnumBooleanDigitized; btndef?: QueryUserButtons; recordSingleChat?: EnumBooleanDigitized; } export declare class CMDC_QUERYUSER implements ICOMMAND { action: ACTION; params: IMayHaveChannelId & IQueryUserParams; } export declare class CMDC_CQUERYUSER implements ICOMMAND { action: ACTION; params: clientID & chatIdType & Omit & { price?: string; default: string; }; } export declare class CMDP_QUERYUSER implements ICOMMAND { action: ACTION; params: baseParamsType & chatIdType & IMayHaveChannelId & { key: QueryUserKeyEnum; button: EnumBooleanDigitized; queryId: string; /** if the answer sent by timeout */ isTimeout?: EnumBooleanDigitized; /** if not set, default setting used */ recordSingleChat?: EnumBooleanDigitized; }; } export declare class CMDP_QUERYUSER_RESPONSE extends CMDP_QUERYUSER implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDP_CQUERYUSER implements ICOMMAND { action: ACTION; params: clientID & { key: QueryUserKeyEnum; response: IQueryUserParams[QueryUserButtons]; }; } export declare class CMDP_CQUERYUSER_RESPONSE extends CMDP_CQUERYUSER implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDC_QUERYANSWERED implements ICOMMAND { action: ACTION; params: { queryId: string; }; } export declare class CMDP_SGETSTREAMPARAMS implements ICOMMAND { action: ACTION; params: baseParamsType & { powerEstimation: EnumPowerEstimation; }; } export declare type StreamParams = { rtmpURL: string; streamName: string; webRtc: string; powerEstimation: EnumPowerEstimation; lastStreamType?: "webRTC" | "RTMP" | string; }; export declare class CMDP_SGETSTREAMPARAMS_RESPONSE extends CMDP_SGETSTREAMPARAMS implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue & StreamParams; } export declare class CMDC_CSTARTSTREAMPUSH implements ICOMMAND { action: ACTION; params: baseParamsType & StreamParams; } export declare class CMDP_CQUERY_SINGLE implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CQUERY_SINGLE_RESPONSE extends CMDP_CQUERY_SINGLE implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; }