import type { IncomingMessage, ServerResponse } from 'node:http'; export interface PlatformRequest extends IncomingMessage { method: string; url: string; originalUrl?: string; path?: string; ip?: string; query?: Record; body?: unknown; cookies?: Record; session?: Record; } export interface PlatformResponse extends ServerResponse { getHeaders(): Record; } export type NextFunction = (err?: unknown) => void;