import { type checkboxValue, type fieldsData, type textLabels, type customValidationFunction, type option, type parsedOption } from '../typings'; /** * Process data from given field and prepare it for a form mutation. */ export declare const processField: (name: string, value: any, mandatory: boolean, options: { touched?: boolean | undefined; type?: string | undefined; min?: number | undefined; forceErrorMessage?: string | false | undefined; } | undefined, textLabels: textLabels, customValidationFunction: customValidationFunction) => fieldsData; /** * Generate initial form state, where all values are undefined. */ export declare const initiateFormFields: (fieldNames: string[], mandatory?: string[]) => fieldsData; /** * Reset valdiation states of all fields in a form. */ export declare const updateMandatory: (fieldsData: fieldsData, mandatory?: string[]) => fieldsData; /** * Parse option, which can be a string or an object, to return an object. */ export declare const parseOption: (option: option) => parsedOption; /** * Update single checkbox value in a list of all checkboxes. */ export declare const checkboxHandler: (checked: boolean, newValue: checkboxValue, previousValues: checkboxValue[]) => checkboxValue[]; /** * Check whether whole form is filled correctly. */ export declare const formHasErrors: (fieldsData: fieldsData) => boolean; /** * Get values from all fields and organize them into API friendly format. */ export declare const getValues: (fieldsData: fieldsData) => fieldsData; /** * Convert image url to image data format that is compatible with image upload * input. */ export declare const imageUrltoImageData: (imageUrl: string) => { name: string | undefined; data: string; type: string; } | null;