import type { fetch as Fetch } from 'undici';
import type { CommonRawRequestParams, CommonRawResponseParams } from '../types/api';
export declare const jsonRequest: <RequestParams extends CommonRawRequestParams, ResponseParams extends CommonRawResponseParams>({ fetch, url, merchantKey, rawRequestParams }: {
    fetch: typeof Fetch;
    url: string;
    merchantKey: string;
    rawRequestParams: RequestParams;
}) => Promise<ResponseParams>;
