/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { DropDownTreeProps, DropDownTreeHandle } from './DropDownTreeProps.js'; import * as React from 'react'; /** * Represents the PropsContext of the `DropDownTree` component. * Used for global configuration of all `DropDownTree` 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 DropDownTreePropsContext: React.Context<(p: DropDownTreeProps) => DropDownTreeProps>; /** * Represents the DropDownTree component. * * Accepts properties of type [DropDownTreeProps](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/dropdowntreeprops). * Obtaining the `ref` returns an object of type [DropDownTreeHandle](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/dropdowntreehandle). * * @example * ```jsx * const selectField = "selected"; * const expandField = "expanded"; * const dataItemKey = "id"; * const textField = "text"; * const subItemsField = "items"; * const fields = { * selectField, * expandField, * dataItemKey, * subItemsField, * }; * const App = () => { * const [value, setValue] = React.useState(null); * const [expanded, setExpanded] = React.useState([data[0][dataItemKey]]); * const onChange = (event) => setValue(event.value); * const onExpandChange = React.useCallback( * (event) => setExpanded(expandedState(event.item, dataItemKey, expanded)), * [expanded] * ); * const treeData = React.useMemo( * () => * processTreeData( * data, * { * expanded, * value, * }, * fields * ), * [expanded, value] * ); * * return ( * * ); * }; * ``` */ export declare const DropDownTree: React.ForwardRefExoticComponent>;