import { ComponentProps, ReactNode } from 'react'; import { Gap } from '../../generated.js'; export type AccordionProps = Omit, "children"> & { children?: ReactNode; defaultOpen?: string | null; gap?: Gap; items: readonly string[]; }; export declare function Accordion({ children, className, defaultOpen, gap, items, ...props }: AccordionProps): import("react").JSX.Element; /** * Controlled open state for one accordion item, or `null` when the caller is * not one: outside any accordion, without an identity, or an identity that is * not among the accordion's direct children — so collapsibles nested inside an * item's content keep their own local state. */ export declare function useAccordionItem(item: string | undefined): { open: boolean; setOpen: (open: boolean) => void; } | null;