import { AxiosRequestHeaders } from 'axios'; import { Cookie } from 'cookiejar'; import { EAuthenticationType } from '../../enums/Authentication'; import { IAuthCredential } from '../../types/auth/AuthCredential'; /** * The credentials for authenticating against Twitter. * * Depending on which tokens are present, the authentication type is determined as follows: * - authToken, guestToken =\> Guest authentication. * - authToken, csrfToken, cookie =\> User authentication. * - authToken, guestToken, cookie =\> Guest authentication while logging in. * * @public */ export declare class AuthCredential implements IAuthCredential { private static readonly _authTokens; private static _currentAuthTokenIndex; authToken?: string; authenticationType?: EAuthenticationType; cookies?: string; csrfToken?: string; guestToken?: string; /** * @param cookies - The list of cookies to be used for authenticating against Twitter. * @param guestToken - The guest token to be used to authenticate a guest session. */ constructor(cookies?: Cookie[], guestToken?: string); /** * Switches the current auth token to the next one. */ static switchAuthToken(): void; /** * @returns The HTTP header representation of 'this' object. */ toHeader(): AxiosRequestHeaders; }