import Base from '../base'; import MsgCrypto from './msg-crypto'; import { MiniappType } from '../../types'; import { AuthorizerAppId, CommonOptions, Miniapp3rdInitialOptions } from '../../types/definition'; declare class WeminiappOpenapi extends Base { miniappType: MiniappType; accessTokenRefreshCron: string; appId: string; appSecret: string; messageToken: string; encodingAESKey: string; oldEncodingAESKey: string; agencyId?: string; apiKey?: string; msgCrypto: MsgCrypto; constructor(options: Miniapp3rdInitialOptions[MiniappType.WEMINIAPP] & CommonOptions); refreshAccessToken(ticket: string): Promise; getPreauthCode(): Promise; getAuthorizationInfo(authorizationCode: string): Promise; refreshAuthorizerAccessToken(refreshToken: string, authorizerAppId: AuthorizerAppId): Promise; getAuthorizerInfo(authorizerAppId: AuthorizerAppId): Promise; oauth(query: any, body: any): Promise<{ appId: any; createTime: any; infoType: any; componentVerifyTicket: any; authorizerAppId: any; authorizationCode: any; authorizationCodeExpiredTime: any; preauthCode: any; } | undefined>; message(query: any, body: any, authorizerAppId: AuthorizerAppId): Promise; getAuthLogin(redirectUri: string, authType?: number | string, bizAppId?: string): Promise; getAuthBind(redirectUri: string, authType?: number | string, bizAppId?: string): Promise; } export default WeminiappOpenapi;