/** * VoiceIDVault SDK — internal HTTP layer. * Shared by VoiceIDVaultClient and all sub-namespaces. * @internal */ import { VoiceIDVaultError } from './errors.js'; export interface RequestConfig { readonly baseUrl: string; readonly apiKey: string; readonly timeout: number; readonly retries: number; } /** Function type accepted by sub-namespaces (bound from makeRequest). */ export type RequestFn = (method: 'GET' | 'POST' | 'DELETE', path: string, body?: unknown, ErrorClass?: typeof VoiceIDVaultError) => Promise; /** * Make an authenticated HTTP request with exponential-backoff retry. * Retries: 5xx server errors and network failures. * Does not retry: 4xx client errors. */ export declare function makeRequest(config: RequestConfig, method: 'GET' | 'POST' | 'DELETE', path: string, body?: unknown, ErrorClass?: typeof VoiceIDVaultError): Promise; /** Convert a Blob or ArrayBuffer to base64. Works in browser and Node.js. */ export declare function toBase64(data: Blob | ArrayBuffer): Promise; //# sourceMappingURL=http.d.ts.map