export type PaymentMethodInfo = { code: string; name: string; }; export type PaymentMethodFactory = { init: () => PaymentMethodInfo | Promise; validator?: () => boolean | Promise; }; /** * This function retrieves the available payment methods from the registry. * @returns A promise that resolves to an array of payment methods. */ export declare function getAvailablePaymentMethods(): Promise; /** * Registers a new payment method. * @param factory - The factory object that contains the init and optional validator methods. * @throws Will throw an error if the factory does not have an init method. */ export declare function registerPaymentMethod(factory: PaymentMethodFactory): void;