import { FC, PropsWithChildren } from 'react'; import { AccordionSize } from './types.js'; import { ViewProps } from 'react-native'; interface AccordionProps extends ViewProps { /** * Controlled list of opened item values. * When provided, the accordion becomes controlled and ignores internal state. */ opened?: string[]; /** * Initial list of opened item values (uncontrolled). * Used only on first render if `opened` is not provided. */ defaultOpened?: string[]; /** * Callback triggered when the list of opened items changes. * * @param opened - Array of values corresponding to opened items. */ onChangeOpen?: (opened: string[]) => void; /** * Allows multiple accordion items to be opened simultaneously. * If false (default), only one item can be opened at a time. */ multiple?: boolean; /** * Adds visual separators between accordion items. * Can be overridden per item via the `separated` prop on `AccordionItem`. */ separated?: boolean; /** * Controls the size of all accordion items. * Affects padding, icon size, and typography within each item. */ size?: AccordionSize; } declare const Accordion: FC>; export { Accordion, type AccordionProps };