import type { AxiosResponse, AxiosInstance } from 'axios'; import FormData from 'form-data'; import type { ApiRequestOptions } from './ApiRequestOptions'; import type { ApiResult } from './ApiResult'; import { CancelablePromise } from './CancelablePromise'; import type { OnCancel } from './CancelablePromise'; import type { OpenAPIConfig } from './OpenAPI'; export declare const isDefined: (value: T | null | undefined) => value is Exclude; export declare const isString: (value: any) => value is string; export declare const isStringWithValue: (value: any) => value is string; export declare const isBlob: (value: any) => value is Blob; export declare const isFormData: (value: any) => value is FormData; export declare const isSuccess: (status: number) => boolean; export declare const base64: (str: string) => string; export declare const getQueryString: (params: Record) => string; export declare const getFormData: (options: ApiRequestOptions) => FormData | undefined; type Resolver = (options: ApiRequestOptions) => Promise; export declare const resolve: (options: ApiRequestOptions, resolver?: T | Resolver) => Promise; export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData) => Promise>; export declare const getRequestBody: (options: ApiRequestOptions) => any; export declare const sendRequest: (config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: FormData | undefined, headers: Record, onCancel: OnCancel, axiosClient: AxiosInstance) => Promise>; export declare const getResponseHeader: (response: AxiosResponse, responseHeader?: string) => string | undefined; export declare const getResponseBody: (response: AxiosResponse) => any; export declare const catchErrorCodes: (options: ApiRequestOptions, result: ApiResult) => void; /** * Request method * @param config The OpenAPI configuration object * @param options The request options from the service * @param axiosClient The axios client instance to use * @returns CancelablePromise * @throws ApiError */ export declare const request: (config: OpenAPIConfig, options: ApiRequestOptions, axiosClient?: AxiosInstance) => CancelablePromise; export {};