import { SvelteSet } from 'svelte/reactivity'; export interface TreeViewContext { expanded: SvelteSet; selected: () => string | null; focused: () => string | null; setFocused: (id: string | null) => void; toggle: (id: string) => void; expand: (id: string) => void; collapse: (id: string) => void; select: (id: string) => void; isExpanded: (id: string) => boolean; isSelected: (id: string) => boolean; rootEl: { current: HTMLElement | null; }; } export declare function getTreeViewContext(): TreeViewContext; export declare function setTreeViewContext(ctx: TreeViewContext): void; interface Props { children?: import('svelte').Snippet; class?: string; defaultExpanded?: string[]; selected?: string | null; onSelectChange?: (id: string | null) => void; onExpandChange?: (id: string, expanded: boolean) => void; 'aria-label'?: string; 'aria-labelledby'?: string; } declare const TreeView: import("svelte").Component; type TreeView = ReturnType; export default TreeView;