import { IWeavyClient, WeavyClientOptions } from "../types/types"; export default class WeavyClient implements IWeavyClient { url: string; connection: import("@microsoft/signalr").HubConnection; tokenFactory: (refresh: boolean) => Promise; groups: string[]; connectionEvents: any[]; isConnectionStarted: any; private signalRAccessTokenRefresh; token: string; tokenPromise: Promise | null; EVENT_NAMESPACE: string; EVENT_CLOSE: string; EVENT_RECONNECTING: string; EVENT_RECONNECTED: string; constructor(options: WeavyClientOptions); connect(): Promise; get(url: string, retry?: boolean): Promise; post(url: string, method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", body: string | FormData, contentType?: string, retry?: boolean): Promise; upload(url: string, method: "POST" | "PUT" | "PATCH", body: string | FormData, contentType?: string, onProgress?: (progress: number) => void, retry?: boolean): Promise; getToken(refresh: boolean): Promise; tokenFactoryInternal(refresh?: boolean): Promise; subscribe(group: string, event: string, callback: any): Promise; unsubscribe(group: string, event: string, callback: any): Promise; destroy(): void; triggerHandler(name: string, ...data: any): void; }