import { ReactElement } from 'react'; import { TextStyle, ViewStyle, StyleProp } from 'react-native'; export interface ButtonProps { /** * Disabled state of button. * */ disabled?: boolean; /** * Loading state of button. * */ loading?: boolean; /** * Set the handler to handle press event. */ onPress: () => void; /** * Testing id of component */ testID?: string; /** * Button label * */ text: string; /** * style of button label * */ textStyle?: StyleProp; /** * button type * */ variant?: 'outlined' | 'filled'; /** * style of outer element * */ wrapperStyle?: StyleProp; } declare const Button: ({ disabled, loading, onPress, testID, text, textStyle, variant, wrapperStyle, }: ButtonProps) => ReactElement; export default Button;