import { AxiosInstance, Method } from 'axios'; interface ResponseOptionsV2 { total: number | undefined; status: StatusCodeV2; data?: any; headers?: any; } declare enum ErrorCodeV2 { SUCCESS = "XX000", ERROR = "XX001" } declare enum StatusCodeV2 { SUCCESS = 200, SERVICE_ERROR = 500, BAD_REQUEST = 400, METHOD_NOT_FOUND = 405 } declare enum RequestMethodV2 { POST = "POST", GET = "GET", PATCH = "" } interface ErrorV2 { code?: string; message?: string; error?: string; } interface AjaxOptionsProps { options?: unknown; props?: LibProps; } interface LibProps { incCsrf?: boolean | false; baseUrl?: string; } declare class ApiServiceV2 { private static apiService; client: AxiosInstance; options: any | undefined; props: LibProps | undefined; private constructor(); get(pURL: string, httpOption?: any): Promise; post(pURL: string, data?: any, httpOption?: any): Promise; put(pURL: string, data?: any, httpOption?: any): Promise; patch(pURL: string, data?: any, httpOption?: any): Promise; setBasePath(baseURL: string): void; getOption(): any; static getApiServiceInstance(optionsProps?: AjaxOptionsProps): ApiServiceV2; setAdditionnalHeaders(headers: unknown, override?: boolean): void; request(fetchurl: string, locale: string, method: Method, data?: T): Promise; } type CMSStoryblokClientGetParams = { version?: string | 'published'; cv?: string; resolve_links?: string; resolve_relations?: string; language?: string; find_by?: string; dimension?: string; per_page?: number; starts_with?: string; type: string; value?: string; sort_by?: string; }; declare class CMSStoryblokServiceV2 { _apiServiceInstance: ApiServiceV2 | undefined; options: any; cdnVersion: string; constructor(); private getAjaxInstance; get(url: string, params: CMSStoryblokClientGetParams): Promise; } declare const cmsStoryblokInstanceV2: CMSStoryblokServiceV2; interface BasicPropConfigSchema { baseURL: string | ''; } declare class BasicPropConfig { private static instance; config: BasicPropConfigSchema; private constructor(); getConfig: () => BasicPropConfigSchema; getBaseUrl: () => string; static getInstance: () => BasicPropConfig; static create: (p_config: BasicPropConfigSchema) => void; } export { ApiServiceV2, BasicPropConfig, cmsStoryblokInstanceV2 as CMSStoryblokServiceV2, ErrorCodeV2, RequestMethodV2, StatusCodeV2 }; export type { AjaxOptionsProps, BasicPropConfigSchema, ErrorV2, LibProps, ResponseOptionsV2 };