import { LitElement, type PropertyValues, type TemplateResult } from "lit"; import { type FormSubmitter, type FormSubmitterType } from "../../utils/index.ts"; declare const BaseClass: import("../../utils/index.ts").MixinReturn, import("../../utils/index.ts").WithElementInternals>; export declare abstract class BaseButton extends BaseClass implements FormSubmitter { /** @internal */ static formAssociated: boolean; /** @internal */ static readonly shadowRootOptions: ShadowRootInit; /** * Whether the button is disabled. * * @prop {boolean} disabled * @attr {string} disabled * @default false */ disabled: boolean; /** * The type of the button. * * @prop {"button" | "submit" | "reset"} type * @attr {string} type * @default "submit" */ type: FormSubmitterType; /** * The accessible label for the button. * * @prop {string} label * @attr {string} label * @default "" */ label: string; /** * Whether the button is in a loading state. * * @prop {boolean} loading * @attr {string} loading * @default false */ loading: boolean; /** * The size of the button. * * @prop {"sm" | "md" | "lg"} size * @attr {"sm" | "md" | "lg"} size * @default "md" */ size: "sm" | "md" | "lg"; /** * The URL that the link button points to. * * @prop {string} href * @attr {string} href * @default "" */ href: string; /** * The filename to use when downloading the linked resource. * If not specified, the browser will determine a filename. * This is only applicable when the button is used as a link (`href` is set). * * @prop {string} download * @attr {string} download * @default "" */ download: string; /** * Where to display the linked `href` URL for a link button. Common options include * `_blank` to open in a new tab. When the `target` is set to `_blank`, the `rel` attribute * of the anchor tag will automatically be set to `"noopener noreferrer"` to enhance * security and prevent potential tab exploitation. * * @prop {"_blank" | "_parent" | "_self" | "_top" | ""} target * @attr {"_blank" | "_parent" | "_self" | "_top" | ""} target * @default "" */ target: "_blank" | "_parent" | "_self" | "_top" | ""; /** * Indicates that the element should be focused on page load. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus * * @prop {boolean} autofocus * @attr {string} autofocus * @default false */ autofocus: boolean; /** * The variant style of the button. * * @prop {"primary" | "ghost" | "naked" | "elevated" | "destructive" | "brand"} variant * @attr {"primary" | "ghost" | "naked" | "elevated" | "destructive" | "brand"} variant * @default "primary" */ variant: "primary" | "ghost" | "naked" | "elevated" | "destructive" | "brand"; private readonly _root; /** @internal */ get form(): HTMLFormElement | null; constructor(); private _updateFocusability; /** @internal */ connectedCallback(): void; /** @internal */ disconnectedCallback(): void; protected firstUpdated(changed: PropertyValues): void; protected updated(changed: PropertyValues): void; /** * The method for rendering the content of the button. */ protected abstract renderContent(): TemplateResult; /** * The method for rendering the loading state of the button. */ protected abstract renderLoading(): TemplateResult; /** * The method for rendering the spinner for loading state. */ protected renderSpinner(): TemplateResult; private _renderBody; private _handleClick; /** @internal */ focus(options?: FocusOptions): void; /** @internal */ blur(): void; private _renderAsButton; private _renderAsLink; protected render(): TemplateResult; } export {};