import "./TreeWidgetUiItemsProvider.scss"; import type { Widget } from "@itwin/appui-react"; import type { SelectableTreeDefinition, SelectableTreeProps } from "./SelectableTree.js"; /** * Props for `createWidget`. * @public */ interface TreeWidgetProps { /** * Trees to show in the widget. * @see ModelsTreeComponent * @see CategoriesTreeComponent * @see ExternalSourcesTreeComponent * @see IModelContentTreeComponent */ trees: SelectableTreeDefinition[]; /** Modifies the density of the tree widget. `enlarged` widget contains larger content */ density?: "enlarged" | "default"; /** Callback that is invoked when performance of tracked feature is measured. */ onPerformanceMeasured?: (feature: string, elapsedTime: number) => void; /** Callback that is invoked when a tracked feature is used. */ onFeatureUsed?: (feature: string) => void; } /** * Creates a tree widget definition that should be returned from `UiItemsProvider.getWidgets()`. * @public */ export declare function createTreeWidget(props: TreeWidgetProps): Widget; /** * Tree widget component which allows selecting which tree to render. * @public */ export declare function TreeWidgetComponent(props: SelectableTreeProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=TreeWidgetUiItemsProvider.d.ts.map