import { Stomp } from '../model/ws.interface'; export interface WebsocketOptions { endpoint: string; tokenGenerator: () => string; retry?: number; onConnectSuccess?: (stomp: Stomp) => void; onError?: (error: Error) => void; } declare const Stomp: Stomp; export declare class WebsocketClient { private options; private stomp; private connected; constructor(options: WebsocketOptions); connect(options?: WebsocketOptions): Promise; subscribeTopic(topic: string, messageHandler: (message: any) => void): Promise; disconnect(onDisconnect?: () => void): Promise<{}>; } export {};