import CacheInterface from "../Core/Contracts/CacheInterface"; import HttpClientInterface from "../Core/HttpClient/Contracts/HttpClientInterface"; import RefreshableAccessTokenInterface from "../Core/Contracts/RefreshableAccessTokenInterface"; import SuiteTicketInterface from "./Contracts/SuiteTicketInterface"; declare class SuiteAccessToken implements RefreshableAccessTokenInterface { protected suiteId: string; protected suiteSecret: string; protected suiteTicket: SuiteTicketInterface; protected key: string; protected cache: CacheInterface; protected httpClient: HttpClientInterface; constructor(suiteId: string, suiteSecret: string, suiteTicket: SuiteTicketInterface, key?: string, cache?: CacheInterface, httpClient?: HttpClientInterface); /** * 获取access_token的缓存名称 * @returns */ getKey(): string; /** * 设置access_token的缓存名称 * @param key * @returns */ setKey(key: string): this; getToken(): Promise; toQuery(): Promise>; refresh(): Promise; } export = SuiteAccessToken;