export type { AccordionItem, AccordionExpandMode } from './createAccordion.svelte'; /** * SvAccordion - a WAI-ARIA accordion (collapsible sections) with single- or * multiple-expand and roving header focus (Up/Down/Home/End). Parity: Smart * `smart-accordion`. Controlled via `expanded` + `onChange`; each panel's body * is rendered through the `panel` snippet (receives the item). * * Behavior (expand state, keyboard, ARIA) lives in the headless `createAccordion` * core; this component is one styled renderer over it. */ import type { Snippet } from 'svelte'; import { type EditorDir } from './editor-contract'; import { type AccordionItem, type AccordionExpandMode } from './createAccordion.svelte'; type Props = { items: ReadonlyArray; /** Expanded item ids (controlled). */ expanded?: string[]; onChange?: (expandedIds: string[]) => void; /** 'single' (at most one open) or 'multiple'. Default single. */ expandMode?: AccordionExpandMode; disabled?: boolean; dir?: EditorDir; /** Panel body for an item. */ panel?: Snippet<[AccordionItem]>; }; declare const SvAccordion: import("svelte").Component; type SvAccordion = ReturnType; export default SvAccordion;