import type { Attribute, Html, HtmlBuilder } from 'foldkit/html'; /** Attribute groups the fieldset component provides to the consumer's `toView` callback. */ export type FieldsetAttributes = Readonly<{ fieldset: ReadonlyArray>; legend: ReadonlyArray>; description: ReadonlyArray>; }>; /** Configuration for rendering a fieldset with `view`. */ export type ViewConfig = Readonly<{ id: string; toView: (attributes: FieldsetAttributes) => Html; isDisabled?: boolean; }>; /** Returns the legend element id, derived from the fieldset's base id. */ export declare const legendId: (id: string) => string; /** Returns the description element id, derived from the fieldset's base id. */ export declare const descriptionId: (id: string) => string; /** Renders an accessible fieldset 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