import { Request } from '../structures/Request'; import { BaseRoute } from './BaseRoute'; export declare class Authorization extends BaseRoute { /** * @constructor * @param {Request} request A request instance */ constructor(request: Request); /** * Get the access token for the given client * * @param {String} clientId Oauth app client id * @param {String} clientSecret Oauth app client secret * @param {String} code Code given in redirect url */ accessToken(clientId: string, clientSecret: string, code: string): Promise>; /** * Get the user that this token belongs to */ getAuthorizedUser(): Promise>; /** * Get the authorized teams for this token */ getAuthorizedTeams(): Promise>; }