import EventBus from './Helper/EventBus'; import { MouseKeyboardConfig } from './Driver/Keyboard'; interface xCloudPlayerConfig { ui_systemui?: Array; ui_version?: Array; ui_touchenabled?: boolean; input_driver?: any; sound_force_mono?: boolean; input_touch?: boolean; input_mousekeyboard?: boolean; input_legacykeyboard?: boolean; input_mousekeyboard_config?: MouseKeyboardConfig; } export declare class xCloudPlayerBackend { _config: { locale: string; }; sessionId: string; setSessionId(sessionId: any): void; getConsoles(): any; startSession(type: 'home' | 'cloud', sessionId: any): Promise; waitState(): Promise; sendSDPOffer(sdpOffer: any): Promise; sendSDPChatOffer(sdpOffer: any): Promise; sendICECandidates(iceCandidates: any): Promise; readBody(fetchparam: any): any; } export default class xCloudPlayer { _config: xCloudPlayerConfig; _webrtcClient: RTCPeerConnection | undefined; _eventBus: EventBus; _isResetting: boolean; _webrtcConfiguration: { iceServers: { urls: string; }[]; }; _webrtcDataChannelsConfig: { input: { ordered: boolean; protocol: string; }; chat: { protocol: string; }; control: { protocol: string; }; message: { protocol: string; }; }; _webrtcStates: { iceGathering: string; iceConnection: string; iceCandidates: never[]; streamConnection: string; }; _webrtcDataChannels: {}; _webrtcChannelProcessors: {}; _iceCandidates: Array; _elementHolder: string; _elementHolderRandom: number; _inputDriver: any; _keyboardDriver: any; _videoComponent: any; _audioComponent: any; _codecPreference: string; _codecProfiles: Array; _maxVideoBitrate: number; _maxAudioBitrate: number; constructor(elementId: string, config?: xCloudPlayerConfig); bind(): void; createOffer(): Promise; _sdpHandler: any; sdpNegotiationChat(): void; setSdpHandler(listener: any): void; setAudioBitrate(bitrate_kbps: number): void; setVideoBitrate(bitrate_kbps: number): void; setControllerRumble(state: boolean): void; _setBitrate(sdp: any, media: any, bitrate: any): any; setCodecPreferences(mimeType: string, options?: { profiles: Array; }): void; _setCodec(mimeType: string, codecProfiles: Array): void; setRemoteOffer(sdpdata: string): void; reset(): void; close(): void; getIceCandidates(): RTCIceCandidate[]; setIceCandidates(iceDetails: any): void; getChannel(name: string): any; _openDataChannels(): void; _openDataChannel(name: string, config: any): void; _gatherIce(): void; getDataChannel(name: string): any; getChannelProcessor(name: string): any; getEventBus(): EventBus; } export {}; //# sourceMappingURL=Library.d.ts.map