import type { Attribute, Html, HtmlBuilder } from 'foldkit/html'; /** Attribute groups the select component provides to the consumer's `toView` callback. */ export type SelectAttributes = Readonly<{ select: ReadonlyArray>; label: ReadonlyArray>; description: ReadonlyArray>; }>; /** Configuration for rendering a select with `view`. */ export type ViewConfig = Readonly<{ id: string; toView: (attributes: SelectAttributes) => Html; onChange?: (value: string) => Message; value?: string; isDisabled?: boolean; isInvalid?: boolean; isAutofocus?: boolean; name?: string; }>; /** Returns the description element id, derived from the select's base id. */ export declare const descriptionId: (id: string) => string; /** Renders an accessible select by building ARIA attribute groups and delegating layout to the consumer's `toView` callback. */ export declare const view: (config: ViewConfig, h: HtmlBuilder) => Html; //# sourceMappingURL=index.d.ts.map