import React from 'react'; export interface SegmentedControlProps { children: React.ReactNode; } /** * `SegmentedControl` is a container component that is responsible for creating a * {@link SegmentedControlModel} and sharing it with its subcomponents using React context. It does * not represent a real element. * * ```tsx * {Child components} * ``` * * Alternatively, you may pass in a model using the [hoisted model * pattern](/getting-started/for-developers/resources/compound-components/#configuring-a-model). * * ```tsx * const model = useSegmentedControlModel({ * items: [], * }); * * {Child components} * ``` */ export declare const SegmentedControl: import("@workday/canvas-kit-react/common").ComponentM string; getTextValue: (item: any) => string; nonInteractiveIds: string[]; defaultItemHeight: number; shouldVirtualize: boolean; items: any[]; UNSTABLE_parentModel: { state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; } | undefined; }> & { onSelect?: ((data: { id: string; }, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onSelectAll?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onUnselectAll?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onSetSelectedIds?: ((data: string[] | "all", prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onRemove?: ((data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoTo?: ((data: { id: string; }, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToNext?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToPrevious?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToPreviousRow?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToNextRow?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToFirst?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToLast?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToFirstOfRow?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToLastOfRow?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToNextPage?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onGoToPreviousPage?: ((data: undefined, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onRegisterItem?: ((data: { id: string; textValue: string; }, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onUnregisterItem?: ((data: { id: string; }, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; onUpdateItemHeight?: ((data: { value: number; }, prevState: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => void) | undefined; } & { shouldSelect?: ((data: { id: string; }, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldSelectAll?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldUnselectAll?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldSetSelectedIds?: ((data: string[] | "all", state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldRemove?: ((data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoTo?: ((data: { id: string; }, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToNext?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToPrevious?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToPreviousRow?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToNextRow?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToFirst?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToLast?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToFirstOfRow?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToLastOfRow?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToNextPage?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldGoToPreviousPage?: ((data: undefined, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldRegisterItem?: ((data: { id: string; textValue: string; }, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldUnregisterItem?: ((data: { id: string; }, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; shouldUpdateItemHeight?: ((data: { value: number; }, state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }) => boolean) | undefined; }, { state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; UNSTABLE_parentModel: { state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; } | undefined; }> & { /** * `SegmentedControl.List` renders {@link Grid} under the hood. It is a container for * {@link SegmentedControlItem SegmentedControl.Item} subcomponents. * * ```tsx * {SegmentedControl.Items} * ``` */ List: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("./SegmentedControlList").SegmentedControlListProps, { state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; UNSTABLE_parentModel: { state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; } | undefined; }>; /** * `SegmentedControl.Item` is a `button` element built on `BaseButton`. `SegmentedControl.Item` * has a `data-id` prop to handle `onSelect` properly. * * ```tsx * Table * ``` */ Item: import("@workday/canvas-kit-react/common").ElementComponentM<"button", import("./SegmentedControlItem").ItemProps, { state: { disabled: boolean; size: "medium" | "small" | "large"; selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; UNSTABLE_parentModel: { state: { selectedIds: string[] | "all"; unselectedIds: string[]; cursorId: string | string[]; columnCount: number; pageSizeRef: React.MutableRefObject; cursorIndexRef: { readonly current: number; }; UNSTABLE_virtual: import("@tanstack/virtual-core").Virtualizer; UNSTABLE_defaultItemHeight: number; containerRef: React.RefObject; id: string; orientation: "horizontal" | "vertical"; indexRef: React.MutableRefObject; nonInteractiveIds: string[]; isVirtualized: boolean; items: import("../..").Item[]; }; events: { select(data: { id: string; }): void; selectAll(): void; unselectAll(): void; setSelectedIds(ids: string[] | "all"): void; remove(data: { id: string; nextId?: string | undefined; event?: Event | React.SyntheticEvent | undefined; }): void; goTo(data: { id: string; }): void; goToNext(): void; goToPrevious(): void; goToPreviousRow(): void; goToNextRow(): void; goToFirst(): void; goToLast(): void; goToFirstOfRow(): void; goToLastOfRow(): void; goToNextPage(): void; goToPreviousPage(): void; registerItem(data: { id: string; textValue: string; }): void; unregisterItem(data: { id: string; }): void; updateItemHeight(data: { value: number; }): void; }; selection: import("../..").SelectionManager; navigation: import("../..").NavigationManager; getId: (item: any) => string; getTextValue: (item: any) => string; } | undefined; }>; }; //# sourceMappingURL=SegmentedControl.d.ts.map