import { ExtendedParams } from '../../content/base-interfaces'; import { StreamTransport } from '../../pipe'; import { StateEvents, StateManager } from '../../state'; declare const AuthenticationSuccess: 'authenticationSuccess'; declare const AuthenticationFailed: 'authenticationFailed'; export declare const StreamConnectionEvent: { AuthenticationFailed: "authenticationFailed"; AuthenticationSuccess: "authenticationSuccess"; Error: "error"; StateChanged: "stateChanged"; }; export interface StreamConnection extends StateManager> { request(streamRequest: StreamRequestParams): Promise; closeRequest(ID: number): Promise; modifyRequest(ID: number, params: StreamRequestParams): Promise; refresh(): Promise; } export interface StreamConnectionEvents extends StateEvents { [AuthenticationSuccess]: (streamConnection: StreamConnection) => void; [AuthenticationFailed]: (streamConnection: StreamConnection, err: Error) => void; [prop: string]: (...args: any) => void; } export declare const STREAM_FIRST_REQUEST_ID: number; export interface StreamLoginParams { authenticationToken?: string; nameType?: string; name?: string; appKey?: string; authorization?: string; position?: string; applicationId?: string; } export interface StreamRequestParams extends ExtendedParams { filter?: number; service?: string; name?: string | object | any[]; domain?: string; streaming?: boolean; view?: string[]; parameters?: object; expandEnum?: boolean; } export declare const StreamReconnectIntervals: { WEB: number[]; NODEJS: number[]; }; export declare const PING_TIMEOUT = 30; export type socketCreator = () => StreamTransport; export {};