/**
 * THIS IS GENERATED CODE!
 * PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
 */
export declare const typescriptDeclarationFixConstant = 1;
import { UiEvent } from "./UiEvent";
import { TeamAppsEvent } from "../modules/util/TeamAppsEvent";
import { UiComponentConfig } from "./UiComponentConfig";
import { UiTemplateConfig } from "./UiTemplateConfig";
import { UiTreeRecordConfig } from "./UiTreeRecordConfig";
import { UiComponentCommandHandler } from "./UiComponentConfig";
export interface UiTreeConfig extends UiComponentConfig {
    _type?: string;
    templates?: {
        [name: string]: UiTemplateConfig;
    };
    defaultTemplateId?: string;
    initialData?: UiTreeRecordConfig[];
    selectedNodeId?: number;
    animate?: boolean;
    showExpanders?: boolean;
    openOnSelection?: boolean;
    enforceSingleExpandedPath?: boolean;
    contextMenuEnabled?: boolean;
    indentation?: number;
}
export interface UiTreeCommandHandler extends UiComponentCommandHandler {
    replaceData(nodes: UiTreeRecordConfig[]): any;
    bulkUpdate(nodesToBeRemoved: number[], nodesToBeAdded: UiTreeRecordConfig[]): any;
    setSelectedNode(recordId: number): any;
    registerTemplate(id: string, template: UiTemplateConfig): any;
    setContextMenuContent(requestId: number, component: unknown): any;
    closeContextMenu(requestId: number): any;
}
export interface UiTreeEventSource {
    onTextInput: TeamAppsEvent<UiTree_TextInputEvent>;
    onNodeSelected: TeamAppsEvent<UiTree_NodeSelectedEvent>;
    onNodeExpansionChanged: TeamAppsEvent<UiTree_NodeExpansionChangedEvent>;
    onRequestTreeData: TeamAppsEvent<UiTree_RequestTreeDataEvent>;
    onContextMenuRequested: TeamAppsEvent<UiTree_ContextMenuRequestedEvent>;
}
export interface UiTree_TextInputEvent extends UiEvent {
    text: string;
}
export interface UiTree_NodeSelectedEvent extends UiEvent {
    nodeId: number;
}
export interface UiTree_NodeExpansionChangedEvent extends UiEvent {
    nodeId: number;
    expanded: boolean;
}
export interface UiTree_RequestTreeDataEvent extends UiEvent {
    parentNodeId: number;
}
export interface UiTree_ContextMenuRequestedEvent extends UiEvent {
    requestId: number;
    recordId: number;
}
