import PortalClient, { BodyEncoding, HttpMethod, IServiceCall, IServiceError, IServiceParameters, ResponseEncoding } from "./index"; export declare class ServiceCall implements IServiceCall { static readonly searchParameterPrefix = "_"; private static readonly maxAttempts; private static readonly initialRetryDelay; private static readonly retryDelayIncrease; readonly response: Promise; private _error; private _attempts; private _token; private hasUsedErrorHandler; private readonly abortController?; private readonly client; get error(): IServiceError | null; get attempts(): number; get token(): string | null; get wasAborted(): boolean; constructor(client: PortalClient, path: string, parameters: IServiceParameters | null, method: HttpMethod, requiresToken: string | boolean, bodyEncoding: BodyEncoding, responseEncoding?: ResponseEncoding, headers?: Record, protocolVersion?: string); abort(reason?: Error): void; private callAndHandle; private createFetch; private getUrlToExtension; private addAuthenticationToken; private createResponse; private handleError; private shouldRetry; private delayRetry; static dateToIsoString(value: Date): string; static encodeParameter(value: any, encodeObject: boolean): string | number | Blob | null; private static encodeParameters; private static extractSearchParameters; private static createRequest; private static createFormDataBody; private static createServiceErrorFromString; private static createServiceError; private static createServiceErrorFromResponse; private static normalizeServiceError; }