import type { ConfigWithDefaults } from '../config/index.ts'; import type { Logger } from '../isomorphic/types.ts'; type FormDataValue = string | number | File | undefined; export interface RequestAttributes { /** * The path to the API endpoint * * @example * '/api/snap-requests/with-results' */ path?: `/api/${string}`; /** * The URL to fetch * * Prefer using the `path` property instead. If both are provided, the `path` * property will be used. */ url?: string; method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; formData?: Record; body?: unknown; } export interface MakeHappoAPIRequestOptions { /** * The timeout in milliseconds * @default 60_000 */ timeout?: number; /** * The number of times to retry the request * @default 0 */ retryCount?: number; /** * The minimum timeout in milliseconds * @default 1000 */ retryMinTimeout?: number; /** * The maximum timeout in milliseconds * @default Infinity */ retryMaxTimeout?: number; } export default function makeHappoAPIRequest({ url, path, method, formData, body }: RequestAttributes, { apiKey, apiSecret, endpoint }: ConfigWithDefaults, { retryCount, timeout, retryMinTimeout, retryMaxTimeout, }: MakeHappoAPIRequestOptions, logger?: Logger): Promise; export {}; //# sourceMappingURL=makeHappoAPIRequest.d.ts.map