import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["a"]; type $Props = { /** * Specify the link to the section, such as `"#overview"`. * The part after `#` is the id of the section element. A link with a path * to the current page, such as `"/docs#overview"`, also works. */ href: string; /** * Specify the item text. * Alternatively, use the default slot. * @default "" */ text?: string; /** * Specify the heading level of the section, from 1 to 3, such as an `h3` * listed under the `h2` before it. Each level below the first indents one * more step. Other values are clamped to that range. * @default 1 */ level?: 1 | 2 | 3; /** * Obtain a reference to the anchor HTML element. * @default null */ ref?: null | HTMLAnchorElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TableOfContentsItemProps = Omit<$RestProps, keyof $Props> & $Props; export default class TableOfContentsItem extends SvelteComponentTyped< TableOfContentsItemProps, { click: WindowEventMap["click"] }, { default: Record } > {}