import React from 'react'; interface State { showCollapse?: boolean; showExpand?: boolean; noString?: boolean; } interface interfaceLocal { expand: React.ReactNode; collapse: React.ReactNode; } interface propTypes { className?: string; style?: object; maxLine: string | number; content?: string | number; /**点击展开或收起是调用的函数 */ extendsIt?: (state: string) => void; /**文案自定义 */ local: interfaceLocal; } interface defaultType { maxLine: number; local: interfaceLocal; } export default class LPCollapse extends React.Component { static displayName: string; triggerBoxId: string; static defaultProps: defaultType; constructor(props: any); componentDidMount(): void; onExpand: () => void; onCollapse: () => void; render(): any; } export {};