import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type RecursiveListNode = { /** Unique node identifier; used as the each-block key when provided */ id?: string | number; /** Node text content */ text?: string; /** Node link URL */ href?: string; /** Node HTML content, rendered unsanitized with `@html`; pass only trusted or sanitized markup */ html?: string; /** Node link target */ target?: import("svelte/elements").SvelteHTMLElements["a"]["target"]; /** Node link rel */ rel?: import("svelte/elements").SvelteHTMLElements["a"]["rel"]; /** Child nodes */ nodes?: RecursiveListNode[]; }; type $RestProps = SvelteHTMLElements["ul"] & SvelteHTMLElements["ol"]; type $Props = { /** * Specify the nodes to render. * @default [] */ nodes?: ReadonlyArray; /** * Specify the type of list to render. * @default "unordered" */ type?: "unordered" | "ordered" | "ordered-native"; /** * Set to `true` to use Carbon's expressive typesetting * @default false */ expressive?: boolean; /** * Set to `true` to use the nested variant, as for a list inside a list item * @default false */ nested?: boolean; [key: `data-${string}`]: unknown; }; export type RecursiveListProps = Omit<$RestProps, keyof $Props> & $Props; export default class RecursiveList extends SvelteComponentTyped< RecursiveListProps, Record, Record > {}