export type { MenuItem } from './menu-item'; import { type EditorDir } from './editor-contract'; import type { MenuItem } from './menu-item'; type $$ComponentProps = { items: ReadonlyArray; /** Close the WHOLE menu (a leaf was chosen, Escape, or outside-click). */ onclose: () => void; /** Report the chosen leaf item. */ onselect: (item: MenuItem) => void; submenu?: boolean; /** Collapse just THIS submenu level (ArrowLeft, or ArrowRight under `rtl`) * and refocus the item that opened it. Only meaningful when `submenu` is * true; the root list has nowhere to collapse into. */ oncollapse?: () => void; /** Text direction; under `rtl` the ArrowRight/ArrowLeft submenu open/close * keys swap (see createTree.svelte.ts for the reference pattern). */ dir?: EditorDir; }; declare const SvMenuList: import("svelte").Component<$$ComponentProps, {}, "">; type SvMenuList = ReturnType; export default SvMenuList;