import type { IncomingMessage, Server, ServerResponse } from 'node:http'; import type { ConformanceSession } from './types.js'; export interface CfHttpHarnessOptions { /** Max request body bytes. */ maxBodyBytes?: number; /** * When true, honor `x-aps-disconnect` response header by destroying the socket * after writing `disconnectAfterBytes` (default 0 = immediate drop). */ enableDisconnect?: boolean; disconnectAfterBytes?: number; /** * Stream RawResponseBody in chunks of this size (for streaming tests). * 0 / undefined = write at once. */ chunkSize?: number; /** Deadline for streaming writes in ms. */ streamDeadlineMs?: number; } /** * HTTP harness for CF sessions with disconnect / chunked streaming support (FR-007). */ export declare const createCfHttpHarness: (session: ConformanceSession, options?: CfHttpHarnessOptions) => { handler: (req: IncomingMessage, res: ServerResponse) => Promise; listen: (port?: number, host?: string) => Promise<{ server: Server; url: string; }>; }; //# sourceMappingURL=http-harness.d.ts.map