import { BiDi } from "../../index"; import { DeleteCookiesResult, StorageDeleteCookiesParameters, StorageGetCookiesParameters, StorageGetCookiesResult, StorageSetCookieParameters, StorageSetCookieResult } from "./types"; /** * This class provides methods that allow the manipulation of cookies */ export default class Storage { private _ws; /** * Initializes a new instance of Storage * @param {BiDi} BidiConnection - A bidirectional connection object */ constructor(BidiConnection: BiDi); /** * Gets cookies from the storage * @param {StorageGetCookiesParameters} params - Parameters required to get the cookies * @return {Promise} A promise that resolves to the result of getting the cookies */ getCookies(params: StorageGetCookiesParameters): Promise; /** * Sets a cookie in the storage * @param {StorageSetCookieParameters} params - Parameters required to set the cookie * @return {Promise}A promise that resolves to the result of setting the cookie */ setCookie(params: StorageSetCookieParameters): Promise; /** * Deletes cookies from the storage * @param {StorageDeleteCookiesParameters} params - Parameters required to delete the cookies * @return {Promise} A promise that resolves to the result of deleting the cookies */ deleteCookies(params: StorageDeleteCookiesParameters): Promise; }