export type Decoder = (value: string) => T; export type Encoder = (value: T) => string; export interface Cookies { [key: string]: T; } export interface CookieOptions { domain?: string; path?: string; expires?: Date | string | number; "max-age"?: number; secure?: boolean; samesite?: string; partitioned?: boolean; }