/** * Payment Service - Pricing calculation and payment details management * Handles calculating total prices, taxes, discounts, and deposit information * Supports two modes: SSR (config with pre-fetched data) and lazy loading (reactive) */ import { type PaymentServiceConfig, type PaymentServiceInternalConfig, type PricingServiceSelection } from './payment.def.js'; import type { SelectedPaymentOption } from '../booking/book-action/types.js'; export { PaymentServiceDefinition, type PaymentServiceConfig, type PaymentDetails, type LineItemAdditionalInfo, type PricingServiceSelection, type ServicePaymentOptions, } from './payment.def.js'; export type { PaymentServiceAPI, PaymentServiceInternalConfig, } from './payment.def.js'; export declare const PaymentService: import("@wix/services-definitions").ServiceFactory; export type SuccessPaymentConfigResult = { type: 'success'; config: PaymentServiceConfig; }; export type ErrorPaymentConfigResult = { type: 'error'; error: string; }; /** * Load payment configuration for Server-Side Rendering (SSR). * Calls the pricing APIs and returns pre-calculated payment details. * * @param params.pricingServiceSelections - Pricing service selections for calculation * @param params.totalParticipants - Number of participants (default: 1) * @param params.selectedPaymentOption - Optional consumer-selected payment option; * overrides the service-config heuristic on each line item's `paymentOption`. */ export declare function loadPaymentConfig(params: { pricingServiceSelections: PricingServiceSelection[]; totalParticipants?: number; selectedPaymentOption?: SelectedPaymentOption; }): Promise;