export interface SockJS { new(endpoint: string): SockJS; } export interface Stomp { debug: any; heartbeat: { outgoing: number }; over(sockJS: SockJS): Stomp; connect( options: any, onSuccess: (successFrame: any) => void, onError: (error: Error) => void ): void; subscribe( topic: string, messageHandler: (message: any) => void ): void; disconnect(onDisconnect: () => void): void; }