import * as react from 'react'; import { ReactNode, SyntheticEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { InternalProps, StyledComponentProps, OmitInternalProps } from '../../shared/src/types.js'; import '../../styling/src/styled-system/props-handler.js'; import 'csstype'; import '../../styling/src/useResponsiveValue.js'; import '../../styling/src/BreakpointProvider.js'; import '../../shared/src/type-fest.js'; import '../../styling/src/styled-system/StylingContext.js'; declare const DefaultElement = "div"; interface InnerAccordionProps extends InternalProps, Omit, "autoFocus"> { /** * 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"; } declare function InnerAccordion({ as, autoFocus, children, defaultExpandedKeys, expandedKeys: expandedKeysProp, expansionMode, forwardedRef, id, onExpansionChange, variant, ...rest }: InnerAccordionProps): react_jsx_runtime.JSX.Element; 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://wl-orbiter-website.netlify.app/?path=/docs/accordion--default-story) */ declare const Accordion: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type AccordionProps = ComponentProps; export { Accordion, type AccordionProps, InnerAccordion, type InnerAccordionProps };