UNPKG

cookies-next

Version:

Set, Get, Remove cookies on both client and server side with Next.js

9 lines (8 loc) 614 B
import type { OptionsType, TmpCookiesObj, CookieValueTypes } from '../common/types'; declare const getCookies: (options?: OptionsType) => Promise<TmpCookiesObj>; declare const getCookie: (key: string, options?: OptionsType) => Promise<CookieValueTypes>; declare const setCookie: (key: string, data: any, options?: OptionsType) => Promise<void>; declare const deleteCookie: (key: string, options?: OptionsType) => Promise<void>; declare const hasCookie: (key: string, options?: OptionsType) => Promise<boolean>; export * from '../common/types'; export { getCookies, getCookie, setCookie, deleteCookie, hasCookie };