1 | import { Cookie, CookieSetOptions, CookieGetOptions } from 'universal-cookie';
|
2 | export default function useCookies<T extends string, U = {
|
3 | [K in T]?: any;
|
4 | }>(dependencies?: T[], options?: CookieGetOptions): [
|
5 | U,
|
6 | (name: T, value: Cookie, options?: CookieSetOptions) => void,
|
7 | (name: T, options?: CookieSetOptions) => void,
|
8 | () => void
|
9 | ];
|