import EventSource from "eventsource"; type Severity = "info" | "error"; interface Options { source: string; target: string; logger?: Pick; fetch?: any; } declare class Client { source: string; target: string; fetch: typeof global.fetch; logger: Pick; events: EventSource; constructor({ source, target, logger, fetch, }: Options); static createChannel({ fetch }?: { fetch?: typeof globalThis.fetch | undefined; }): Promise; onmessage(msg: any): Promise; onopen(): void; onerror(err: any): void; start(): EventSource; } export = Client;