import { default as React } from 'react'; import { ShapeType, SizeType } from '../const/types.cjs'; import { IconType } from '../icon/index.cjs'; export type SegmentedValue = string | number; export interface SegmentedOption { label?: React.ReactNode; value: SegmentedValue; icon?: IconType[]; disabled?: boolean; [key: string]: unknown; } export interface SegmentedProps extends Omit, "defaultValue" | "onChange" | "defaultChecked"> { value?: SegmentedValue; options?: SegmentedOption[]; disabled?: boolean; readOnly?: boolean; block?: boolean; direction?: "horizontal" | "vertical"; size?: SizeType; shape?: ShapeType; onChange?: (value: SegmentedValue) => void; renderLabel?: (option: SegmentedOption, selected: boolean) => React.ReactNode; } declare const _default: ({ value, options, disabled, readOnly, block, direction, size: sizeProp, shape: shapeProp, onChange, renderLabel, className, onKeyDown, ...rest }: SegmentedProps) => React.JSX.Element; export default _default;