import type { BuilderReturn, Orientation } from '../../internal/types.js'; import type { Writable } from 'svelte/store'; import type { createToggleGroup } from './create.js'; import type { ChangeFn } from '../../internal/helpers/index.js'; export type { ToggleGroupComponentEvents } from './events.js'; export type ToggleGroupType = 'single' | 'multiple'; export type CreateToggleGroupProps = { defaultValue?: T extends 'single' ? string : string[]; value?: Writable; onValueChange?: ChangeFn; type?: T; disabled?: boolean; rovingFocus?: boolean; loop?: boolean; orientation?: Orientation; }; export type ToggleGroupItemProps = { value: string; disabled?: boolean; } | string; export type ToggleGroup = BuilderReturn>; export type ToggleGroupElements = BuilderReturn>['elements']; export type ToggleGroupOptions = BuilderReturn>['options']; export type ToggleGroupStates = BuilderReturn>['states']; export type ToggleGroupHelpers = BuilderReturn>['helpers'];