/** * Build a `Set-Cookie` header value. Attribute violations (bad * SameSite, __Host- / __Secure- prefix, unsafe Domain / Path) surface * as {@link SessionError} `INVALID_ARGUMENT` at boot time. * * @param {string} name * @param {string} value * @param {CookieOptions} [options] * @returns {string} */ export function serialiseCookie(name: string, value: string, options?: CookieOptions): string; /** * Build a `Set-Cookie` value that instructs the browser to delete the * cookie. * * @param {string} name * @param {CookieOptions} [options] * @returns {string} */ export function serialiseDeleteCookie(name: string, options?: CookieOptions): string; /** * @typedef {import('@exortek/shared/cookie').CookieOptions} CookieOptions */ /** * Parse a `Cookie:` request header into a name → value map. Pure * re-export of the shared parser — never throws. * * @param {string | null | undefined} header * @returns {Record} */ export const parseCookies: typeof sharedParseCookies; export type CookieOptions = import("@exortek/shared/cookie").CookieOptions; import { parseCookies as sharedParseCookies } from '@exortek/shared/cookie';