import { EnumBooleanStringifiedExtended, EnumCurrency, EnumPlayerFormat, ICurrencyDescription, IEmoji, IReaction, JSONString } from "../@types"; import { IGift } from "./gifts"; import { IBACKENDPAYLOAD } from "./backend"; import { ACTION } from "./command/action"; import { baseParamsType, SupportedLanguage } from "./command/baseparams"; import { ICOMMAND, IKeyMaybeValue, IKeyValue, IRESPONSE, RESULT } from "./command/icommand"; import { SChatInfo } from "./live/livechat"; import { ChatState } from "./chatstate"; import { ComaSeparatedValues } from "./sessionstate"; import { clientID } from "./clivechat"; import { EnumInitDataFormat } from "../cmd-connection"; export interface IInitBackendPayload { giftBundles: any; giftCategories: any; gifts: any; emoticons: any; currency: any; toyControls: any; icons: any; } export declare type UploadMediaTus = { authHeader: string; /** * @deprecated/obsolete */ chunkSize?: number; chunksNumber: number; endPoint: string; maxChunkSize: number; minChunkSize: number; parallelUploads: number; }; /** * the initial command */ export declare class CMDP_INIT implements ICOMMAND { action: ACTION; params: baseParamsType & { login?: string; initData?: EnumInitDataFormat; }; } /** * Response for CMDP_INIT */ export declare class CMDP_INIT_RESPONSE extends CMDP_INIT implements IRESPONSE, IBACKENDPAYLOAD { result: RESULT; commands: ICOMMAND[]; values: { /** minimal version info */ versionRequired?: string; /** version last */ versionLast?: string; /** update url */ versionUpdateUrl?: string; /** where to send message media */ uploadMediaUrl?: string; speedTestUrl?: string; gtcUrl?: string; uploadFeedbackUrl?: string; translations?: JSONString; gifts?: JSONString; emojiList?: JSONString; currency?: JSONString; currencyFormat?: JSONString; vxc_factor?: string; reactions?: JSONString; passwordResetUrl?: string; registrationUrl?: string; }; /** backendpayload */ payload?: IInitBackendPayload; } export declare type InitialTranslations = { [key in SupportedLanguage]?: IKeyValue; }; export declare type InitialCurrencies = { [key in EnumCurrency]?: ICurrencyDescription; }; /** * the initial command, 8320 only */ export declare class CMDP_SINIT extends CMDP_INIT { action: ACTION; } /** Response for CMDP_SINIT, 8320 only */ export declare class CMDP_SINIT_RESPONSE extends CMDP_INIT_RESPONSE { action: ACTION; } /** * the initial chat command */ export declare class CMDP_CINIT implements ICOMMAND { action: ACTION; params: clientID & { version: string; initData: EnumInitDataFormat; messengerProperties: string; }; } /** * Response for CMDP_CINIT */ export declare class CMDP_CINIT_RESPONSE extends CMDP_CINIT implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: Omit & { chatId: string; hostId: string; hostlogin: string; introVideoHls?: string; rechargeWarningThres?: string; rollbarKey?: string; server?: string; singlePrice?: string; timeStamp: string; fsk16?: EnumBooleanStringifiedExtended; /** where to send message media */ uploadMediaUrl?: string; uploadFeedbackUrl?: string; formatsIncluded?: ComaSeparatedValues; formatsExcluded?: ComaSeparatedValues; translations?: JSONString; emojiList?: JSONString; currency: EnumCurrency; currencyFormat?: JSONString; reactions?: JSONString; publicUsers?: JSONString<{ userName: string; }[]>; vxc_factor?: string; } & IKeyMaybeValue; }