/** * TyButton Web Component — three appearances (solid/outlined/ghost) × six * flavors × three tones. Append `+`/`-` to a flavor for stronger/softer tone. */ import type { Flavor, Size, TyButtonElement } from "../types/common.js"; import { TyComponent } from "../base/ty-component.js"; import type { PropertyChange } from "../utils/property-manager.js"; type Appearance = "solid" | "outlined" | "ghost"; interface ButtonState { flavor: Flavor; size: Size; appearance: Appearance; disabled: boolean; loading: boolean; type: "button" | "submit" | "reset"; pill: boolean; action: boolean; wide: boolean; name: string; value: string; } /** * Ty Button Component */ export declare class TyButton extends TyComponent implements TyButtonElement { static formAssociated: boolean; protected static properties: { flavor: { type: "string"; visual: boolean; default: string; }; size: { type: "string"; visual: boolean; default: Size; validate: (v: any) => boolean; coerce: (v: any) => any; }; appearance: { type: "string"; visual: boolean; default: string; validate: (v: any) => boolean; coerce: (v: any) => any; }; disabled: { type: "boolean"; visual: boolean; default: boolean; }; loading: { type: "boolean"; visual: boolean; default: boolean; }; type: { type: "string"; visual: boolean; default: string; }; pill: { type: "boolean"; visual: boolean; default: boolean; }; action: { type: "boolean"; visual: boolean; default: boolean; }; muted: { type: "boolean"; visual: boolean; default: boolean; }; wide: { type: "boolean"; visual: boolean; default: boolean; }; name: { type: "string"; default: string; }; value: { type: "string"; default: string; }; }; private _structureInitialized; private _formDisabled; private _customFlavorSheet; private _ownClick; constructor(); /** * A real press inside the host's content box that missed the button: the * empty host below a wide button that a min-height made taller, or around * one a page's display: flex stretched. Nothing there looks like the * button, so it's no press. Host padding and border are outside the * content box. */ private _pressOffButton; protected onConnect(): void; protected onDisconnect(): void; protected onPropertiesChanged(changes: PropertyChange[]): void; formDisabledCallback(disabled: boolean): void; private get _isDisabled(); /** Focus the inner