import type { DOMRenderProps } from "../../utils/dom"; import type { ButtonProps } from "../button"; import type { ButtonGroupVariants } from "@heroui/styles"; import type { ComponentPropsWithRef, ReactNode } from "react"; import { buttonGroupVariants } from "@heroui/styles"; import React from "react"; import { Group } from "react-aria-components/Group"; type ButtonGroupContext = { slots?: ReturnType; size?: ButtonProps["size"]; variant?: ButtonProps["variant"]; isDisabled?: ButtonProps["isDisabled"]; fullWidth?: ButtonProps["fullWidth"]; }; declare const ButtonGroupContext: React.Context; export declare const BUTTON_GROUP_CHILD = "__button_group_child"; interface ButtonGroupRootProps extends ComponentPropsWithRef, Pick, ButtonGroupVariants { /** The orientation of the button group */ orientation?: "horizontal" | "vertical"; } declare const ButtonGroupRoot: ({ children, className, fullWidth, isDisabled, orientation: orientationProp, size, variant, ...rest }: ButtonGroupRootProps) => import("react/jsx-runtime").JSX.Element; interface ButtonGroupSeparatorProps extends DOMRenderProps { children?: ReactNode; className?: string; } declare const ButtonGroupSeparator: ({ className, ...props }: ButtonGroupSeparatorProps & Omit>) => import("react/jsx-runtime").JSX.Element; export { ButtonGroupRoot, ButtonGroupSeparator, ButtonGroupContext }; export type { ButtonGroupRootProps, ButtonGroupSeparatorProps };