/** * Shared HTTP observation types and helpers. * * Used by any stepper that tracks HTTP activity, including: * - NodeHttpEvents (Node.js fetch/undici requests) * - PlaywrightEvents (browser requests via Playwright) */ import type { TWorld } from './defs.js'; /** Observation data for a single HTTP request */ export type THttpRequestObservation = { url: string; status: number; time: number; method: string; }; /** * Track an HTTP host in observations for the 'http-trace hosts' observation source. * Both NodeHttpEvents and PlaywrightEvents use this. */ export declare function trackHttpHost(world: TWorld, url: string): void; /** * Track an HTTP request in observations for the 'http-trace' observation source. */ export declare function trackHttpRequest(world: TWorld, observation: THttpRequestObservation): void; //# sourceMappingURL=http-observations.d.ts.map