import type { PaymentMethod } from '../types'; import type { Resource } from '@foxy.io/sdk/core'; import type { Rels } from '@foxy.io/sdk/backend'; export declare type HostedPaymentGatewayParams = { paymentMethodSetHostedPaymentGatewayId: string; hostedPaymentGateway: Resource; helper: Resource['values'][string]; }; export declare type PaymentGatewayParams = { paymentGateway: Resource; helper: Resource['values'][string]; }; export declare type CommonParams = { paymentPresetId: string; base: string; }; export declare type Params = CommonParams & (HostedPaymentGatewayParams | PaymentGatewayParams); export declare function compose(params: Params): PaymentMethod;