export interface BroadcastClient { readonly res: { write(chunk: string): unknown; }; } export declare function createSessionBroadcast(opts: { clients: Iterable; /** Every event, already redacted. */ onEvent?: (type: string, data: unknown) => void; env?: Record; }): (type: string, data: unknown) => void;