/** * Cookie serialization helpers shared by the request context, session, and CSRF * middleware. * * @module bquery/server */ import type { ServerCookieOptions } from './types'; /** * Serialize a `Set-Cookie` header value, validating the name and attribute * values so request-controlled data can never inject extra cookie attributes. */ export declare const serializeCookie: (name: string, value: string, options?: ServerCookieOptions) => string; /** * Append a `Set-Cookie` header to an existing response without collapsing it * into other cookies. * * Responses built by `createServer()` expose mutable headers, so the cookie is * appended in place. When the headers are immutable (e.g. a response produced by * `Response.redirect()`), the response is reconstructed around the same body so * the cookie is still emitted. */ export declare const appendSetCookie: (response: Response, cookie: string) => Response; //# sourceMappingURL=cookies.d.ts.map