import { Position, SelectRowEvent } from './types'; interface EventMap { SELECT_CELL: (position: Position, openEditor?: boolean) => void; SELECT_ROW: (event: SelectRowEvent) => void; } declare type EventName = keyof EventMap; export default class EventBus { private readonly subscribers; subscribe(type: T, handler: EventMap[T]): () => void; dispatch(type: T, ...args: Parameters): void; } export {};