import { UiTree_NodeExpansionChangedEvent, UiTree_NodeSelectedEvent, UiTree_RequestTreeDataEvent, UiTree_TextInputEvent, UiTreeCommandHandler, UiTreeConfig, UiTreeEventSource } from "../generated/UiTreeConfig";
import { TeamAppsEvent } from "./util/TeamAppsEvent";
import { AbstractUiComponent } from "./AbstractUiComponent";
import { TeamAppsUiContext } from "./TeamAppsUiContext";
import { UiTreeRecordConfig } from "../generated/UiTreeRecordConfig";
import { UiTemplateConfig } from "../generated/UiTemplateConfig";
import { UiInfiniteItemView2_ContextMenuRequestedEvent } from "../generated/UiInfiniteItemView2Config";
import { UiComponent } from "./UiComponent";
export declare class UiTree extends AbstractUiComponent<UiTreeConfig> implements UiTreeCommandHandler, UiTreeEventSource {
    readonly onTextInput: TeamAppsEvent<UiTree_TextInputEvent>;
    readonly onNodeSelected: TeamAppsEvent<UiTree_NodeSelectedEvent>;
    readonly onRequestTreeData: TeamAppsEvent<UiTree_RequestTreeDataEvent>;
    readonly onNodeExpansionChanged: TeamAppsEvent<UiTree_NodeExpansionChangedEvent>;
    readonly onContextMenuRequested: TeamAppsEvent<UiInfiniteItemView2_ContextMenuRequestedEvent>;
    private $panel;
    private trivialTree;
    private nodes;
    private templateRenderers;
    private contextMenu;
    constructor(config: UiTreeConfig, context: TeamAppsUiContext);
    private renderRecord;
    doGetMainElement(): HTMLElement;
    replaceData(nodes: UiTreeRecordConfig[]): void;
    bulkUpdate(nodesToBeRemoved: number[], nodesToBeAdded: UiTreeRecordConfig[]): void;
    setSelectedNode(recordId: number | null): void;
    registerTemplate(id: string, template: UiTemplateConfig): void;
    setContextMenuContent(requestId: number, component: UiComponent): void;
    closeContextMenu(requestId: number): void;
}
