UNPKG

@realitydefender/realitydefender

Version:

SDK for the Reality Defender API for deepfake detection

24 lines (23 loc) 782 B
/** * HTTP client implementation using Axios */ import { HttpClient, HttpClientConfig, AxiosClientInstance } from './types'; import { RealityDefenderError } from '../errors'; /** * Creates an Axios HTTP client * @param config Client configuration * @returns Axios client instance */ export declare function createAxiosClient(config: HttpClientConfig): AxiosClientInstance; /** * Create an HTTP client for API communication * @param config Client configuration * @returns HTTP client instance */ export declare function createHttpClient(config: HttpClientConfig): HttpClient; /** * Handle Axios errors and convert them to SDK errors * @param error Error from Axios * @returns SDK error */ export declare function handleAxiosError(error: unknown): RealityDefenderError;