import { BaseButtonStyle, BaseButtonVariant } from './base-button.types'; import { IxButtonComponent } from './button-component'; import { AnchorTarget } from './button.interface'; export type ButtonVariant = `${BaseButtonVariant}` | `${BaseButtonStyle}-${BaseButtonVariant}`; export declare class Button implements IxButtonComponent { /** * ARIA label for the button * Will be set as aria-label on the nested HTML button element * * @since 3.2.0 */ ariaLabelButton?: string; /** * Button variant */ variant: ButtonVariant; /** * Disable the button */ disabled: boolean; /** * Type of the button */ type: 'button' | 'submit'; /** * Loading button */ loading: boolean; /** * Provide a form element ID to automatically submit the from if the button is pressed. Only works in combination with type="submit". * * @since 3.1.0 */ form?: string; /** * Icon name */ icon?: string; /** * Icon name for the right side of the button * @since 4.0.0 */ iconRight?: string; /** @internal */ alignment: 'center' | 'start'; /** @internal */ iconSize: '12' | '16' | '24'; /** * URL for the button link. When provided, the button will render as an anchor tag. * * @since 4.0.0 */ href?: string; /** * Specifies where to open the linked document when href is provided. * * @since 4.0.0 */ target?: AnchorTarget; /** * Specifies the relationship between the current document and the linked document when href is provided. * * @since 4.0.0 */ rel?: string; hostElement: HTMLIxButtonElement; /** * Temp. workaround until stencil issue is fixed (https://github.com/ionic-team/stencil/issues/2284) */ submitButtonElement?: HTMLButtonElement; handleClick(event: Event): void; componentDidLoad(): void; handleFormChange(newValue: string | undefined): void; componentDidRender(): void; dispatchFormEvents(): void; setFocus(): void; render(): any; }