import type { MdyFieldError } from "@modyra/core"; import type { MdyPartContract } from "../contract.js"; import type { MdyTimepickerFieldState } from "./timepicker-field-types.js"; export interface MdyTimepickerFieldA11yOptions { /** * 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 timepickerFieldPartIds(widgetId: string): { readonly labelId: string; readonly triggerId: string; readonly dialogId: string; readonly hourId: string; readonly minuteId: string; readonly descriptionId: string; readonly errorId: string; }; /** The root's classes, from the shared table every kind reads. */ export declare function timepickerFieldRootClasses(state: MdyTimepickerFieldState): readonly string[]; export declare function projectTimepickerFieldA11y(state: MdyTimepickerFieldState, errors: ReadonlyArray, options: MdyTimepickerFieldA11yOptions): { readonly root: MdyPartContract; readonly label: MdyPartContract; readonly trigger: MdyPartContract; readonly dialog: MdyPartContract; readonly hour: MdyPartContract; readonly hourControl: MdyPartContract; readonly minute: MdyPartContract; readonly minuteControl: MdyPartContract; readonly description: MdyPartContract; readonly error: MdyPartContract; };