@syntest/core
Version:
The common core of the SynTest Framework
13 lines • 531 B
TypeScript
import { Encoding } from "..";
import { ListenerInterface } from "./ListenerInterface";
import { ProgramState } from "./ProgramState";
export declare class EventManager<T extends Encoding> {
private _state;
private listeners;
constructor(state: ProgramState<T>);
registerListener(listener: ListenerInterface<T>): void;
deregisterListener(listener: ListenerInterface<T>): void;
emitEvent(event: keyof ListenerInterface<T>): void;
get state(): ProgramState<T>;
}
//# sourceMappingURL=EventManager.d.ts.map