import { LoginService, MessageService } from '@serengeti/serengeti-common'; import { BehaviorSubject, Observable } from 'rxjs'; import { Configurations } from '../../../Configuration'; import { CategoryNode } from '../info/CategoryNode'; declare class Category { id: number; name: string; description: string; children: Category[]; } export declare class SoftwareCategoryService { private messageService; private loginService; endPoint: string; dataChange: BehaviorSubject; readonly data: CategoryNode[]; constructor(messageService: MessageService, loginService: LoginService, config: Configurations); initialize(): void; /** * Build the file structure tree. The `value` is the Json object, or a sub-tree of a Json object. * The return value is the list of `TodoItemNode`. */ buildFileTree(categories: Category[], level?: number): CategoryNode[]; get(id: string): Observable; /** Add an item to to-do list */ insertItem(parent: CategoryNode, name: string): Observable; updateItem(node: CategoryNode, name: string): Observable; removeItem(parent: CategoryNode, node: CategoryNode): Observable; } export {};