import { BroadcastEvent, EventChannel } from '../lib/EventChannel'; export declare function resetAll(): void; export declare function setChannelsPaused(paused: boolean): void; export declare class MemoryBroadcastChannel { private readonly _onMessage; private _closed; private _paused; private readonly _channels; private _postMessageQueue; private _onMessageQueue; constructor(channelName: string, _onMessage: (value: T) => void); set paused(paused: boolean); onMessage(message: T): void; postMessage(message: T): Promise; close(): void; } export declare class MemoryEventChannel implements EventChannel { readonly broadcastChannel: MemoryBroadcastChannel>; readonly onEventCallbacks: ((e: BroadcastEvent) => void)[]; constructor(channelName: string); private _onMessage; onEvent(cb: (ev: BroadcastEvent) => void): void; sendEvent(ev: BroadcastEvent): Promise; shutdown(): void | Promise; set paused(paused: boolean); }