import { default as React } from 'react'; import { VerticalSpacingSize } from '../../../tedi/components/layout/vertical-spacing'; export interface AccordionProps { /** * Accordion children */ children?: React.ReactNode; /** * Additional class. */ className?: string; /** * Open item's property. Used to control the openItems outside the components. * Should be used with onToggle function */ openItem?: string[]; /** * onToggle handler. */ onToggleItem?: (id: string) => void; /** * The list of IDs items that should be open by default * @default [] */ defaultOpenItem?: string[]; /** * Vertical spacing between AccordionItems * @default 0.5 */ gutter?: VerticalSpacingSize; } export interface IAccordionContext { isOpen: (id: string) => boolean; onToggle: (id: string) => void; } export declare const AccordionContext: React.Context; /** * @deprecated Use the TEDI-Ready `Accordion` from `@tedi-design-system/react/tedi` instead. */ export declare const Accordion: (props: AccordionProps) => JSX.Element; export default Accordion;