import type { Content } from '../../interfaces/UpstreamContent.interface'; import type { IContentProgressEvent } from '../../interfaces/vcs-uploading.interface'; import type AuthService from '../../modules/interfaces/AuthService'; import type { ITokenHandler } from '../../modules/Token-handler/ITokenHandler'; import type { Socket } from 'socket.io-client'; export default class ContentClient { private apiUrl; private tokenHandler; private keyCloackClient; private request; private correlationId; constructor(apiUrl: string, tokenHandler: ITokenHandler, keyCloackClient: AuthService); get(params: { id: string; }): Promise; getByVersion(params: { id: string; version: string; }): Promise; getDownloadLink(id: string): Promise; upload(filePath: string, id?: string, onProgressCallback?: (progress: number | string) => void): Promise; establishConnection(): Promise>; startTrackSocketsProgress(connection: Socket, onProgressCallback?: (progress: number | string) => void): Promise; private setCorrelationId; protected getOnBundleUpdated(connection: Socket, resolve: (value: IContentProgressEvent | PromiseLike) => void, reject: (reason?: any) => void, onProgressCallback?: (progress: number | string) => void): (item: IContentProgressEvent) => void; }