/** * Fetches X's responsive web app shell and returns the HTML document. * * The `/home` route serves the full client bundle whose inline runtime * exposes the ondemand chunk map and guest token required for transaction * ID generation, even when the request is unauthenticated. * * @returns Promise resolving to the Document object from X's responsive web app * @throws {XHomePageFetchError} If the request to X's home route fails. */ declare function fetchXDocument(): Promise; /** * Fetches X's responsive web app shell and returns the HTML document. * * @deprecated X no longer performs a domain migration step. Use {@link fetchXDocument} * instead. This function is kept only for backward compatibility and * simply delegates to {@link fetchXDocument}. * * @returns Promise resolving to the Document object from X's responsive web app * @throws {XHomePageFetchError} If the request to X's home route fails. */ declare function handleXMigration(): Promise; /** * Activates a guest token via the X guest activate API. * * @returns Promise resolving to the guest token string, or null on failure. */ declare function activateGuestToken(): Promise; /** * Converts a floating point number to hexadecimal string representation * * @param x Floating point number to convert * @returns Hexadecimal string representation of the number */ declare function floatToHex(x: number): string; /** * Determines if a number is odd and returns a specific value * * @param num Number to check * @returns -1.0 if odd, 0.0 if even */ declare function isOdd(num: number): number; export { activateGuestToken, fetchXDocument, floatToHex, handleXMigration, isOdd, }; //# sourceMappingURL=utils.d.ts.map