import { ReactElement } from 'react'; import { ColorPropsValue, DivProps, Id, Obj, Size } from '../../types'; import { SegmentedOption, SegmentedOptionProps } from './SegmentedOption'; export type ISegmentedOption = SegmentedOptionProps & Obj; export interface SegmentedProps extends Omit { options?: O[]; orientation?: 'horizontal' | 'vertical'; size?: Size; labelKey?: keyof O; primaryKey?: keyof O; fullWidth?: boolean; /** 指示器的颜色,默认为`background.content` */ indicatorColor?: ColorPropsValue; defaultValue?: V; value?: V; onChange?(value: V): void; readOnly?: boolean; disabled?: boolean; } export declare const Segmented: { (props: SegmentedProps): ReactElement; Option: typeof SegmentedOption; };