import { ReactNode } from 'react'; interface AccordionRootOwnProps { /** `AccordionItem`s. */ children?: ReactNode; /** * Controlled open item(s). A single value in single-open mode, an array when `multiple`. * * When provided, internal state is bypassed. */ value?: string | string[]; /** Initial open item(s) (uncontrolled). Ignored when `value` is provided. */ defaultValue?: string | string[]; /** * Fires whenever the open item(s) change. * * Receives a single value (or `undefined` when all closed) in single-open mode, or the full array in `multiple` mode. */ onValueChange?: (value: string | string[] | undefined) => void; /** Allow more than one item open at once. Selection becomes an array. Default `false`. */ multiple?: boolean; /** Disable the whole accordion - every item's trigger stops toggling. */ disabled?: boolean; } export type AccordionRootProps = AccordionRootOwnProps; /** Shape of `AccordionRoot` defaults that can be supplied via `CladdProvider`'s `defaults` prop. */ export type AccordionRootDefaultProps = Partial>; /** * Stateful, non-visual root for a set of disclosures. Owns the open value(s) - * controlled via `value`/`onValueChange` or uncontrolled via `defaultValue` - * and the single-vs-`multiple` mode, publishing them to `AccordionItem`s * through context. Renders no DOM of its own. * * Single-open mode collapses to nothing when you re-toggle the open item; * `multiple` mode toggles each item independently. * * @example * * * *
*
* *
*/ export declare const AccordionRoot: (props: AccordionRootProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=AccordionRoot.d.ts.map