import type { Component, ExtractPropTypes, PropType, StyleValue } from 'vue'; import type _TypeTree from './type-tree.vue'; export declare type TreeNodeData = Record; export declare type TreeData = TreeNodeData[]; export declare type TreeKey = string | number; export declare interface TreeOptionProps { children?: string; label?: string | ((data: TreeNodeData, node: any) => string); disabled?: string | ((data: TreeNodeData, node: any) => string); isLeaf?: string | ((data: TreeNodeData, node: any) => boolean); class?: (data: TreeNodeData, node: any) => string | Record | string; } export declare type LoadFunction = (rootNode: any, loadedCallback: (data: TreeData) => void) => void; export declare type FilterValue = any; export declare type FilterNodeMethodFunction = (value: FilterValue, data: TreeNodeData, child: any) => boolean; export declare const sdTypeTreeProps: { data: { type: ArrayConstructor; default: () => never[]; }; emptyText: { type: StringConstructor; }; renderAfterExpand: { type: BooleanConstructor; default: boolean; }; checkStrictly: BooleanConstructor; defaultExpandAll: BooleanConstructor; expandOnClickNode: { type: BooleanConstructor; default: boolean; }; checkOnClickNode: BooleanConstructor; checkDescendants: { type: BooleanConstructor; default: boolean; }; autoExpandParent: { type: BooleanConstructor; default: boolean; }; defaultCheckedKeys: PropType; defaultExpandedKeys: PropType; currentNodeKey: PropType; renderContent: FunctionConstructor; showCheckbox: { type: BooleanConstructor; default: boolean; }; draggable: { type: BooleanConstructor; default: boolean; }; allowDrag: FunctionConstructor; allowDrop: FunctionConstructor; props: { type: PropType; default: () => { children: string; label: string; disabled: string; }; }; lazy: { type: BooleanConstructor; default: boolean; }; highlightCurrent: BooleanConstructor; load: PropType; filterNodeMethod: PropType; indent: { type: NumberConstructor; default: number; }; icon: PropType>; accordion: { type: BooleanConstructor; default: boolean; }; nodeKey: { type: StringConstructor; default: string; }; width: { type: PropType; default: number; }; headClass: { type: StringConstructor; default: string; }; headStyle: { type: PropType; default: string; }; mainClass: { type: StringConstructor; default: string; }; mainStyle: { type: PropType; default: string; }; footClass: { type: StringConstructor; default: string; }; footStyle: { type: PropType; default: string; }; showHead: { type: BooleanConstructor; default: boolean; }; showFoot: { type: BooleanConstructor; default: boolean; }; title: { type: StringConstructor; default: string; }; list: { type: ArrayConstructor; default: () => never[]; }; prop: { type: PropType<{ label: string; value: string; children: string; icon: string; }>; default: () => void; }; }; export declare const sdTypeTreeEmits: string[]; export declare type SdTypeTreeProps = ExtractPropTypes; export declare type SdTypeTreeInstance = InstanceType;