cookies-next
Version:
Set, Get, Remove cookies on both client and server side with Next.js
8 lines (7 loc) • 549 B
TypeScript
import type { OptionsType, TmpCookiesObj, CookieValueTypes } from '../common/types';
declare const getCookies: (_options?: OptionsType) => TmpCookiesObj | undefined;
declare const getCookie: (key: string, options?: OptionsType) => CookieValueTypes;
declare const setCookie: (key: string, data: any, options?: OptionsType) => void;
declare const deleteCookie: (key: string, options?: OptionsType) => void;
declare const hasCookie: (key: string, options?: OptionsType) => boolean;
export { getCookies, getCookie, setCookie, deleteCookie, hasCookie };