/** * An object representing a cookie * * For Boolean properties we use `true`/`undefined` instead of `true`/`false` */ export type CookieConfig = { name: string; value: string; "Max-Age"?: number; Path?: string; /** * Leave property out if the cookie is not HTTP only */ HttpOnly?: true; SameSite?: "strict" | "lax" | "none"; }; /** * Returns a cookie string from a cookie config * * Does not perform any value-escaping or sanitization */ export declare const serializeCookie: ({ name, value, ...rest }: CookieConfig) => string;