import { InvoicingBrandingFormLocalData, InvoicingNamedOption } from '@zeniai/client-epic-state'; import { SingleSelectPickerFieldValue } from '../../formElements/singleSelectPickerField/SingleSelectPickerField'; /** * Web-components glue for the branding settings form. CES owns the draft * `LocalData`; this module maps it to the RHF value shape and back. The logo * file id has no RHF field — it comes from the file-upload flow — so it is * omitted from the form values and threaded through on save instead. */ /** * Form-values shape reuses the CES localData field names verbatim, so every * text/color field flows through by identity and adding one to the CES type * needs no mapper change. Two fields are exceptions: the logo file id has no * RHF counterpart, and `dateFormat` is a picker, whose field value carries its * own option list alongside the selection. */ export type BrandingFormValues = Omit & { dateFormat: SingleSelectPickerFieldValue; }; export declare const localDataToBrandingFormValues: (localData: InvoicingBrandingFormLocalData, dateFormatOptions: InvoicingNamedOption[]) => BrandingFormValues; export declare const brandingFormValuesToLocalData: (values: BrandingFormValues, logoFileId: string) => InvoicingBrandingFormLocalData;