import React from 'react'; interface UISpoilerProps { children?: React.ReactElement; classNameContainer: string; classNameTitle: string; defaultShow: boolean; description: () => React.ReactNode; render: () => React.ReactNode; show?: boolean; size?: 'small'; styleContainer?: React.CSSProperties; styleDescription?: React.CSSProperties; styleTitle?: React.CSSProperties; text?: string; titleWeight?: 'bold'; toggleShow: (show: boolean | undefined) => void; width?: string; } interface UISpoilerState { show?: boolean; } export declare class UISpoiler extends React.PureComponent { static defaultProps: { defaultShow: boolean; classNameContainer: string; classNameTitle: string; description: () => React.ReactNode; render: () => React.ReactNode; styleContainer: {}; styleTitle: {}; toggleShow: () => void; }; constructor(props: UISpoilerProps); componentDidUpdate(prevProps: UISpoilerProps): void; toggleChildren: () => void; render(): React.ReactElement; } export {};