import { ReactElement, ReactNode } from 'react'; interface Item { id: string; header: (active?: boolean) => ReactElement; body: ReactNode; disabled?: boolean; } export interface AccordionProps { items: Array; onToggle: (id: string) => void; activeItem?: string; themeItem?: string; themeItemBody?: string; themeItemHeader?: string; themeItemHeaderDisabled?: string; } declare function Accordion({ items, onToggle, activeItem, themeItem, themeItemBody, themeItemHeader, themeItemHeaderDisabled }: AccordionProps): ReactElement; declare namespace Accordion { var propTypes: { /** An array of items that represents each tab. Each entry supports: * 1. `id` Identifying value for accordion item. * 2. `header` Contents that are always shown. * 3. `body` Contents that are shown when the accorion is active. * 4. `disabled` Flag to disable the clickability of an accorion item (optional). */ items: any; /** Callback when an accordion header item is clicked. */ onToggle: any; /** Value should coorespond to an `id` within the items array. */ activeItem: any; /** CSS classes to apply to the accordion item container */ themeItem: any; /** CSS classes to apply to the accordion header */ themeItemHeader: any; /** CSS classes to apply to the disabled accordion header */ themeItemHeaderDisabled: any; /** CSS classes to apply to the accordion body */ themeItemBody: any; }; } export default Accordion;