import * as Cookies from 'js-cookie'; import { BaseService } from '../core/service'; import StoreFront from '../storefront'; declare class CookieService extends BaseService { constructor(app: StoreFront, opts: CookieService.Options); init(): void; /** * Get the value of a cookie with the given name. * * @param key The name of the cookie to get. * @return The value of the cookie given by `key`. */ get(key: string): string | undefined; /** * Get all cookies. * * @return An object with all the cookie values keyed by their names. */ get(): { [key: string]: string; }; /** * Set the value of a cookie. * * @param key The name of the cookie to set. * @param value The value of the cookie to set. Objects and arrays will be encoded as JSON before being stored. * @param options The attributes of the cookie. */ set(key: string, value: any, options?: Cookies.CookieAttributes): void; /** * Delete the cookie with the given name. * * @param key The name of the cookie to delete. * @param options The attributes of the cookie. */ remove(key: string, options?: Cookies.CookieAttributes): void; } declare namespace CookieService { interface Options { } } export default CookieService;