import { Base, BaseConfig } from '@studiometa/js-toolkit'; import type { BaseProps } from '@studiometa/js-toolkit'; type AccordionItemStates = Partial>>; export interface AccordionItemProps extends BaseProps { $refs: { btn: HTMLElement; content: HTMLElement; container: HTMLElement; }; $options: { isOpen: boolean; styles: Partial>; }; } /** * AccordionItem class. */ export declare class AccordionItem extends Base { /** * Config. */ static config: BaseConfig; /** * Add aria-attributes on mounted. */ mounted(): void; /** * Remove styles on destroy. */ destroyed(): void; /** * Handler for the click event on the `btn` ref. */ onBtnClick(): void; /** * Get the content ID. */ get contentId(): string; /** * Update the refs' attributes according to the given type. */ updateAttributes(isOpen: boolean): void; /** * Open an item. */ open(): Promise; /** * Close an item. */ close(): Promise; } export {};