import { ICookie } from './cookie.interface'; /** * Represents a cookie object. * * @class * @category Main */ export declare class Cookie { /** * Parses a cookie string and returns a parsed ICookie object. * * @param cookieString - The cookie string to be parsed. * @returns {string} - A parsed ICookie object. * @throws {HoyoAPIError} when ltuid or ltoken keys are not found in the cookie string. */ static parseCookieString(cookieString: string): ICookie; /** * Converts an `ICookie` object into a cookie string. * @param {ICookie} cookie - The `ICookie` object to convert. * @returns {string} A string representing the cookie. * @throws {HoyoAPIError} If the `ltuid` or `ltoken` key is missing in the `ICookie` object. */ static parseCookie(cookie: ICookie): string; }