import { type ReactNode } from 'react'; import type { Except } from 'type-fest'; import { type DropdownButtonProps } from './dropdown-button'; import { type BasicItem } from '../utils'; import '../styles/components/tree-select.scss'; export type TreeSelectProps> = { /** * The tree structure */ data: Item[]; /** * What happens when something is selected */ onSelect: (item: Omit) => void; /** * Contains autocomplete functionality to search through tree */ autocomplete?: boolean; /** * Placeholder for the autocomplete input box */ autocompletePlaceholder?: string; autocompleteFilter?: boolean; /** * The displayed label on the button */ label?: ReactNode; /** * Array of default active nodes for initialisation */ defaultActiveNodes?: Item['id'][]; }; declare const TreeSelect: >({ data, onSelect, autocomplete, autocompletePlaceholder, autocompleteFilter, defaultActiveNodes, label, ...props }: Except & TreeSelectProps) => import("react/jsx-runtime").JSX.Element; export default TreeSelect; //# sourceMappingURL=tree-select.d.ts.map