/** * Dynamically resolves Twitter GraphQL query IDs by fetching and parsing * the main JS bundle from x.com. * * Twitter periodically rotates these IDs, so hardcoding them causes breakage. * This resolver fetches the current IDs at runtime and caches them. * * @public */ export declare class GraphQLQueryIdResolver { private _cache; private _lastFetchTime; private _ttlMs; private _fetching; constructor(ttlMs?: number); /** Check if cache is still valid */ private _isCacheValid; /** * Resolve query IDs from a Document (x.com homepage). * Finds the main JS bundle URL from script tags, fetches it, * and extracts all queryId/operationName pairs. */ resolve(document: Document): Promise; private _doResolve; /** * Get the current query ID for an operation name. * Returns undefined if not resolved yet. */ getQueryId(operationName: string): string | undefined; /** Invalidate the cache (e.g., on auth errors that suggest ID rotation) */ invalidate(): void; /** Whether we have resolved IDs */ get hasResolved(): boolean; }