import { Button as BaseButton } from '@base-ui/react/button'; import type { ButtonHTMLAttributes, ReactNode } from 'react'; import { type AppLinkProps, type LinkTarget } from './AppLink.js'; import { type ButtonStyle } from './buttonClasses.js'; interface ButtonOwnProps extends ButtonStyle { className?: string | undefined; /** Before the label. */ icon?: ReactNode; /** Busy with what it started: a spinner takes the icon's place, or without an * icon sits over the label, so the button keeps its width. It can't be * pressed again until done. */ loading?: boolean | undefined; } /** A button, or with `href` a link that looks like one: navigation stays a * link, so it opens in a new tab and shows its URL like any other. */ export type ButtonProps = ButtonOwnProps & ((Omit & { href?: undefined; }) | (Omit & LinkTarget & { href: string; })); /** A button in the package's one look (see `buttonClasses`). * `focusableWhenDisabled` keeps a disabled button's tooltip reachable; a * disabled link stays focusable on its own. */ export declare function Button({ variant, size, iconOnly, icon, loading, className, children, ...props }: ButtonProps): import("react").JSX.Element; interface MethodButtonProps extends Omit, 'children'> { icon?: ReactNode; label: string; description?: string; href?: string; loading?: boolean; } /** One way to go on, such as a sign-in method: a large row with an icon, a * label and a line under it. A list of them is spaced by its container. */ export declare function MethodButton({ icon, label, description, href, loading, disabled, className, ...props }: MethodButtonProps): import("react").JSX.Element; export {};