UNPKG

@fenil265/fundly-payment-sdk

Version:

Fundly Payment SDK for seamless integration with Fundly Pay systems.

25 lines 834 B
/** * Fetch utility to replace axios * Provides a similar API to axios for easier migration */ interface FetchResponse<T = any> { data: T; status: number; statusText: string; } export declare const http: { get: <T = any>(url: string, config?: { headers?: Record<string, string | undefined>; }) => Promise<FetchResponse<T>>; post: <T = any>(url: string, data?: any, config?: { headers?: Record<string, string | undefined>; }) => Promise<FetchResponse<T>>; put: <T = any>(url: string, data?: any, config?: { headers?: Record<string, string | undefined>; }) => Promise<FetchResponse<T>>; delete: <T = any>(url: string, config?: { headers?: Record<string, string | undefined>; }) => Promise<FetchResponse<T>>; }; export {}; //# sourceMappingURL=fetch.d.ts.map