export { assertSafeUrl, assertSafeUrlSync, safeUrlSchema } from "./ssrf"; export { httpPayloadSchema, type HttpPayload, tpcPayloadSchema, type TcpPayload, DNSPayloadSchema, type DNSPayload, } from "./payloads"; export { MONITOR_METHODS, MONITOR_STATUSES, MONITOR_JOB_TYPES, } from "./constants"; export { yieldMany, iteratorToStream } from "./stream"; export { statusLabel, type PageUpdateStatus } from "./status"; export function transformHeaders(headers: { key: string; value: string }[]) { return headers.length > 0 ? headers.reduce( (acc, curr) => { acc[curr.key] = curr.value; return acc; }, {} as Record, ) : {}; }