import React, { type ReactNode, type CSSProperties } from "react"; export type AccordionProps = AccordionProps.Controlled | AccordionProps.Uncontrolled; export declare namespace AccordionProps { type Common = { className?: string; id?: string; titleAs?: `h${2 | 3 | 4 | 5 | 6}`; label: ReactNode; classes?: Partial>; style?: CSSProperties; children: NonNullable; }; type Uncontrolled = Common & { defaultExpanded?: boolean; expanded?: never; onExpandedChange?: (expanded: boolean, e: React.MouseEvent) => void; }; type Controlled = Common & { defaultExpanded?: never; expanded: boolean; onExpandedChange: (expanded: boolean, e: React.MouseEvent) => void; }; } /** @see */ export declare const Accordion: React.MemoExoticComponent>>; export default Accordion;