import React, { Component } from 'react';
import PopupWindow from '../../util/PopupWindow';
declare const defaultProps: {
    buttonText: string;
    scope: string;
    state: string;
    className: string;
    children: React.ReactNode;
    onRequest: () => void;
};
declare type DefaultProps = Readonly<typeof defaultProps>;
export declare type OAuth2LoginProps = {
    authorizationUrl: string;
    clientId: string;
    redirectUri: string;
    responseType: 'code' | 'token';
    onSuccess: (data: any) => any;
    onFailure: (error: any) => any;
} & DefaultProps;
export declare class OAuth2Login extends Component<OAuth2LoginProps> {
    popup?: PopupWindow;
    static defaultProps: {
        buttonText: string;
        scope: string;
        state: string;
        className: string;
        children: React.ReactNode;
        onRequest: () => void;
    };
    constructor(props: OAuth2LoginProps);
    onBtnClick(): void;
    onRequest(): void;
    onSuccess(data: any): any;
    onFailure(error: any): void;
    render(): JSX.Element;
}
export {};
//# sourceMappingURL=OAuthLogin.d.ts.map