import { ApiMethod } from './Enums'; export interface IApiConfig { /** * appKey */ appKey: string; /** * appSecret */ appSecret: string; } export declare class RequestOptions { useLogBaseUrl?: boolean; getSimpleResponse?: boolean; } declare type authScopeType = 'snsapi_base' | 'snsapi_union_login'; export declare class JosCoreFactory { private static CORE_MAP; static putCore(apiConfig: IApiConfig, enableLog?: boolean): JosCore; static getCore(appKey: string): JosCore; static removeCore(appKey: string): boolean; } export declare class JosCore { private _http; private _apiConfig; private authUrl; private baseUrl; private logBaseUrl; private apiVersion; private enableLog; constructor(apiConfig: IApiConfig, enableLog?: boolean); generateOAuthUrl(redirect_uri: string, scope?: authScopeType, state?: string): string; getAccessToken(code: string): Promise; refreshAccessToken(refresh_token: string): Promise; private buildParams; private makeSign; request(apiMethod: ApiMethod, params: any, accessToken?: string, options?: RequestOptions): Promise; private getSimpleResponse; } export {};