import { RettiwtConfig } from '../../models/RettiwtConfig'; import { ITidProvider } from '../../types/auth/TidProvider'; /** * Handles transaction ID generation for requests to Twitter. * * @internal */ export declare class TidService implements ITidProvider { private readonly _cdnUrl; private readonly _config; private readonly _requestHeaders; private _dynamicArgs?; /** * @param config - The config for Rettiwt. */ constructor(config: RettiwtConfig); /** * Fetches the dynamic args embedded in the homepage. * * @returns The new dynamic args. */ private getDynamicArgs; /** * Fetches the HTML content of Twitter's homepage. * * @returns The stringified HTML content of the homepage. */ private getHomepageHtml; private getKeyBytesIndices; private parseFrameElement; /** * Generate an `x-client-transaction-id` for the specific URL method and path. * * @param method - The target method. * @param path - The target path. * * @returns The specific `x-client-transaction-id` token. */ generate(method: string, path: string): Promise; /** * Refreshes the dynamic args from the homepage. */ refreshDynamicArgs(): Promise; }