import React, { ComponentProps, FunctionComponent } from 'react'; import { PreferenceDropdown } from './PreferenceDropdown'; import { PreferenceKeybinding } from './PreferenceKeybinding'; import { PreferenceNumber } from './PreferenceNumber'; import { PreferenceSwitch } from './PreferenceSwitch'; import { PreferenceText } from './PreferenceText'; type PreferenceType = 'boolean' | 'dropdown' | 'keybinding' | 'number' | 'string'; type PreferenceProps = { className?: string; style?: React.CSSProperties; innerClassName?: string; innerStyle?: React.CSSProperties; title?: string; tooltip?: string; options?: any[]; type: TString; }; export type BooleanPreference = PreferenceProps<'boolean'> & ComponentProps; export type StringPreference = PreferenceProps<'string'> & ComponentProps; export type DropdownPreference = PreferenceProps<'dropdown'> & ComponentProps; export type KeybindingPreference = PreferenceProps<'keybinding'> & ComponentProps; export type NumberPreference = PreferenceProps<'number'> & ComponentProps; export type Props = BooleanPreference | StringPreference | DropdownPreference | KeybindingPreference | NumberPreference; export declare const Preference: FunctionComponent; export {};