import { ACTION, chatIdType, ComaSeparatedValues, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol"; import { EnumBooleanStringified, EnumBooleanStringifiedExtended, EnumCurrency, EnumPlayerFormat, JSONString } from "../@types"; export declare type clientID = { clientID: string; _iid?: string; }; export declare enum EnumClientStatusType { AUDIO_UNMUTED = "11", AUDIO_MUTED = "12", STREAM_STATS = "15", PLAYER_EVENT = "16", PAGE_HIDDEN = "20", PAGE_VISIBLE = "21", PROXY_STATE_INFO = "22", MEDIA_PLAYER_EVENT = "23", WEBRTC_STATS = "24" } export declare class CMDP_CSTATUS implements ICOMMAND { action: ACTION; params: clientID & { statusCode: EnumClientStatusType; text: string; }; } export declare class CMDP_CSTATUS_RESPONSE extends CMDP_CSTATUS implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare type ChargeAmount = { value: number; caption1: string; caption2: string; exceedsLimitFor?: string[]; }; export declare type LimitRenewedIn = { days: number; hours: number; minutes: number; }; export declare type PaymentMethod = { paytype: string; paymentString: string; isSelected: boolean; limitRemaining?: number; limitCurrency?: string; limitRenewedAt?: string; limitRenewedIn?: LimitRenewedIn; limitRenewedInText?: string; }; export declare type ChargeInfo = { allowed: EnumBooleanStringifiedExtended; currency: EnumCurrency; autoCharge?: string; amounts?: ComaSeparatedValues; chargeAmounts?: JSONString; additionalCurrencies?: JSONString<{ amounts: number[]; currency: EnumCurrency; }>; methods?: JSONString>; }; export declare class CMDP_CQUERY_CHARGE implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CQUERY_CHARGE_RESPONSE extends CMDP_CQUERY_CHARGE implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: ChargeInfo; } export declare type StreamSources = { dataURL: string; streamPriority: ComaSeparatedValues; width?: string; height?: string; fps?: string; quality?: string; mediaH5Live?: string; mediaHlsMobileUrl?: string; mediaHlsUrl?: string; mediaJpegUrl?: string; mediaJpegWsUrl?: string; mediaWebRtc?: string; mediaVideoSdk?: string; mediaRtmp?: string; mediaRtmpUrl?: string; }; export declare class CMDP_CSTARTVIDEOPULL implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CSTARTVIDEOPULL_RESPONSE extends CMDP_CSTARTVIDEOPULL implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: StreamSources; } export declare class CMDC_CSTARTVIDEOPULL implements ICOMMAND { action: ACTION; params: StreamSources; } export declare class CMDC_CSTOPVIDEOPULL implements ICOMMAND { action: ACTION; params: clientID & chatIdType & { code: string; time?: string; }; } export declare class CMDP_CSTARTAUDIOPULL implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CSTARTAUDIOPULL_RESPONSE extends CMDP_CSTARTAUDIOPULL implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: Pick; } export declare class CMDC_CSTARTAUDIOPULL implements ICOMMAND { action: ACTION; params: Pick; } export declare class CMDC_CSTOPAUDIOPULL implements ICOMMAND { action: ACTION; params: clientID & chatIdType & { code: string; time?: string; }; } export declare class CMDP_CSTARTPREVIEW implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CSTARTPREVIEW_RESPONSE extends CMDP_CSTARTPREVIEW implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: StreamSources; } export declare class CMDC_CSTOPPREVIEW implements ICOMMAND { action: ACTION; params: clientID & chatIdType & { code: string; time?: string; }; } export declare class CMDP_CSTARTVIDEOPUSH implements ICOMMAND { action: ACTION; params: clientID & { flashclient: boolean; }; } export declare class CMDP_CSTARTVIDEOPUSH_RESPONSE extends CMDP_CSTARTVIDEOPUSH implements ICOMMAND { result: RESULT; commands: ICOMMAND[]; values: Pick; } export declare class CMDP_CSTOPVIDEOPUSH implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CSTOPVIDEOPUSH_RESPONSE extends CMDP_CSTOPVIDEOPUSH implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDC_CSTOPTEXT implements ICOMMAND { action: ACTION; params: clientID & chatIdType & { code: string; time?: string; }; } export declare class CMDP_CSTARTTEXT implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CSTARTTEXT_RESPONSE extends CMDP_CSTARTTEXT implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDC_PUBLICCHAT implements ICOMMAND { action: ACTION; params: clientID & chatIdType & { user: JSONString<{ userName: string; }>; event: "entered" | "left"; }; } export declare class CMDP_CTIP implements ICOMMAND { action: ACTION; params: clientID & { cent: string; gift: ComaSeparatedValues; currency: EnumCurrency; }; } export declare class CMDP_CTIP_RESPONSE extends CMDP_CTIP implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } export declare class CMDP_CCHARGE implements ICOMMAND { action: ACTION; params: clientID & { amount: string; paytype?: string; }; } export declare class CMDP_CCHARGE_RESPONSE extends CMDP_CCHARGE implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: { successfully: EnumBooleanStringified; }; } export declare type clipSnapshot = { time: number; imgSrc: string; }; export declare type clipStatus = { index: string; name: string; progress: number; }; export declare class CMDC_CLIPSTATUS implements ICOMMAND { action: ACTION; params: clientID & { status: JSONString; }; } export declare class CMDC_CLIP implements ICOMMAND { action: ACTION; params: clientID & { chatID: string; clipID: string; index: string; name: string; duration: string; price: string; currency: EnumCurrency; snapshots: JSONString; }; } export declare class CMDP_CGETCLIPS implements ICOMMAND { action: ACTION; params: clientID; } export declare class CMDP_CGETCLIPS_RESPONSE extends CMDP_CGETCLIPS implements IRESPONSE { result: RESULT; commands: CMDC_CLIP[]; values: { recordedSeconds?: "string"; }; } export declare class CMDP_CBUYCLIP implements ICOMMAND { action: ACTION; params: clientID & { clipID: string; }; } export declare class CMDP_CBUYCLIP_RESPONSE extends CMDP_CBUYCLIP implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; }