1 | import Cookies from 'js-cookie';
|
2 | export type State = string | undefined;
|
3 | export interface Options extends Cookies.CookieAttributes {
|
4 | defaultValue?: State | (() => State);
|
5 | }
|
6 | declare function useCookieState(cookieKey: string, options?: Options): readonly [State, (newValue: State | ((prevState: State) => State), newOptions?: Cookies.CookieAttributes) => void];
|
7 | export default useCookieState;
|