import { ColumnDefs , DataPage } from '@/widgets/dataset-grid/types' ; export enum SubjectDataSetEventTypes { COLUMN_DEFS_READY = 'column-defs-ready' , ASK_COLUMN_DEFS = 'ask-column-defs' , PAGE_LOADED = 'page-loaded' , PAGE_CHANGE = 'page-change' } export interface SubjectDataSetEventBus { fire ( type , columnDefs ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , page , columnDefs ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pageNumber , columnDefs ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }