/** * @description Default Library Types */ export type StyleObject = object; export type ReactNode = object; /** * @description Common Used Types */ export type Label = { label: string; }; export type Title = Label & { style?: T; }; export type Description = (Label & { style?: T; })[]; export type Instructions = Label & { style?: T; items: { iconSrc: string; label: string | ReactNode; }[]; }; export type CTA = Label & { icon?: ReactNode; style?: T; }; export type Checkbox = { items: Label[]; style: T; }; export type SubString = { substring: string; }; export type DocumentCommonType = Label & SubString & { validCountries: 'aus' | 'ind'; }; /** * @description Document Types */ export type DrivingLicense = DocumentCommonType & { type: 'DRIVERS_LICENSE'; }; export type Passport = DocumentCommonType & { type: 'PASSPORT'; }; export type NATIONAL_HEALTH_ID = DocumentCommonType & { type: 'NATIONAL_HEALTH_ID'; }; export type DocumentType = DrivingLicense | Passport | NATIONAL_HEALTH_ID; export type Welcome = { name: 'welcome'; config: { title: Title<{ '.ff-welcome.title': StyleObject; }>; descriptions: Description<{ '.ff-welcome.description': StyleObject; }>; instructions: Instructions<{ '.ff-welcome.instructions': StyleObject; }>; cta: CTA<{ '.ff-welcome.button': StyleObject; }>; style?: Record; }; }; export type Consent = { name: 'consent'; config: { title: Title<{ '.ff-consent.title': StyleObject; }>; descriptions: Description<{ '.ff-consent.description': StyleObject; }>; checkbox: Checkbox<{ '.ff-consent.checkbox': StyleObject; }>; cta: CTA<{ '.ff-welcome.button': StyleObject; }>; }; }; export type DocumentScreen = { name: 'document'; config: { title: Title<{ '.ff-document.title'?: StyleObject; }>; descriptions: Description<{ '.ff-document.description': StyleObject; }>; documents: DocumentType[]; }; }; export type Screens = Welcome | Consent | DocumentScreen; export type FormConfig = Screens & { type: 'ocr' | 'manual'; formConfig: { cdnUrl: string[]; fontFamily: string[]; }; }; export declare const recipeConfig: FormConfig; //# sourceMappingURL=formConfig.d.ts.map