import * as React from 'react'; import { IDiv } from '../../interfaces'; interface CollapseProps extends IDiv { /** * When accordion prop is true, only one panel will be active * @default false */ accordion?: boolean; /** * Render border around the collapse block * @default true */ bordered?: boolean; /** * Disables arrow icon in header component * @default false */ noIcon?: boolean; /** * If true, can't change active panel with click to header */ unclickable?: boolean; /** * Callback function when active panel is changed */ onPanelChange?: (key?: any, index?: any, state?: any) => void; /** * Index of expanded panel or panels (index starts with one(1) not zero(0)) * @default [] */ activePanels?: number[]; /** * Initial expanded panel index */ defaultActive?: number; /** * Additional classes */ className?: string; /** * If true, can't change active panel with click to header */ isActivePanelDisabled?: boolean; } interface CollapseState { activePanels?: number[]; } export declare class Collapse extends React.PureComponent { static defaultProps: { accordion: boolean; unclickable: boolean; bordered: boolean; noIcon: boolean; activePanels: any[]; isActivePanelDisabled: boolean; }; constructor(props: any); static getDerivedStateFromProps({ activePanels }: { activePanels?: any[]; }, state: any): any[] | { activePanels: any[]; prevValue: any[]; }; private onHandleChange; componentDidMount(): void; render(): JSX.Element; } export {};