import { ReactNode, RefObject } from 'react'; import { FieldVariant } from '../../styles/borderedField'; import { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './FAQ.styles'; export interface FAQEntry { title: ReactNode; /** A string or JSX, or an array of strings rendered as a bullet list. */ content: ReactNode; } export interface FAQProps { items: readonly FAQEntry[]; /** Do not scroll the opened item into view. */ noScroll?: boolean; /** Ref to a custom scrollbar (in a modal); scrolled to the bottom when an item opens. */ scrollRef?: RefObject<{ scrollToBottom: () => void; } | null>; /** Title style used inside the "view more" modal. */ modalViewMore?: boolean; /** Smaller, indented text for answers given as a list of strings. */ withTextStyling?: boolean; /** Prefix for data-cy: `{prefix}-accordion`, `{prefix}-item-{slug}-toggle`, etc. */ dataCyPrefix?: string; /** `bordered`: each item is a card (sign-up redesign). Default keeps the plain list. */ variant?: FieldVariant; } /** Accordion of questions and answers; one item is open at a time. */ export declare const FAQ: (props: FAQProps) => import("react/jsx-runtime").JSX.Element; export { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon }; export default FAQ;