import { ComponentProps, ReactNode, SyntheticEvent } from "react"; import { InternalProps, OmitInternalProps, StyledComponentProps } from "../../shared"; declare const DefaultElement = "div"; export interface InnerAccordionProps extends InternalProps, StyledComponentProps { /** * Whether or not the first focusable accordion item should autoFocus on render. */ autoFocus?: boolean | number; /** * React children */ children: ReactNode; /** * The initial value of `expandedKeys` when uncontrolled. */ defaultExpandedKeys?: string[]; /** * A controlled set of expanded item keys. */ expandedKeys?: string[] | null; /** * The type of expansion that is allowed. */ expansionMode?: "single" | "multiple"; /** * Called when an accordion item is toggled. * @param {SyntheticEvent} event - React's original event. * @param {String[]} keys - The keys of the expanded items. * @returns {void} */ onExpansionChange?: (event: SyntheticEvent, keys: string[]) => void; /** * The accordion style to use. */ variant?: "borderless" | "bordered"; } export declare function InnerAccordion({ as, autoFocus, children, defaultExpandedKeys, expandedKeys: expandedKeysProp, expansionMode, forwardedRef, id, onExpansionChange, variant, ...rest }: InnerAccordionProps): JSX.Element; export declare namespace InnerAccordion { var defaultElement: string; } /** * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page. * * [Documentation](https://orbit.sharegate.design/?path=/docs/accordion--default-story) */ export declare const Accordion: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type AccordionProps = ComponentProps; export {};