import type { FormField } from '../../types'; import { simulateEvent } from './events'; /** * Clears the form field's value and emits an input and changed event. * If the field is a checkbox or a radio, it will unselect it. * @param field The `FormField` to clear. * @param omitEvents By default, events are dispatched from the `FormField`. In some cases, these events might collide with other logic of the system. * You can omit certain events from being dispatched by passing them in an array. */ export declare const clearFormField: (field: FormField, omitEvents?: Parameters["1"]) => void; /** * Gets the value of a given input element. * @param {FormField} input */ export declare const getFormFieldValue: (input: FormField) => string; /** * Sets a value to a FormField element and emits `click`, `input` and `change` Events. * * @param element The FormField to update. * @param value `boolean` for Checkboxes and Radios, `string` for the rest. */ export declare const setFormFieldValue: (element: FormField, value: string | boolean) => void;