import type { IncomingMessage } from 'http'; import { Readable } from 'node:stream'; export interface ParsedSseJsonRequest { rawText: string; events: ParsedSseEvent[]; firstPayload?: Record; lastPayload?: Record; } interface ParsedSseEvent { event?: string; id?: string; data: string; } export declare function parseSseJsonRequest(req: IncomingMessage): Promise; export declare function createReadableFromSse(rawText: string): Readable; export {};