function attachField<TValue>(element: FieldElement, field: FieldController<never, never, TValue>): () => void; Wires an <input>, <textarea> or <select> to a field controller until the returned function is called: it writes the text typed (input events; change of a <select> or a checkbox, whose checked is the value), writes nothing during IME composition, commits on blur, keeps the element's text (a checkbox's checked) equal to the field's without moving the caret while it already shows it, and sets aria-invalid while the field has errors or an error. The caller feeds the controller its View with setSource; bindField does both.