import * as React from 'react'; import { StyleProp, Switch as NativeSwitch, ViewStyle } from 'react-native'; declare type Props = React.ComponentPropsWithRef & { /** * Disable toggling the switch. */ disabled?: boolean; /** * Value of the switch, true means 'on', false means 'off'. */ value?: boolean; /** * Custom color for switch. */ color?: string; /** * Callback called with the new value when it changes. */ onValueChange?: Function; style?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }; declare const _default: (React.ComponentClass & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & (({ value, disabled, onValueChange, color, theme, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent & (({ value, disabled, onValueChange, color, theme, ...rest }: Props) => JSX.Element)), {}>) | (React.FunctionComponent & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & (({ value, disabled, onValueChange, color, theme, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent & (({ value, disabled, onValueChange, color, theme, ...rest }: Props) => JSX.Element)), {}>); export default _default;