import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonSideNavMenuContext = { depth: number; /** Menus with an icon from the outermost one through this one. */ iconDepth: import("svelte/store").Writable; setCurrent: (key: object, selected: boolean) => void; }; type $RestProps = SvelteHTMLElements["button"]; type $Props = { /** * Set to `true` to toggle the expanded state. * @default false */ expanded?: boolean; /** * Set to `true` to mark the menu as containing the current page. * @default false */ isActive?: boolean; /** * Set to `true` to use the large variant * @default false */ large?: boolean; /** * Specify the text. */ text?: string | undefined; /** * Specify the icon to render. */ icon?: Icon | undefined; /** * Obtain a reference to the HTML button element. * @default null */ ref?: null | HTMLButtonElement; badge?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type SideNavMenuProps = Omit<$RestProps, keyof $Props> & $Props; export default class SideNavMenu extends SvelteComponentTyped< SideNavMenuProps, { click: WindowEventMap["click"] }, { default: Record; badge: Record; icon: Record; } > {}