import { UrlParam, GetTokenData } from './lib/utils'; export default class ApiExecutor { appKey: string; appSecret: string; domain: string; constructor(params: { /** * 应用的AppKey */ appKey: string; /** * 应用的AppSecret */ appSecret: string; domain?: string; }); execute(api: string, params: UrlParam, access_token: string): Promise; refreshToken2AccessToken(refreshToken: string): Promise; code2RefreshToken(code: string, redirect_uri: string): Promise; private mergeApi; private mergeUrl; }