import type { Auth, Proxy, PlainObject } from './types'; import type { FetchResponse, ProxyRequestObject, ProxyResponseBody } from './types/proxy'; import { ProxyMethod, ProxyType } from './types/constants'; export default class ProxyService { sdkInstance: Proxy.SDKInstance; requestsNumber: number; private currentUserId; private abortControllersMap; requestMethod: typeof ProxyMethod; responseType: typeof ProxyType; setSession(session: Partial | null): void; getSession(): Partial | null; setCurrentUserId(userId?: number | null): void; getCurrentUserId(): number | undefined; logRequest(params: Proxy.Params, requestId: number): void; logResponse(response: ProxyResponseBody, requestId: number): void; buildRequestAndURL(params: Proxy.Params): [ProxyRequestObject, string]; buildRequestBody(params: Proxy.Params, isMultipartFormData: boolean, isPostOrPutType: boolean): FormData | string; serializeQueryParams(obj: PlainObject | unknown[], prefix: string, useArrayQuery: boolean | undefined, level?: number): string; encodeURIComponent(uriComponent: string | number | boolean): string; abortRequest(abortId: string | number): void; processSuccessfulOrFailedRequest(abort_id?: string | number): void; ajax(params: Proxy.Params): Promise; processAjaxResponse(body: ProxyResponseBody, resolve: (value: ProxyResponseBody) => void, requestId: number): void; processAjaxError(response: FetchResponse | null, body: ProxyResponseBody, error: unknown, reject: (reason?: unknown) => void, resolve: (value: ProxyResponseBody) => void, params: Proxy.Params, requestId: number): void; handleExpiredSessionResponse(error: Proxy.ErrorObject | null, response: ProxyResponseBody | null, reject: (reason?: unknown) => void, resolve: (value: ProxyResponseBody) => void, params: Proxy.Params): void; private isExpiredSessionError; } //# sourceMappingURL=Proxy.d.ts.map