import { AccordionOptions } from './accordion.types'; /** * Headless accordion controller. Attaches behaviour, ARIA and keyboard support * to existing markup; it never applies visual styles. * * Expected markup: * ```html *
*
* *
Content
*
*
* ``` */ export declare class Accordion { private readonly root; private readonly multiple; private readonly collapsible; private items; private readonly open; private cleanups; constructor(root: HTMLElement, options?: AccordionOptions); private collect; private init; private onKeydown; private render; private emit; toggle(value: string): void; openItem(value: string): void; closeItem(value: string): void; get value(): string[]; /** Subscribe to a DOM event on the root element. Returns an unsubscribe fn. */ on(event: string, handler: (event: E) => void): () => void; destroy(): void; }