import { type SubmitPayload } from '@defra/forms-model';
import { type DetailItem, type DetailItemField } from '../../../../../server/plugins/engine/models/types.js';
export interface SubmitRecord {
    name: string;
    title: string;
    value: string;
}
/**
 * Builds the main submission records from field items.
 * Regular fields are converted to single records, while PaymentField
 * components are expanded into four separate records.
 */
export declare function buildMainRecords(items: DetailItem[]): SubmitRecord[];
/**
 * Expands a PaymentField into four submission records:
 * - Payment description
 * - Payment amount (formatted with currency symbol)
 * - Payment reference
 * - Payment date (formatted date/time)
 *
 * Returns an empty array if no payment state exists.
 */
export declare function buildPaymentRecords(item: DetailItemField): SubmitRecord[];
/**
 * Builds the repeater submission records from repeater items.
 */
export declare function buildRepeaterRecords(items: DetailItem[]): SubmitPayload['repeaters'];
