import { type FastifyReply, type FastifyRequest } from "fastify"; import { type z } from "zod"; export declare function createSSEFactory(socket: FastifyRequest["socket"], reply: FastifyReply, _events: T): SSEConnection; export declare function createMockSSEFactory(_events: T): SSEConnection; export interface SSEConnection { get closed(): boolean; onClose(callback: () => void): void; publish>(event: K, data: z.infer[K]): void; end(): Promise; } //# sourceMappingURL=sse.d.ts.map