/** * Creates a PaymentService instance with the appropriate API key * @param {boolean} isLivePayment - true if this is a live payment * @param {string} formId - id of the form * @param {FormsService} formsService - service to handle form data operations * @returns {Promise} */ export function createPaymentService(isLivePayment: boolean, formId: string, formsService: FormsService): Promise; /** * Formats a payment date for display * @param {string} isoString - ISO date string * @returns {string} Formatted date string (e.g., "26 January 2026 5:01pm") */ export function formatPaymentDate(isoString: string): string; /** * Formats a currency amount with thousand separators and two decimal places * @param {number} amount - amount in pounds * @param {'en-GB'} [locale] - locale for formatting * @param {'GBP'} [currency] - currency code * @returns {string} Formatted amount (e.g., "£1,234.56") */ export function formatCurrency(amount: number, locale?: "en-GB", currency?: "GBP"): string; export const DEFAULT_PAYMENT_HELP_URL: "https://www.gov.uk/government/organisations/department-for-environment-food-rural-affairs"; import type { FormsService } from '~/src/server/types.js'; import { PaymentService } from '~/src/server/plugins/payment/service.js';