import { FlexPluginError } from '../ErrorManager'; import { EncodedParams, FlexPluginErrorContents } from '../../types'; type ErrorManager = { createAndProcessError: (message: string, content?: FlexPluginErrorContents, showNotification?: boolean) => FlexPluginError; }; export interface ApiServiceConfig { errorManager?: ErrorManager; serverlessDomain?: string; retryConfig?: { maxAttempts?: number; maxRetryDelay?: number; retryInterval?: number; }; } export declare abstract class ApiService { readonly serverlessDomain: string; protected manager: import("@twilio/flex-ui/src/core/Manager").Manager; protected errorManager?: ErrorManager; private readonly maxAttempts; private readonly maxRetryDelay; private readonly retryInterval; constructor(config?: ApiServiceConfig); protected buildBody(encodedParams: EncodedParams): string; protected fetchJsonWithReject(url: string, config: RequestInit, attempts?: number): Promise; } export {};