import { ElementType, HTMLAttributes, ReactElement, default as React } from 'react'; import { PolymorphicComponentPropsWithRef } from '../../typings'; interface AccordionItemContext { index: number; panel: string; button: string; prefixId: string; } declare const AccordionItemContext: React.Context; interface Props extends HTMLAttributes { /** * ID to find this component in testing tools (e.g.: cypress, * testing-library, and jest). */ testId?: string; /** * Index of the current accordion item within the accordion. */ index?: number; /** * Namespace ID prefix for the current Accordion item's panel and button * to avoid ID duplication when multiple instances are on the same page. */ prefixId?: string; } export type AccordionItemProps = PolymorphicComponentPropsWithRef; type AccordionItemComponent = (props: AccordionItemProps) => ReactElement | null; declare const AccordionItem: AccordionItemComponent; export declare function useAccordionItem(): AccordionItemContext; export default AccordionItem; //# sourceMappingURL=AccordionItem.d.ts.map