import { FractalSharedStyleProps } from '../../../sharedProps'; import { LayerProps } from '../../layout/Layer/types'; declare type TextStyle = Omit; interface TextStyleProps { textStyle?: TextStyle; activeTextStyle?: TextStyle; } interface BaseControlTabProps { value: string; onSelect: () => void; tintColor?: string; hideDivider?: boolean; } export interface BaseSegmentedControlTabProps extends TextStyle, BaseControlTabProps { selected: boolean; } export interface SegmentedControlTabProps extends TextStyleProps, BaseControlTabProps { selected: boolean; } export interface BaseSegmentedControlProps extends TextStyleProps, Omit { /** * The labels for the control's segment buttons, in order. */ values: string[]; /** * The index in `props.values` of the segment to be selected. */ selectedIndex: number; /** * Accent color of the control. */ tintColor?: string; onTabPress: (index: number) => void; } export interface SegmentedControlProps extends Omit { /** * The index in `props.values` of the segment to be (pre)selected. */ defaultSelectedIndex?: number; /** * The index in `props.values` of the segment to be selected. */ selectedIndex?: number; /** * Callback that is called when the user taps a segment; * passes the segment's value as an argument */ onValueChange?: (value: string) => void; /** * Callback that is called when the user taps a segment; * passes the event as an argument */ onChange?: (value: string, index: number) => void; } export {};