import type { IncomingMessage, ServerResponse } from 'node:http'; import type { CookieAuthenticationOptions, HttpRouteCtx, MockServerConfig } from '../types.ts'; import { type AuthState } from './auth.ts'; export declare const SESSION_AUTH_TOKEN_COOKIE = "sessionAuthToken"; export declare function cookieAuthentication(config: MockServerConfig): CookieAuthenticationOptions | undefined; export declare function parseCookies(header: string | undefined): Record; export declare function createHttpRequestListener(config: MockServerConfig, legacySessions: Map, auth: AuthState, routeCtx: Omit): (req: IncomingMessage, res: ServerResponse) => Promise;