/**
 * 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 { UiTextMatchingMode } from "./UiTextMatchingMode";
import { UiComponentCommandHandler } from "./UiComponentConfig";
export interface UiTreeConfig extends UiComponentConfig {
    _type?: string;
    templates?: {
        [name: string]: UiTemplateConfig;
    };
    defaultTemplateId?: string;
    initialData?: UiTreeRecordConfig[];
    selectedNodeId?: number;
    textMatchingMode?: UiTextMatchingMode;
    animate?: boolean;
    showExpanders?: boolean;
    openOnSelection?: boolean;
    enforceSingleExpandedPath?: boolean;
    indentation?: number;
}
export interface UiTreeCommandHandler extends UiComponentCommandHandler {
    replaceData(nodes: UiTreeRecordConfig[]): void;
    bulkUpdate(nodesToBeRemoved: number[], nodesToBeAdded: UiTreeRecordConfig[]): void;
    setSelectedNode(recordId: number): void;
    registerTemplate(id: string, template: UiTemplateConfig): void;
}
export interface UiTreeEventSource {
    onTextInput: TeamAppsEvent<UiTree_TextInputEvent>;
    onNodeSelected: TeamAppsEvent<UiTree_NodeSelectedEvent>;
    onRequestTreeData: TeamAppsEvent<UiTree_RequestTreeDataEvent>;
}
export interface UiTree_TextInputEvent extends UiEvent {
    text: string;
}
export interface UiTree_NodeSelectedEvent extends UiEvent {
    nodeId: number;
}
export interface UiTree_RequestTreeDataEvent extends UiEvent {
    parentNodeId: number;
}
