/**
* Description and error association for `seki-field` (#358).
*
* ## Why this exists
*
* `seki-field` renders its description and error text in slots, but nothing
* told assistive technology that the control is described by them. An
* `aria-describedby` id on a SekiUI control's host cannot reach the real
* ` ` / `` inside the control's own shadow root, so (exactly as
* for labels, see `label-association.ts`) the wiring depends on the kind of
* control:
*
* - **Native controls** and SekiUI controls whose role lives on the host
* (`seki-radio-group`, `seki-combobox`): the field and the control share a
* tree, so `aria-describedby` / `aria-errormessage` id references resolve.
* - **Other SekiUI controls** (input, textarea, checkbox, switch, slider,
* select, date-picker, input-otp) keep their focusable element in a shadow
* root. They forward the plain-text `aria-description` and `aria-invalid`
* attributes inward, so the description (and, when invalid, the error text)
* is passed through as text.
* - **Several controls in one field**: the field host is the `role="group"`,
* and it is the element that gets described.
*
* When the field is `invalid`, the control gets `aria-invalid="true"`, and the
* error is exposed both through `aria-errormessage` (where an id reference
* works) and by being appended to the description, since screen reader support
* for `aria-errormessage` is still uneven.
*
* Anything the author set explicitly is never overwritten. We only manage
* values we wrote ourselves, tracked with a marker attribute so they can be
* updated and cleaned up.
*/
export declare class FieldDescriptionBinding {
private readonly host;
private readonly isInvalid;
private target;
private observer?;
constructor(host: HTMLElement, isInvalid: () => boolean);
/** Direct children placed in (or, by tag, belonging to) the given part. */
private parts;
private controls;
private resolveTarget;
private text;
private ids;
/** (Re)apply the description. Call on load, on `invalid` change and on slot change. */
sync(): void;
/** Remove anything this binding wrote on the current target. */
release(): void;
/** Re-sync when the description, error or control changes after load. */
observe(): void;
disconnect(): void;
}