import { Orientation } from '@kobalte/utils'; import * as solid_js from 'solid-js'; import { JSX, ValidComponent, Accessor } from 'solid-js'; import { ElementOf, PolymorphicProps } from './polymorphic/index.js'; import { b as ToggleButtonRootOptions, d as ToggleButtonRootRenderProps } from './toggle-button-root-1cfacf95.js'; import { S as SelectionMode, L as ListState } from './create-list-state-d9a0f1f2.js'; interface ToggleGroupItemOptions extends Omit { /** A string value for the toggle group item. All items within a toggle group should use a unique value. */ value: string; } interface ToggleGroupItemCommonProps { id: string; ref: T | ((el: T) => void); disabled: boolean | undefined; onPointerDown: JSX.EventHandlerUnion; onPointerUp: JSX.EventHandlerUnion; onClick: JSX.EventHandlerUnion; onKeyDown: JSX.EventHandlerUnion; onMouseDown: JSX.EventHandlerUnion; onFocus: JSX.EventHandlerUnion; } interface ToggleGroupItemRenderProps extends ToggleGroupItemCommonProps, ToggleButtonRootRenderProps { tabIndex: number | undefined; "data-orientation": Orientation; } type ToggleGroupItemProps = ToggleGroupItemOptions & Partial>>; declare function ToggleGroupItem(props: PolymorphicProps>): JSX.Element; interface ToggleGroupBaseOptions { /** The controlled value of the toggle group. */ value?: string[]; /** * The value of the select when initially rendered. * Useful when you do not need to control the value. */ defaultValue?: string[]; /** Event handler called when the value changes. */ onChange?: (value: string[]) => void; /** The type of selection that is allowed in the toggle group. */ selectionMode?: Exclude; /** Whether the toggle group is disabled. */ disabled?: boolean; /** The axis the toggle group items should align with. */ orientation?: Orientation; } interface ToggleGroupSingleOptions { /** The controlled value of the toggle group. */ value?: string | null; /** * The value of the select when initially rendered. * Useful when you do not need to control the value. */ defaultValue?: string; /** Event handler called when the value changes. */ onChange?: (value: string | null) => void; /** Whether the toggle group allow multiple selection. */ multiple?: false; } interface ToggleGroupMultipleOptions { /** The controlled value of the toggle group select. */ value?: string[]; /** * The value of the select when initially rendered. * Useful when you do not need to control the value. */ defaultValue?: string[]; /** Event handler called when the value changes. */ onChange?: (value: string[]) => void; /** Whether the toggle group allow multiple selection. */ multiple: true; } type ToggleGroupRootOptions = (ToggleGroupSingleOptions | ToggleGroupMultipleOptions) & Omit; interface ToggleGroupRootCommonProps { } interface ToggleGroupRootRenderProps extends ToggleGroupRootCommonProps { } type ToggleGroupRootProps = ToggleGroupRootOptions & Partial>>; declare function ToggleGroup$1(props: PolymorphicProps>): solid_js.JSX.Element; interface ToggleGroupContextValue { isMultiple: Accessor; isDisabled: Accessor; listState: Accessor; generateId: (part: string) => string; orientation: Accessor; } declare function useToggleGroupContext(): ToggleGroupContextValue; declare const ToggleGroup: typeof ToggleGroup$1 & { Item: typeof ToggleGroupItem; }; declare const index_ToggleGroup: typeof ToggleGroup; type index_ToggleGroupContextValue = ToggleGroupContextValue; type index_ToggleGroupItemCommonProps = ToggleGroupItemCommonProps; type index_ToggleGroupItemOptions = ToggleGroupItemOptions; type index_ToggleGroupItemProps = ToggleGroupItemProps; type index_ToggleGroupItemRenderProps = ToggleGroupItemRenderProps; type index_ToggleGroupRootCommonProps = ToggleGroupRootCommonProps; type index_ToggleGroupRootOptions = ToggleGroupRootOptions; type index_ToggleGroupRootProps = ToggleGroupRootProps; type index_ToggleGroupRootRenderProps = ToggleGroupRootRenderProps; declare const index_useToggleGroupContext: typeof useToggleGroupContext; declare namespace index { export { ToggleGroupItem as Item, ToggleGroup$1 as Root, index_ToggleGroup as ToggleGroup, index_ToggleGroupContextValue as ToggleGroupContextValue, index_ToggleGroupItemCommonProps as ToggleGroupItemCommonProps, index_ToggleGroupItemOptions as ToggleGroupItemOptions, index_ToggleGroupItemProps as ToggleGroupItemProps, index_ToggleGroupItemRenderProps as ToggleGroupItemRenderProps, index_ToggleGroupRootCommonProps as ToggleGroupRootCommonProps, index_ToggleGroupRootOptions as ToggleGroupRootOptions, index_ToggleGroupRootProps as ToggleGroupRootProps, index_ToggleGroupRootRenderProps as ToggleGroupRootRenderProps, index_useToggleGroupContext as useToggleGroupContext, }; } export { ToggleGroupItem as T, ToggleGroup$1 as a, ToggleGroupItemOptions as b, ToggleGroupItemCommonProps as c, ToggleGroupItemRenderProps as d, ToggleGroupItemProps as e, ToggleGroupRootOptions as f, ToggleGroupRootCommonProps as g, ToggleGroupRootRenderProps as h, index as i, ToggleGroupRootProps as j, ToggleGroup as k, ToggleGroupContextValue as l, useToggleGroupContext as u };