1/// <reference types="node" /> 2 3import type { Headers } from './fetch' 4 5export interface Cookie { 6 name: string 7 value: string 8 expires?: Date | number 9 maxAge?: number 10 domain?: string 11 path?: string 12 secure?: boolean 13 httpOnly?: boolean 14 sameSite?: 'Strict' | 'Lax' | 'None' 15 unparsed?: string[] 16} 17 18export function deleteCookie ( 19 headers: Headers, 20 name: string, 21 attributes?: { name?: string, domain?: string } 22): void 23 24export function getCookies (headers: Headers): Record<string, string> 25 26export function getSetCookies (headers: Headers): Cookie[] 27 28export function setCookie (headers: Headers, cookie: Cookie): void 29