import { n as Scope } from "../create-context-CKMcRGBM.js"; import { t as IDirection } from "../direction.types-Cxja_joX.js"; import { t as Primitive } from "../primitive-elements-fih1b6xg.js"; import { n as RovingFocusGroup } from "../roving-focus-COML8883.js"; import * as React$1 from "react"; //#region src/toggle-group/toggle-group.types.d.ts declare namespace IToggleGroup { export type IScoped = TProps & { __scopeToggleGroup?: Scope; }; export interface IContext { type: 'single' | 'multiple'; value: string[]; onItemActivate(value: string): void; onItemDeactivate(value: string): void; rovingFocus: boolean; disabled: boolean; dir: IDirection.Kind; } type PrimitiveDivProps = React$1.ComponentPropsWithoutRef; type PrimitiveButtonProps = React$1.ComponentPropsWithoutRef; type RovingFocusGroupProps = React$1.ComponentPropsWithoutRef; export interface IImpl extends PrimitiveDivProps { type: 'single' | 'multiple'; rovingFocus?: boolean; disabled?: boolean; orientation?: RovingFocusGroupProps['orientation']; dir?: RovingFocusGroupProps['dir']; loop?: RovingFocusGroupProps['loop']; } export interface ISingle extends IImpl { type: 'single'; value?: string; defaultValue?: string; onValueChange?(value: string): void; } export interface IMultiple extends IImpl { type: 'multiple'; value?: string[]; defaultValue?: string[]; onValueChange?(value: string[]): void; } export interface IImplPrivate extends IImpl { value: string[]; onItemActivate(value: string): void; onItemDeactivate(value: string): void; } export type IProps = ISingle | IMultiple; export interface IItemProps extends PrimitiveButtonProps { value: string; } export {}; } //#endregion export { IToggleGroup };