import { TreeNode } from "../TreeNode.js"; import { TreeActionBaseAttributes } from "./TreeAction.js"; import { NamedExoticComponent, PropsWithChildren } from "react"; /** * React component that renders a rename action for a tree item. * * The tree component must have `getEditingProps.onLabelChanged` prop set to enable renaming functionality. When * rename is completed, the `onLabelChanged` function is called to make the actual data update. * * @see `getMenuActions`, `getInlineActions`, `getContextMenuActions` props of `TreeRenderer` to add this action * to tree items. * * @alpha */ declare const TreeNodeRenameAction: NamedExoticComponent; /** @alpha */ interface TreeNodeEditingProps { /** * A callback that is invoked when node label is changed. Should be used together * with `` to enter label editing mode. */ onLabelChanged: (newLabel: string) => void; labelValidationHint?: string; validate?: (newLabel: string) => boolean; } export { TreeNodeEditingProps, TreeNodeRenameAction }; //# sourceMappingURL=TreeNodeRenameAction.d.ts.map