import * as cookie from "cookie";
export type Encode = cookie.SerializeOptions;
export type Decode = (value: string) => any;
type Options = {
    decode?: Decode;
    encode?: Encode;
};
export declare function useCookieState<T = string>(key: string, initialValue: T, options?: Options): [T, (value: T, encode?: Encode) => void];
export {};
