import { SvelteComponentTyped } from "svelte"; /** * Flat-row renderer used by ``. Consumes the same * `carbon:TreeView` context as TreeViewNode / TreeViewNodeList so all * selection / expansion / focus / checkbox callbacks behave identically. */ export type Row = { node: { id: string | number; text?: any; icon?: any; disabled?: boolean; href?: string; target?: string; nodes?: any[] }; depth: number; parentId: string | number | null; posInSet: number; setSize: number; hasChildren: boolean; }; export type TreeViewNodeVirtualProps = { /** * Flat-row renderer used by ``. Consumes the same * `carbon:TreeView` context as TreeViewNode / TreeViewNodeList so all * selection / expansion / focus / checkbox callbacks behave identically. */ item: Row; itemHeight: number; /** * Whether this row owns tabindex=0 (one focusable row at a time). * @default false */ isTabAnchor?: boolean; children?: (this: void, ...args: [{ node: any }]) => void; }; export default class TreeViewNodeVirtual extends SvelteComponentTyped< TreeViewNodeVirtualProps, Record, { default: { node: any } } > {}