import * as React from 'react'; import { TextStyle, ViewStyle } from 'react-native'; export interface IMDCaptchaProps { styles?: IMDCaptchaStyle; isVisible?: boolean; isView?: boolean; maxlength?: number; title?: string; brief?: string; error?: string; countdownNumber?: number; security?: boolean; system?: boolean; autoCountdown?: boolean; countNormalText?: string; countActiveText?: string; onShow?: () => void; onDismiss?: () => void; onClose?: () => void; onSend?: (countdown: () => void) => void; onSubmit?: (text: string) => void; } export interface IMDCaptchaState { error: string; } export interface IMDCaptchaStyle { wrapper?: ViewStyle; codeboxWrapper?: ViewStyle; title?: TextStyle; brief?: TextStyle; error?: TextStyle; children?: TextStyle; countNormal?: TextStyle; countActive?: TextStyle; footer?: ViewStyle; } export declare const MDCaptchaStyles: IMDCaptchaStyle; export default class MDCaptcha extends React.Component { static defaultProps: { styles: IMDCaptchaStyle; isVisible: boolean; maxlength: number; countdownNumber: number; security: boolean; system: boolean; autoCountdown: boolean; isView: boolean; countNormalText: string; countActiveText: string; }; constructor(props: IMDCaptchaProps); private currentInput; private countdown; render(): JSX.Element; componentDidMount(): void; countDown(): void; resetCount(): void; setError(message: string): void; private renderContent; private renderChildren; private renderCloseButton; private renderBrief; private renderCodebox; private onChangeText; }