/** * Parse a `Cookie` header into a record. * * Was copy-pasted into both servers; identical in both, which is the mild case * of the same problem this module exists to fix. */ export declare function parseCookieHeader(header: string | null | undefined): Record; /** * Build the object both servers publish as `globalThis.requestContext`. * * `read` is called per access rather than captured, because the snapshot is * replaced between requests — capturing it would pin the first request's * cookies onto every later one. */ export declare function createRequestContext(read: () => RequestContextSnapshot | undefined): StacksRequestContext; /** * Install the context as the `requestContext` global and return it. * * Both servers call exactly this, so neither can publish a differently-shaped * object by accident. */ export declare function installRequestContext(read: () => RequestContextSnapshot | undefined): StacksRequestContext; /** * The single accessor (#2232 ask 4), for callers who would rather have one * object than reach for ambient globals. * * Always returns something: with no request in flight every field is its empty * value, so a standalone or SSG render reads `useRequestEvent().query.site` and * gets `undefined` instead of a ReferenceError. */ export declare function useRequestEvent(): { url: string path: string search: string query: Record cookies: Record params: Record locale: string ip: string host: string site: SiteSnapshot | null }; /** * One request object for `