import { EventEmitter, OnInit } from '@angular/core'; import { MJFileCategoryEntity } from '@memberjunction/core-entities'; import { SharedService } from '@memberjunction/ng-shared'; import { BaseAngularComponent } from '@memberjunction/ng-base-types'; import * as i0 from "@angular/core"; export declare class CategoryTreeComponent extends BaseAngularComponent implements OnInit { private sharedService; categorySelected: EventEmitter; isLoading: boolean; showNew: boolean; newCategoryName: string; renameFileCategory: MJFileCategoryEntity | undefined; categoriesData: MJFileCategoryEntity[]; /** Expanded node IDs for the tree */ expandedIds: Set; /** Currently selected node ID */ private selectedId; /** Context menu state */ contextMenuVisible: boolean; contextMenuX: number; contextMenuY: number; private contextMenuNode; private get md(); constructor(sharedService: SharedService); ngOnInit(): void; /** Returns root-level nodes (no parent). */ get rootNodes(): MJFileCategoryEntity[]; /** Checks if a node has children. */ hasChildren(node: MJFileCategoryEntity): boolean; /** Returns children of a node. */ getChildren(node: MJFileCategoryEntity): MJFileCategoryEntity[]; /** Checks if a node is expanded. */ isExpanded(node: MJFileCategoryEntity): boolean; /** Toggles expand/collapse on a node. */ toggleExpand(node: MJFileCategoryEntity, event: Event): void; /** Checks if a node is the currently selected node. */ isSelected(node: MJFileCategoryEntity): boolean; /** Selects a node and emits event. */ selectNode(node: MJFileCategoryEntity): void; /** Opens context menu on right-click. */ onContextMenu(event: MouseEvent, node: MJFileCategoryEntity): void; /** Closes the context menu. */ closeContextMenu(): void; /** Handles context menu action selection. */ onContextMenuAction(action: string): void; createNewCategory(): Promise; cancelNewCategory(): void; saveNewCategory(): Promise; deleteCategory(fileCategory: MJFileCategoryEntity): Promise; clearSelection(): void; cancelRename(): void; saveRename(): Promise; Refresh(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=category-tree.d.ts.map