import type { NetworkEventHandlers } from "@pagepocket/lib"; import type { HTTPRequest, HTTPResponse } from "puppeteer"; export declare const createRequestIdStore: () => { getRequestId: (request: HTTPRequest) => string; has: (request: HTTPRequest) => boolean; }; export declare const createEmitRequest: (handlers: NetworkEventHandlers, getRequestId: (r: HTTPRequest) => string) => (request: HTTPRequest, timestamp: number) => void; export declare const isExpectedMissingBody: (input: { request: HTTPRequest; response: HTTPResponse; headers: Record; }) => boolean; export declare const createOnResponse: (input: { handlers: NetworkEventHandlers; getRequestId: (r: HTTPRequest) => string; hasRequestId: (r: HTTPRequest) => boolean; emitRequest: (r: HTTPRequest, ts: number) => void; }) => (response: HTTPResponse) => void; export declare const createOnRequestFailed: (input: { handlers: NetworkEventHandlers; getRequestId: (r: HTTPRequest) => string; hasRequestId: (r: HTTPRequest) => boolean; emitRequest: (r: HTTPRequest, ts: number) => void; }) => (request: HTTPRequest) => void;