/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { MultiSelectTreeProps, MultiSelectTreeHandle } from './MultiSelectTreeProps.js'; import * as React from 'react'; /** * Represents the PropsContext of the `MultiSelectTree` component. * Used for global configuration of all `MultiSelectTree` instances. * * For more information, refer to the [Dropdowns Props Context](https://www.telerik.com/kendo-react-ui/components/dropdowns/props-context) article. */ export declare const MultiSelectTreePropsContext: React.Context<(p: MultiSelectTreeProps) => MultiSelectTreeProps>; /** * Represents the MultiSelectTree component. * * Accepts properties of type [MultiSelectTreeProps](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/multiselecttreeprops). * Obtaining the `ref` returns an object of type [MultiSelectTreeHandle](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/multiselecttreehandle). * * @example * ```jsx * const dataItemKey = 'id'; * const checkField = 'checkField'; * const checkIndeterminateField = 'checkIndeterminateField'; * const subItemsField = 'items'; * const expandField = 'expanded'; * const textField = 'text'; * const fields = { * dataItemKey, * checkField, * checkIndeterminateField, * expandField, * subItemsField, * }; * const App = () => { * const [value, setValue] = React.useState([]); * const [expanded, setExpanded] = React.useState([data[0][dataItemKey]]); * const onChange = (event) => * setValue( * getMultiSelectTreeValue(data, { * ...fields, * ...event, * value, * }) * ); * const onExpandChange = React.useCallback( * (event) => setExpanded(expandedState(event.item, dataItemKey, expanded)), * [expanded] * ); * const treeData = React.useMemo( * () => * processMultiSelectTreeData(data, { * expanded, * value, * ...fields, * }), * [expanded, value] * ); * * return ( *
*
Categories:
* *
* ); * }; * ``` */ export declare const MultiSelectTree: React.ForwardRefExoticComponent>;