import { CdkDragDrop } from '@angular/cdk/drag-drop'; import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { Collection } from '@ishop/admin-ui/core'; import { RootNode } from './array-to-tree'; export declare type RearrangeEvent = { collectionId: string; parentId: string; index: number; }; export declare type CollectionPartial = Pick; export declare class CollectionTreeComponent implements OnChanges { collections: CollectionPartial[]; activeCollectionId: string; expandAll: boolean; rearrange: EventEmitter; deleteCollection: EventEmitter; collectionTree: RootNode; ngOnChanges(changes: SimpleChanges): void; onDrop(event: CdkDragDrop>): void; onMove(event: RearrangeEvent): void; onDelete(id: string): void; private isRootNode; }