import type { IncomingMessage, ServerResponse } from 'node:http'; import type { PgmbClient } from './client.ts'; import type { IEventData, SSERequestHandlerOpts } from './types.ts'; type MinimalRequest = Pick; export declare function createSSERequestHandler(getPgmb: (req: R) => PgmbClient, { getSubscriptionOpts, maxReplayEvents, maxReplayIntervalMs, jsonifier, getEventIdToReplayFrom, serialiseEvent, }: SSERequestHandlerOpts): (req: R, res: ServerResponse) => Promise; export {};