import { Subscription } from '@5minds/processcube_engine_sdk'; import { HttpClient, IRequestOptions } from '../HttpClient'; import { IdentityAccessor, IdentityLike } from '../IdentityAccessor'; import { SocketIoManager } from './Lib/SocketIoManager'; export declare class BaseClient { identityAccessor: IdentityAccessor; protected httpClient: HttpClient; protected readonly socketIoManager: SocketIoManager; private readonly baseUrl; private readonly engineUrl; constructor(engineUrl: string, identity: IdentityLike, socketIoManager?: SocketIoManager); get connected(): boolean; /** * Gets the url of the engine that this client is communicating with. */ getEngineUrl(): string; isSocketConnected(identityAccessor?: IdentityLike): boolean; disconnectSocket(identityAccessor?: IdentityLike): void; dispose(): void; protected buildUrl(url: string, offset?: number, limit?: number, query?: TQuery, sortSettings?: TSort): string; protected createRequestAuthHeaders(identityAccessor?: IdentityLike): Promise; protected createSocketIoSubscription(route: string, callback: (args: any) => void, subscribeOnce: boolean, identity?: IdentityLike): Promise; protected createSocketIoSubscriptionSync(route: string, callback: (args: any) => void, subscribeOnce: boolean, identity?: IdentityLike): Subscription; protected removeSocketIoSubscription(subscription: Subscription, identity?: IdentityLike): void; protected addParameterToUrl(url: string, parameterName: string, parameterValue: TValue): string; private encodeQueryAndAddParametersToUrl; private encodeValue; }