/**
 * @author Javen
 * @copyright javendev@126.com
 * @description 身份验证
 */
export declare class QyOauthApi {
    private static authorizeUrl;
    private static qrConnectUrl;
    /**
     * 构造网页授权链接
     * @param corpId 企业的 corpId
     * @param redirectUri 授权后重定向的回调链接地址
     * @param state 重定向后会带上state参数，企业可以填写a-zA-Z0-9的参数值，长度不可超过128个字节
     */
    static getAuthorizeUrl(corpId: string, redirectUri: string, state?: string): string;
    static getQrConnect(corpId: string, agentId: string, redirectUri: string, state?: string): string;
    private static getUserInfoUrl;
    /**
     * 根据 code 获取成员信息
     * @param code 通过成员授权获取到的 code
     */
    static getUserInfo(code: string): Promise<any>;
}
