import type { MdyFieldError } from "@modyra/core"; import type { MdyPartContract } from "../contract.js"; import type { MdyDatepickerFieldState } from "./datepicker-field-types.js"; export interface MdyDatepickerFieldA11yOptions { /** * Whether the supporting text is on the page. * * Named unconditionally, the description points at an element a renderer may not have drawn — the * reference resolves to nothing and the control is described by an id rather than by words. * Defaults to true, which is what every caller relied on before it could say otherwise. */ readonly descriptionVisible?: boolean; /** * Whether the error container is on the page, whether or not it holds a message. * * A renderer that keeps it under every field that can fail a rule passes this, and the control's * description then names one element that never changes — no moment at which the reference can * point at something not yet drawn, or already gone. * * Defaults to whether there are errors to show, so a renderer that draws the container only when it * has something to say is unaffected. */ readonly errorsReserved?: boolean; readonly widgetId: string; } export declare function datepickerFieldPartIds(widgetId: string): { readonly labelId: string; readonly triggerId: string; readonly gridId: string; readonly descriptionId: string; readonly errorId: string; }; /** The root's classes, from the shared table every kind reads. */ export declare function datepickerFieldRootClasses(state: MdyDatepickerFieldState): readonly string[]; export declare function projectDatepickerFieldA11y(state: MdyDatepickerFieldState, errors: ReadonlyArray, options: MdyDatepickerFieldA11yOptions): { readonly root: MdyPartContract; readonly label: MdyPartContract; readonly trigger: MdyPartContract; readonly grid: MdyPartContract; readonly description: MdyPartContract; readonly error: MdyPartContract; };