import { TreeNode } from 'primevue/treenode'; export interface CuiTreeProps { /** * @description An array of tree nodes representing the hierarchical data */ value?: TreeNode[]; /** * @description A map of keys to represent the expanded state of nodes */ expandedKeys?: Record; /** * @description A map of keys to represent the selection state of nodes */ selectionKeys?: Record | null; /** * @description Defines the selection mode (single, multiple, or checkbox) */ selectionMode?: "single" | "multiple" | "checkbox" | null; /** * @description When enabled, displays a filter input to search the tree */ filter?: boolean; /** * @description Placeholder text for the filter input */ filterPlaceholder?: string; /** * @description Mode for filtering (lenient allows parent matches to show children) */ filterMode?: "lenient" | "strict"; /** * @description When enabled, displays a loading indicator */ loading?: boolean; /** * @description Text to display when there are no nodes */ emptyMessage?: string; /** * @description Whether the tree is scrollable (enables flex layout) */ scrollable?: boolean; /** * @description When enabled, displays dashed connector lines between parent and child nodes */ lines?: boolean; } declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ /** * Custom content slot for node rendering * @arg {object} slotProps - The node slot properties * @arg {TreeNode} slotProps.node - The tree node being rendered */ default?: (props: { node: TreeNode; }) => any; /** * Custom toggle icon slot * @arg {object} slotProps - The toggler icon slot properties * @arg {TreeNode} slotProps.node - The tree node * @arg {boolean} slotProps.expanded - Whether the node is expanded */ togglericon?: (props: { node: TreeNode; expanded: boolean; }) => any; /** * Custom checkbox icon slot * @arg {object} slotProps - The checkbox icon slot properties * @arg {boolean} slotProps.checked - Whether the checkbox is checked * @arg {boolean} slotProps.partialChecked - Whether the checkbox is partially checked */ checkboxicon?: (props: { checked: boolean; partialChecked: boolean; }) => any; /** * Custom node icon slot * @arg {object} slotProps - The node icon slot properties * @arg {TreeNode} slotProps.node - The tree node * @arg {string} slotProps.class - CSS class for the icon */ nodeicon?: (props: { node: TreeNode; class: string; }) => any; /** * Custom filter icon slot */ filtericon?: () => any; /** * Custom loading icon slot */ loadingicon?: () => any; }> & { /** * Custom content slot for node rendering * @arg {object} slotProps - The node slot properties * @arg {TreeNode} slotProps.node - The tree node being rendered */ default?: (props: { node: TreeNode; }) => any; /** * Custom toggle icon slot * @arg {object} slotProps - The toggler icon slot properties * @arg {TreeNode} slotProps.node - The tree node * @arg {boolean} slotProps.expanded - Whether the node is expanded */ togglericon?: (props: { node: TreeNode; expanded: boolean; }) => any; /** * Custom checkbox icon slot * @arg {object} slotProps - The checkbox icon slot properties * @arg {boolean} slotProps.checked - Whether the checkbox is checked * @arg {boolean} slotProps.partialChecked - Whether the checkbox is partially checked */ checkboxicon?: (props: { checked: boolean; partialChecked: boolean; }) => any; /** * Custom node icon slot * @arg {object} slotProps - The node icon slot properties * @arg {TreeNode} slotProps.node - The tree node * @arg {string} slotProps.class - CSS class for the icon */ nodeicon?: (props: { node: TreeNode; class: string; }) => any; /** * Custom filter icon slot */ filtericon?: () => any; /** * Custom loading icon slot */ loadingicon?: () => any; }; refs: {}; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: import('vue').DefineComponent) => any; "update:selectionKeys": (keys: Record | null) => any; "node-select": (node: TreeNode) => any; "node-unselect": (node: TreeNode) => any; "node-expand": (node: TreeNode) => any; "node-collapse": (node: TreeNode) => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ "onUpdate:expandedKeys"?: ((keys: Record) => any) | undefined; "onUpdate:selectionKeys"?: ((keys: Record | null) => any) | undefined; "onNode-select"?: ((node: TreeNode) => any) | undefined; "onNode-unselect"?: ((node: TreeNode) => any) | undefined; "onNode-expand"?: ((node: TreeNode) => any) | undefined; "onNode-collapse"?: ((node: TreeNode) => any) | undefined; }>, { filter: boolean; value: TreeNode[]; loading: boolean; selectionMode: "single" | "multiple" | "checkbox" | null; scrollable: boolean; filterMode: "lenient" | "strict"; lines: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };