import * as React from "react"; import { type VariantProps } from "../../utils.js"; import type { ToggleGroupItemFormatted, ToggleGroupItemParams } from "../domains/index.js"; /** * Toggle Group Item */ declare const toggleGroupItemVariants: (props?: ({ variant?: "primary" | "ghost" | "ghost-negative" | "outline" | null | undefined; size?: "sm" | "md" | null | undefined; contentLayout?: "text" | "icon" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; type ToggleGroupVariant = VariantProps["variant"]; type ToggleGroupSize = VariantProps["size"]; type ToggleGroupSingleProps = { type?: "single"; value?: string; onChange?: (value: string) => void; }; type ToggleGroupMultipleProps = { type: "multiple"; value?: string[]; onChange?: (value: string[]) => void; }; type ToggleGroupPrimitiveBaseProps = { items: ToggleGroupItemParams[]; variant?: ToggleGroupVariant; size?: ToggleGroupSize; bordered?: boolean; disabled?: boolean; className?: string; }; type ToggleGroupPrimitiveProps = ToggleGroupPrimitiveBaseProps & (ToggleGroupSingleProps | ToggleGroupMultipleProps); type ToggleGroupVm = { items: ToggleGroupItemFormatted[]; }; declare const ToggleGroupPrimitive: ((props: ToggleGroupPrimitiveProps) => React.JSX.Element) & { original: (props: ToggleGroupPrimitiveProps) => React.JSX.Element; originalName: string; displayName: string; } & { original: ((props: ToggleGroupPrimitiveProps) => React.JSX.Element) & { original: (props: ToggleGroupPrimitiveProps) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: ToggleGroupPrimitiveProps) => React.JSX.Element) & { original: (props: ToggleGroupPrimitiveProps) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; }; export { ToggleGroupPrimitive, type ToggleGroupPrimitiveProps, type ToggleGroupVm, type ToggleGroupVariant, type ToggleGroupSize };