import * as React from 'react'; export type SemanticName = 'item' | 'label'; export type SegmentedValue = string | number; export type SegmentedRawOption = SegmentedValue; export interface SegmentedLabeledOption { className?: string; disabled?: boolean; label: React.ReactNode; value: ValueType; /** * html `title` property for label */ title?: string; } type ItemRender = (node: React.ReactNode, info: { item: SegmentedLabeledOption; }) => React.ReactNode; type SegmentedOptions = (T | SegmentedLabeledOption)[]; export interface SegmentedProps extends Omit, 'defaultValue' | 'value' | 'onChange'> { options: SegmentedOptions; defaultValue?: ValueType; value?: ValueType; onChange?: (value: ValueType) => void; disabled?: boolean; prefixCls?: string; direction?: 'ltr' | 'rtl'; motionName?: string; vertical?: boolean; name?: string; classNames?: Partial>; styles?: Partial>; itemRender?: ItemRender; } declare const Segmented: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const TypedSegmented: (props: SegmentedProps & { ref?: React.ForwardedRef; }) => ReturnType; export default TypedSegmented;