/** What the button-like elements (``, ``, ``, ``) share: `type="submit"` and `type="reset"` act on the host's form, which a button inside a shadow root cannot reach by itself. */ import type { AttributeSpec, ElementComponent, ElementHost, FormSpec } from "./define.js"; export interface ButtonControl { element: HTMLElement; leadingElement?: HTMLElement; isSelected?: () => boolean; } export declare const buttonAria: { "aria-expanded": AttributeSpec & { type: "string"; }; "aria-haspopup": AttributeSpec & { type: "string"; }; "aria-pressed": AttributeSpec & { type: "string"; }; "aria-controls": AttributeSpec & { type: "string"; }; "aria-describedby": AttributeSpec & { type: "string"; }; }; export declare const syncButtonAria: (host: HTMLElement, component: ButtonControl) => void; interface Disableable { enable: () => unknown; disable: () => unknown; } export declare const typeAttribute: { readonly type: "string"; readonly update: () => undefined; }; export declare const buttonForm: () => FormSpec; export declare const setupFormButton: (host: ElementHost, component: C) => (() => void); export {};