import React from 'react'; import { RecordTypeEnum, RecordActionEnum } from './enum'; import { type RecordProps } from './interface'; import type { DataItemType, HandleDataType, CommentTypeMap } from './interface'; interface RecordState { active: RecordTypeEnum; entering: boolean; sendId: string | null; sendType: RecordActionEnum; commentInputVal: string; commentInputPlaceholder: string; } declare class Record extends React.Component { messageContentRef: any; openKeyDownMonitor: boolean; static loading: typeof RecordLoading; static defaultProps: { nav: any[]; showHead: boolean; showFoot: boolean; title: string; isSort: boolean; refFn: () => void; }; constructor(props: RecordProps); componentWillUnmount(): void; static getDerivedStateFromProps(nextProps: RecordProps, prevState: RecordProps): any; handleKeyDown: (e: any) => void; getCommentMap: (data: DataItemType[]) => CommentTypeMap; handleData: () => HandleDataType; handleScrollToBottom(type?: RecordTypeEnum): void; handleReset(): void; changeActive: (type: RecordTypeEnum) => void; deleteComment(id: string): void; sendComment: () => void; onEvent: (type: RecordTypeEnum, id: string, action: RecordActionEnum) => void; renderHead(): JSX.Element; renderContent(): JSX.Element; renderFootReply(): JSX.Element; renderFoot(): JSX.Element; render(): JSX.Element; } export default Record; declare function RecordLoading(): JSX.Element;