import { CountrySettings } from '@jetshop/core/types'; import { CustomerField } from '@jetshop/core/types'; export declare const getFieldType: (name: string) => "text" | "tel" | "email" | "password"; export declare function formFieldsFromSettings(selectedCountrySettings: CountrySettings, isUserTypeBusiness?: boolean): { allFields: { type: string; id: string; name: string; label: any; __typename?: "CustomerField"; required: boolean; pattern?: string; fields?: CustomerField[]; }[]; billingAddressFields: { label: any; placeholder: string; type: string; __typename?: "CustomerField"; id: string; required: boolean; pattern?: string; fields?: CustomerField[]; name: string; }[]; deliveryAddressFields: { label: any; placeholder: string; type: string; __typename?: "CustomerField"; id: string; required: boolean; pattern?: string; fields?: CustomerField[]; name: string; }[]; loginFields: { type: string; id: string; name: string; label: any; placeholder: any; __typename?: "CustomerField"; required: boolean; pattern?: string; fields?: CustomerField[]; }[]; pidField: { type: string; id: string; name: string; label: any; __typename?: "CustomerField"; required: boolean; pattern?: string; fields?: CustomerField[]; }; }; export declare function createValidatorForFields(fields: CustomerField[], { getFieldName, getFieldValue, customValidation }?: { getFieldName?: (name: string) => string; getFieldValue?: (values: any, fieldName: string) => any; customValidation?: (errors: { [key: string]: any; }, values: any) => any; }): (values: any) => any;