import * as React from 'react';
import { Subtract } from 'utility-types';
import { CaptchaProps } from './ReCaptcha';
declare const withReCaptcha: <P extends CaptchaProps>(Component: React.ComponentType<P>) => {
    new (props: Subtract<P, CaptchaProps> | Readonly<Subtract<P, CaptchaProps>>): {
        render(): React.ReactNode;
        context: unknown;
        setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Subtract<P, CaptchaProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
        forceUpdate(callback?: (() => void) | undefined): void;
        readonly props: Readonly<Subtract<P, CaptchaProps>>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<Subtract<P, CaptchaProps>>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<Subtract<P, CaptchaProps>>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextState: Readonly<{}>, nextContext: any): void;
    };
    new (props: Subtract<P, CaptchaProps>, context: any): {
        render(): React.ReactNode;
        context: unknown;
        setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Subtract<P, CaptchaProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
        forceUpdate(callback?: (() => void) | undefined): void;
        readonly props: Readonly<Subtract<P, CaptchaProps>>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<Subtract<P, CaptchaProps>>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<Subtract<P, CaptchaProps>>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<Subtract<P, CaptchaProps>>, nextState: Readonly<{}>, nextContext: any): void;
    };
    contextType?: React.Context<any> | undefined;
};
export default withReCaptcha;
