import { ResponseResult } from './typings'; import { TwitterAccessTokenResponse, TwitterBearerTokenResponse, TwitterGetAccessTokenOptions, TwitterGetRequestTokenAndAuthenticateUrlParamters, TwitterRequestTokenResponse, TwitterRequestTokenResponseAndAuthenticateUrl } from './twitter.typings'; import { OAuth } from './oauth-1.0a'; export declare class TwitterAuth { private readonly subdomain; private readonly oauth; get url(): string; constructor(options: { oauth: OAuth; subdomain: string; }); getBearerToken(): Promise>; getRequestToken(twitterCallbackUrl: string | 'oob'): Promise>; /** * @see {https://developer.twitter.com/en/docs/authentication/api-reference/authenticate} */ getRequestTokenAndAuthenticateUrl(twitterCallbackUrl: string | 'oob', parameters?: TwitterGetRequestTokenAndAuthenticateUrlParamters): Promise>; getAccessToken(options: TwitterGetAccessTokenOptions): Promise>; }