import { authRequestFactory } from "./apis/auth.js"; import { checkoutRequestFactory } from "./apis/checkout.js"; import { ePaymentRequestFactory } from "./apis/epayment.js"; import { agreementRequestFactory, chargeRequestFactory } from "./apis/recurring.js"; import { webhooksRequestFactory } from "./apis/webhooks.js"; import type { ApiProxy, BaseClient, RequestFactory } from "./types_internal.js"; export type SDKClient = { auth: ReturnType>; checkout: ReturnType>; payment: ReturnType>; recurring: { agreement: ReturnType>; charge: ReturnType>; }; webhook: ReturnType>; }; /** * Proxifies the base client with the API request factories. * * @param {BaseClient} client - The base client to proxify. */ export declare const proxifyClient: (client: BaseClient) => SDKClient; /** * Creates an API proxy object that wraps a request factory, then intercepts * the calls to the factory methods and makes requests using a base client. * * @template TFac - The type of the request factory. * @param {BaseClient} client - The base client used to make requests. * @param {TFac} factory - The request factory object to wrap. * @returns {ApiProxy} The proxified API object. */ export declare const proxifyFactory: (client: BaseClient, factory: TFac) => ApiProxy; //# sourceMappingURL=api_proxy.d.ts.map