/** * Copyright (c) 2019-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ export interface CookieParams { cookieName: string; cookieValue: string; removeCookie?: boolean; lax?: boolean; path?: string; expiration?: Date | string; } /** Client/Browser only */ export declare const setCookie: (params: CookieParams) => void; export declare const getCookieString: ({ cookieName, cookieValue, removeCookie, lax, path, expiration, }: CookieParams) => string; /** * Missing cookie returns `null`, Cookie without value returns `undefined` otherwise cookie value * @param cookieName name of cookie to fetch * @param cookies string of cookies (usually `document.cookie` if in browser) */ export declare const getCookie: (cookieName: string, cookies: string) => string | undefined; export declare const isValidCookie: (cookieName: string, cookies: string) => boolean; /** Client/Browser only */ export declare const deleteCookie: (cookieName: string) => void;