import { type ServerSentEventMessage } from "@std/http";
import { type Operation } from "effection";
import type { Middleware } from "./types.js";
export interface SSEDriverOptions<T extends ServerSentEventMessage> {
    request: Request;
    send(value: T): Operation<void>;
}
export declare function sse<T extends ServerSentEventMessage, TDone extends ServerSentEventMessage>(op: (options: SSEDriverOptions<T>) => Operation<TDone>): Middleware<Request, Response>;
//# sourceMappingURL=sse.d.ts.map