/* Type definitions for react-native-qrcode-scanner 1.1.0
 * Definitions by: Jan Hesters <https://github.com/janhesters/>
 * If you modify this file, put your GitHub info here as well (for easy contacting purposes)
 */
import { Component } from "react";
import { ViewStyle, StyleProp } from "react-native";

interface Point<T = number> {
  x: T,
  y: T
}

interface Size<T = number> {
  width: T;
  height: T;
}

export interface Event {
  data: any,
  /**
   * @description For Android use `[Point<string>, Point<string>]`
   * @description For iOS use `{ origin: Point<string>, size: Size<string> }`
   */
  bounds: [Point<string>, Point<string>] | { origin: Point<string>, size: Size<string> }
}

export interface RNSecureTextProps {
        containerStyle: StyleProp<ViewStyle>,
        inputStyle: StyleProp<ViewStyle>,
        placeholder: string,
        placeholderTextColor: JSX.Element | string,
        iconColor: string,
        iconSize: JSX.Element | string,
        password: string,
        setPassword(e: Event): void,
        submit(e: Event): void,
}



export interface RNSecureTextState {
  readonly showSenha: boolean;
}

export default class InputSecureText extends Component<RNSecureTextProps, RNSecureTextState> {
    _renderInput(): JSX.Element | null;
}
