import type { Attribute, Html, HtmlBuilder } from 'foldkit/html'; /** Attribute groups the button component provides to the consumer's `toView` callback. */ export type ButtonAttributes = Readonly<{ button: ReadonlyArray>; }>; /** Configuration for rendering a button with `view`. */ export type ViewConfig = Readonly<{ toView: (attributes: ButtonAttributes) => Html; onClick?: Message; isDisabled?: boolean; type?: 'button' | 'submit' | 'reset'; isAutofocus?: boolean; }>; /** * Renders an accessible button by building attribute groups and delegating * layout to the consumer's `toView` callback. * * Takes the consumer's builder, which pins `Message` to the universe of the * frame the button is rendered in. `onClick` must come from that same * universe, so a Message the consumer's dispatcher cannot route is a compile * error here. */ export declare const view: (config: ViewConfig, h: HtmlBuilder) => Html; //# sourceMappingURL=index.d.ts.map