import '@neovici/cosmoz-tooltip'; export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'success' | 'warning' | 'link'; export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; export type ButtonType = 'button' | 'submit' | 'reset'; export interface CosmozButtonElement extends HTMLElement { syncFormButton(): void; variant?: ButtonVariant; size?: ButtonSize; disabled?: boolean; formDisabled?: boolean; readonly form: HTMLFormElement | null; name?: string; formaction?: string; formenctype?: string; formmethod?: string; formnovalidate?: boolean; formtarget?: string; controlRole?: string; ariaControls?: string | null; ariaHaspopup?: string | null; ariaKeyshortcuts?: string | null; tabindex?: string | number | null; fullWidth?: boolean; iconOnly?: boolean; tooltip?: string | null; tooltipPlacement?: string | null; type?: ButtonType; value?: string | null; href?: string | null; target?: string | null; rel?: string | null; download?: string | null; } /** * A customizable button component using Untitled UI design tokens. * * @element cosmoz-button * * @attr {string} variant - Button style variant: primary (default), secondary, tertiary, destructive, success, warning, link * @attr {string} size - Button size: xs, sm, md (default), lg, xl * @attr {boolean} disabled - Disables the button * @attr {boolean} full-width - Makes the button 100% width * @attr {boolean} icon-only - Renders a compact square icon-only button (Untitled UI utility button) * @attr {boolean} icon-square - With icon-only, keeps the labelled button's corner radius instead of a circle * @attr {string} tooltip - When set, wraps the button in a cosmoz-tooltip with this heading * @attr {string} tooltip-placement - Tooltip placement (top, bottom, left, right; default top) * @attr {string} type - Button type: button (default), submit, reset * @attr {string} value - Value associated with the button (optional) * @attr {string} href - When present, renders as an anchor link instead of a button * @attr {string} target - Target attribute for the anchor (only with href) * @attr {string} rel - Rel attribute for the anchor (only with href) * @attr {string} download - Download attribute for the anchor (only with href) * @attr {string} aria-expanded - Toggled/expanded state, forwarded to the native control * @attr {string} aria-label - Accessible name forwarded to the native control (icon-only buttons) * @attr {string} aria-keyshortcuts - Key combos that activate the button, forwarded to the native control * @attr {string} aria-pressed - Reflects a toggled/selected state (styled for icon-only buttons) * * @slot - Default slot for button text content * @slot prefix - Slot for prefix icon (before text) * @slot suffix - Slot for suffix icon (after text) * * @csspart button - The native button or anchor element */ declare const CosmozButton: (host: CosmozButtonElement) => import("lit-html").TemplateResult<1>; export { CosmozButton }; declare global { interface HTMLElementTagNameMap { 'cosmoz-button': CosmozButtonElement; } }