import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonStructuredListWrapperContext = { selectedValue: import("svelte/store").Writable; update: (value: Value) => void; /** Set to `true` to allow selecting multiple rows */ multiple: boolean; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the selected structured list row value. * When `multiple` is `true`, this is an array of selected values. * @default undefined */ selected?: Value | Value[] | undefined; /** * Set to `true` to use the condensed variant * @default false */ condensed?: boolean; /** * Set to `true` to flush the list * @default false */ flush?: boolean; /** * Set to `true` to use the selection variant * @default false */ selection?: boolean; /** * Set to `true` to allow selecting multiple rows * @default false */ multiple?: boolean; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type StructuredListProps = Omit< $RestProps, keyof $Props > & $Props; export default class StructuredList< Value extends string = string, > extends SvelteComponentTyped< StructuredListProps, { change: CustomEvent; click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record } > {}