import { ApiReturn } from '../types/common';
interface FetchParam extends RequestInit {
    url: string;
    apiKey?: string;
    method?: string;
    headers?: Record<string, string>;
    body?: any;
    bodyRaw?: any;
}
declare class PaymentGatewayApi {
    private baseUrl;
    private apiKey;
    configure(options: {
        baseUrl?: string;
        apiKey?: string;
    }): void;
    fetch<T = any>(params: FetchParam): ApiReturn<T>;
}
export declare function usePaymentApi(): {
    api: PaymentGatewayApi;
};
export {};
