21 lines
1.5 KiB
TypeScript
21 lines
1.5 KiB
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;
|
|
declare const useGetCookies: () => (_options?: OptionsType) => TmpCookiesObj | undefined;
|
|
declare const useGetCookie: () => (key: string, options?: OptionsType) => CookieValueTypes;
|
|
declare const useHasCookie: () => (key: string, options?: OptionsType) => boolean;
|
|
declare const useSetCookie: () => (key: string, data: any, options?: OptionsType) => void;
|
|
declare const useDeleteCookie: () => (key: string, options?: OptionsType) => void;
|
|
declare const useCookiesNext: () => {
|
|
getCookies: (_options?: OptionsType) => TmpCookiesObj | undefined;
|
|
getCookie: (key: string, options?: OptionsType) => CookieValueTypes;
|
|
hasCookie: (key: string, options?: OptionsType) => boolean;
|
|
setCookie: (key: string, data: any, options?: OptionsType) => void;
|
|
deleteCookie: (key: string, options?: OptionsType) => void;
|
|
};
|
|
export * from '../common/types';
|
|
export { getCookies, getCookie, setCookie, deleteCookie, hasCookie, useGetCookies, useHasCookie, useSetCookie, useGetCookie, useDeleteCookie, useCookiesNext, };
|