import { GenesysCloudWebrtcSdk } from './client'; import { SubscriptionEvent } from './types/interfaces'; /** * Establish the connection with the streaming client. * Must be called after construction _before_ the SDK is used. * @param this must be called with a GenesysCloudWebrtcSdk as `this` */ export declare function setupStreamingClient(this: GenesysCloudWebrtcSdk): Promise; /** * Set up proxy for streaming client events * @param this must be called with a GenesysCloudWebrtcSdk as `this` */ export declare function proxyStreamingClientEvents(this: GenesysCloudWebrtcSdk): Promise; export declare const handleConversationUpdate: (this: GenesysCloudWebrtcSdk, updateEvent: SubscriptionEvent) => void; export declare const handleDisconnectedEvent: (this: GenesysCloudWebrtcSdk, eventData: { reconnecting: boolean; }) => void; /** * After a reconnect, check sessions that existed before the disconnect. * If their peer connection is now dead, clean them up to prevent leaked * event listeners (e.g. visibilitychange) and media tracks. */ export declare const cleanupOrphanedSessions: (this: GenesysCloudWebrtcSdk) => void;