/** * Event that occurs when the connection state changes. */ export declare const EVENT_CONNECTION_STATE_CHANGED: "connectionStateChanged"; /** * Event that occurs when the connection is slow. */ export declare const EVENT_CONNECTION_SLOW: "connectionSlow"; /** * Event that occurs when the connection fails. */ export declare const EVENT_STREAMING_FAILED: "streamingFailed"; /** * Event that occurs when the _disconnect control message is received from server. */ export declare const EVENT_DISCONNECT_REQUESTED: "streamingDisconnectRequested"; /** * Event that occurs when probe message is received. */ export declare const EVENT_PROBE_MESSAGE: "probeMessage"; /** * Streaming has been created but has not yet started the connection. */ export declare const CONNECTION_STATE_INITIALIZING: 1; /** * The connection has been started but may not yet be connecting. */ export declare const CONNECTION_STATE_STARTED: 2; /** * Connection is trying to connect. The previous state was CONNECTION_STATE_STARTED or CONNECTION_STATE_DISCONNECTED. */ export declare const CONNECTION_STATE_CONNECTING: 4; /** * Connection is connected and everything is good. */ export declare const CONNECTION_STATE_CONNECTED: 8; /** * Connection is reconnecting. The previous state was CONNECTION_STATE_CONNECTING. * We are current not connected, but might recover without having to reset. */ export declare const CONNECTION_STATE_RECONNECTING: 16; /** * Connection is disconnected. Streaming may attempt to connect again. */ export declare const CONNECTION_STATE_DISCONNECTED: 32; /** * Connection failed with no point of return. Indicates that next transport will be picked if possible. * No manual reconnect should be done at this point! */ export declare const CONNECTION_STATE_FAILED: 64; export declare const DATA_FORMAT_JSON: 0; export declare const DATA_FORMAT_PROTOBUF: 1; export declare const READABLE_CONNECTION_STATE_MAP: { readonly 1: "Initializing"; readonly 2: "Started"; readonly 4: "Connecting"; readonly 8: "Connected"; readonly 16: "Reconnecting"; readonly 32: "Disconnected"; readonly 64: "Failed"; };