import type { UmbTreeItemModelBase } from '../types.js'; import type { UmbStore } from '../../store/index.js'; import type { Observable } from '../../../../external/rxjs/index.js'; import type { UmbApi } from '../../../../libs/extension-api/index.js'; /** * Interface for a tree store. * @interface UmbTreeStore * @augments {UmbStore} * @augments {UmbApi} * @template TreeItemType */ export interface UmbTreeStore extends UmbStore, UmbApi { /** * Returns an observable of the root items of the tree. * @type {Observable>} * @memberof UmbTreeStore */ rootItems: Observable>; /** * Returns an observable of the children of the given parent item. * @param {(string | null)} parentUnique * @memberof UmbTreeStore */ childrenOf: (parentUnique: string | null) => Observable>; }