import type { Component } from "svelte"; export type MenuIconProps = { size?: number | string; strokeWidth?: number | string; color?: string; class?: string; } & Record<`data-${string}`, unknown>; export type MenuIcon = Component | string; export interface MenuActionItem { kind?: "item"; label: string; value: string; disabled?: boolean; danger?: boolean; icon?: MenuIcon; } export interface MenuDividerItem { kind: "divider"; } export interface MenuGroupItem { kind: "group"; label: string; } export type MenuItem = MenuActionItem | MenuDividerItem | MenuGroupItem; import type { HTMLAttributes } from "svelte/elements"; type MenuProps = Omit, "class" | "onselect"> & { label: string; items: MenuItem[]; open?: boolean; dismissOnSelect?: boolean; class?: string; dense?: boolean; onselect?: (value: string) => void; }; declare const Menu: Component; type Menu = ReturnType; export default Menu; //# sourceMappingURL=Menu.svelte.d.ts.map