export default Tree; type Tree = { $on?(type: string, callback: (e: any) => void): () => void; $set?(props: Partial>): void; }; /** * A tree view widget that displays a hierarchical list of items, which can be expanded, collapsed * and selected. * @see https://w3c.github.io/aria/#tree * @see https://www.w3.org/WAI/ARIA/apg/patterns/treeview/ */ declare const Tree: import("svelte").Component`. An alias * of the `aria-multiselectable` attribute. */ multiple?: boolean | undefined; /** * Whether to select an item by clicking on it. */ clickToSelect?: boolean | undefined; /** * Whether to select an item as soon as it receives * focus. Default: `true` on a single-select tree, `false` on a multi-select tree. */ selectionFollowsFocus?: boolean | undefined; /** * Whether to expand or collapse a parent item when the item * itself, rather than its chevron, is clicked or activated with the Enter key. */ expandOnSelect?: boolean | undefined; /** * The `aria-label` attribute on the wrapper element. Required * unless the `aria-labelledby` attribute is provided. */ ariaLabel?: string | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; /** * Custom `Change` event handler. */ onChange?: ((event: CustomEvent) => void) | undefined; } & Record, {}, "element">; type Props = { /** * A reference to the wrapper element. */ element?: HTMLElement | undefined; /** * The `class` attribute on the wrapper element. */ class?: string | undefined; /** * Whether to hide the widget. An alias of the `aria-hidden` * attribute. */ hidden?: boolean | undefined; /** * Whether to disable the widget. An alias of the `aria-disabled` * attribute. */ disabled?: boolean | undefined; /** * Whether to make the widget read-only. An alias of the * `aria-readonly` attribute. */ readonly?: boolean | undefined; /** * Whether to allow selecting more than one ``. An alias * of the `aria-multiselectable` attribute. */ multiple?: boolean | undefined; /** * Whether to select an item by clicking on it. */ clickToSelect?: boolean | undefined; /** * Whether to select an item as soon as it receives * focus. Default: `true` on a single-select tree, `false` on a multi-select tree. */ selectionFollowsFocus?: boolean | undefined; /** * Whether to expand or collapse a parent item when the item * itself, rather than its chevron, is clicked or activated with the Enter key. */ expandOnSelect?: boolean | undefined; /** * The `aria-label` attribute on the wrapper element. Required * unless the `aria-labelledby` attribute is provided. */ ariaLabel?: string | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; /** * Custom `Change` event handler. */ onChange?: ((event: CustomEvent) => void) | undefined; }; import type { Snippet } from 'svelte';