import * as React from 'react'; export declare enum AccordionIconPosition { left = "left", none = "none", right = "right" } export interface UseAccordionProps { /** * Index of the accordion panel expanded by default. If multiple panels are allowed, takes an array. * @default null */ defaultIndex?: number[] | number; /** * Position of the chevron icon. If 'none', the icon will not render at all. * @default AccordionIconPosition.right */ iconPosition?: AccordionIconPosition; index?: number[] | number; isInverse?: boolean; /** * If true, multiple accordion items may be expanded at once * @default true */ isMulti?: boolean; /** * Event that fires when an accordion button is clicked */ onExpandedChange?: (event: any) => void; /** * @internal */ testId?: string; } interface AccordionContextInterface { buttonRefArray?: React.MutableRefObject[]>; expandedIndex?: number[] | number; iconPosition?: AccordionIconPosition; isControlled?: boolean; isMulti?: boolean; onExpandedChange?: any; setExpandedIndex?: any; registerAccordionButton: (itemRefArray: React.MutableRefObject[]>, itemRef: React.MutableRefObject) => void; } export declare const AccordionContext: React.Context; export declare function useAccordion(props: UseAccordionProps): { contextValue: { buttonRefArray: React.MutableRefObject[]>; expandedIndex: number | number[]; iconPosition: AccordionIconPosition; isControlled: boolean; isMulti: boolean; onExpandedChange: (event: any) => void; registerAccordionButton: (refArray: React.MutableRefObject[]>, ref: React.MutableRefObject) => void; setExpandedIndex: React.Dispatch>; }; }; export declare type UseAccordionReturn = ReturnType; export {};