import React from 'react'; import { TooltipProps } from '../Tooltip'; export interface HeaderProps { title: string; expand: boolean; handleToggle: (expand: boolean) => void; infoTooltip?: string | { text: string; position?: TooltipProps['position']; popOutOfOverflowHiddenParent?: boolean; }; invert?: boolean; } export interface HeaderStyle2Props extends HeaderProps { label?: string; percent?: { value: number; }; } export interface AccordionProps { id: string; HeaderStyle?: 'HeaderStyle1' | 'HeaderStyle2' | 'HeaderStyle3'; CustomHeader?: React.ReactNode; noHeader?: boolean; children: React.ReactNode; expand?: boolean; setExpand?: (expand: boolean) => void; title: string; label?: string; infoTooltip?: string | { text: string; position?: TooltipProps['position']; popOutOfOverflowHiddenParent?: boolean; }; invert?: boolean; percent?: { value: number; }; } /** * @component Renders an accordion component with customizable title and content. * * - The props object containing the following properties: * @prop {string} id: A unique ID for the accordion. * @prop {'HeaderStyle1' | 'HeaderStyle2' | 'HeaderStyle3'} HeaderStyle: The style of the accordion header. Defaults to "HeaderStyle1". * @prop {React.FunctionComponent} CustomHeader: A component that will be used instead of generating a header based on the other props. * @prop {boolean} noHeader: A boolean indicating whether to render the header. Defaults to false. * @prop {React.ReactNode} children: The content to be rendered inside the accordion. * @prop {boolean} expand: A boolean indicating whether the accordion is expanded. Defaults to false. * @prop {(expand: boolean) => void} setExpand: A callback function to set the expanded state of the accordion. * @prop {string} title: The title of the accordion. * @prop {string} label: A label to be displayed next to the title. * @prop { string | { text: string; position?: TooltipProps['position']; popOutOfOverflowHiddenParent?: boolean }} infoTooltip: A string or object containing text and optional position & popOutOfOverflowHiddenParent props for the info tooltip. * @prop {boolean} invert: A boolean indicating whether to invert the background color of the accordion. Defaults to false. * @prop {object} percent: An object containing a "value" property for the percent to be displayed in the pie. e.g. {value: 80} * @return {ReactElement} The rendered accordion component. */ export declare const Accordion: React.FunctionComponent;