import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsWithChildren } from 'react'; import { T as ThemeName } from './theme-VMRlhqST.js'; /** Button only supports `danger`. Label/status color recipes live on Chip. */ type ButtonIntent = "danger"; declare const sizes: { readonly small: "polli:px-2 polli:pt-0.5 polli:pb-1"; readonly medium: "polli:px-4 polli:pt-1.5 polli:pb-2"; readonly large: "polli:px-6 polli:py-3"; }; type BaseButtonProps = { /** Override the cascade theme for this button's subtree. Ignored when `intent` is set. */ theme?: ThemeName; /** Only `"danger"` for now. */ intent?: ButtonIntent; size?: keyof typeof sizes; className?: string; disabled?: boolean; }; type ButtonProps = PropsWithChildren & { as?: T; } & Omit, keyof BaseButtonProps | "as">; declare function Button({ as, children, theme, intent, size, className, disabled, ...buttonProps }: ButtonProps): react_jsx_runtime.JSX.Element; export { Button as B, type ButtonProps as a };