import React, { Component, ReactElement } from 'react'; type Props = { /** Collapse content */ children: any; /** Disables collapsible logic and turns off clickable title if false */ collapsible: boolean; /** Header block comment */ comment?: string; /** Content after title */ headerLeft?: string | ReactElement; /** Content at the right side of header block */ headerRight?: string | ReactElement; /** Trigger collapsible logic if content at the right side of header block clicked */ headerRightTriggersToggle?: boolean; /** ID for identification in DOM */ id?: string; /** Control `CollapseBlock` from outside */ isOpen?: boolean; /** Is called when CollapseBlock is opened */ onOpen?: () => void; /** Collapse title */ title: string; /** * Is fired when `CollapseBlock` toggle is attempted _(use if wish to prevent or catch toggling from outside)_ * * @param {function} toggleCollapse Callback function to toggle collapse */ toggle?: (toggleCollapse: () => void) => void; }; type State = { isAnimating: boolean; isOpen: boolean; }; export declare class CollapseBlock extends Component { static defaultProps: { isOpen: boolean; collapsible: boolean; }; state: { isAnimating: boolean; isOpen: boolean; }; componentDidMount(): void; componentDidUpdate(_: Props, prevState: State): void; componentWillUnmount(): void; getTitle: () => ReactElement; handleKeyDown: (event: React.KeyboardEvent) => void; handleResize: () => void; handleToggle: () => void; toggleCollapse: () => void; headerRightWrapper: () => import("react/jsx-runtime").JSX.Element; render(): import("react/jsx-runtime").JSX.Element; } export {};