//#region src/payments/payment-methods.d.ts /** * Payment Methods Configuration * * Single source of truth for payment method metadata used by both * backend (route validation) and frontend (UI rendering). */ type PaymentMethodCategory = 'cards' | 'wallets' | 'bnpl' | 'realtime' | 'bank_debits' | 'bank_transfers' | 'vouchers'; type PaymentMethodConfig = { name: string; category: PaymentMethodCategory; dependencies?: string[]; }; /** * All supported payment methods with their display names, categories, and dependencies. * This is the single source of truth - both backend and frontend should import from here. */ declare const PAYMENT_METHODS: Record; /** * Category definitions with display names, ordered by commonality. */ declare const PAYMENT_CATEGORIES: { id: PaymentMethodCategory; name: string; }[]; /** * Get display name for a payment method ID. * Returns the ID itself if not found (fallback for unknown methods). */ declare function getPaymentMethodName(methodId: string): string; /** * Get category for a payment method ID. * Returns undefined if method is not known. */ declare function getPaymentMethodCategory(methodId: string): PaymentMethodCategory | undefined; /** * Get dependencies for a payment method ID. * Returns empty array if method is not known or has no dependencies. */ declare function getPaymentMethodDependencies(methodId: string): string[]; /** * Check if a payment method ID is known/supported. */ declare function isKnownPaymentMethod(methodId: string): boolean; /** * Get all payment method IDs. */ declare function getAllPaymentMethodIds(): string[]; /** * Get all display names (useful for schema validation). */ declare function getAllPaymentMethodNames(): string[]; /** * Build dependencies map: { methodId: [requiredMethodIds] } * Only includes methods that have dependencies. */ declare const PAYMENT_METHOD_DEPENDENCIES: Record; /** * Group payment method IDs by category. */ declare function getPaymentMethodsByCategory(): Record; //#endregion export { PAYMENT_CATEGORIES, PAYMENT_METHODS, PAYMENT_METHOD_DEPENDENCIES, PaymentMethodCategory, PaymentMethodConfig, getAllPaymentMethodIds, getAllPaymentMethodNames, getPaymentMethodCategory, getPaymentMethodDependencies, getPaymentMethodName, getPaymentMethodsByCategory, isKnownPaymentMethod }; //# sourceMappingURL=payment-methods.d.ts.map