UNPKG

@difizen/mana-core

Version:

13 lines 583 B
import type { Event } from '@difizen/mana-common'; import { Emitter } from '@difizen/mana-common'; export type SelectionProvider<T> = { onSelectionChanged: Event<T | undefined>; }; export declare class SelectionService implements SelectionProvider<Record<any, any> | undefined> { private currentSelection; protected readonly onSelectionChangedEmitter: Emitter<any>; readonly onSelectionChanged: Event<any>; get selection(): Record<any, any> | undefined; set selection(selection: Record<any, any> | undefined); } //# sourceMappingURL=selection-service.d.ts.map