import * as React from 'react'; import { IHasCX, DataRowProps, IDataSourceView, DataSourceState } from '@epam/uui-core'; /** * Properties for a Tree component */ export interface TreeProps extends IHasCX { /** * View to get data for the tree. Use dataSource.useView(...) to get the view. */ view: IDataSourceView; /** * Render callback for tree row. * If not provided, VerticalTabButton will be used by default. */ renderRow?: (row: DataRowProps) => React.ReactNode; /** * Size for default VerticalTabButton renderer. * Default: '36' */ size?: '30' | '36' | '48'; /** * DataSourceState state */ value: DataSourceState; /** * Callback to handle changes in DataSourceState. */ onValueChange: React.Dispatch, any>>>; /** * Function to get the caption for each item. * @param item */ getCaption: (item: TItem) => string; /** * Optional function to render additional elements in the row. * @param row */ renderAddons?: (row: DataRowProps) => React.ReactNode; } export declare function Tree(props: TreeProps): React.JSX.Element; //# sourceMappingURL=Tree.d.ts.map