@simplito/privmx-webendpoint
Version:
PrivMX Web Endpoint library
14 lines (13 loc) • 382 B
TypeScript
import { Channel } from '../../events';
import { Types } from "../../..";
export declare class MockEventQueue {
queue: Types.Event[];
resolveCommand: {
resolver: Function;
} | null;
registeredChannels: Set<Channel>;
constructor();
dispatchEvent(event: Types.Event): void;
waitEvent(): Promise<Types.Event>;
emitBreakEvent(): Promise<void>;
}