import React, { ErrorInfo, ReactNode } from 'react';
import { I18nContext } from '../../../../I18n';
export interface ChartErrorBoundaryProps {
/** 子元素 */
children: ReactNode;
/** 错误时的回退UI */
fallback?: ReactNode;
/** 错误回调函数 */
onError?: (error: Error, errorInfo: ErrorInfo) => void;
}
export interface ChartErrorBoundaryState {
hasError: boolean;
/** 用于重试时销毁并重建 children */
retryKey: number;
}
/**
* ChartErrorBoundary 组件 - 图表错误边界组件
*
* 该组件用于捕获图表组件渲染过程中的JavaScript错误,
* 防止错误传播到整个应用程序,并提供友好的错误提示界面。
*
* @component
* @description 图表错误边界组件,用于错误处理和恢复
* @param {ChartErrorBoundaryProps} props - 组件属性
* @param {ReactNode} props.children - 子元素
* @param {ReactNode} [props.fallback] - 错误时的回退UI
* @param {function} [props.onError] - 错误回调函数
* @param {boolean} [props.showError=false] - 是否显示错误详情
* @param {string} [props.className] - 自定义CSS类名
*
* @example
* ```tsx
* 图表加载失败}
* onError={(error, errorInfo) => console.error('Chart error:', error)}
* showError={process.env.NODE_ENV === 'development'}
* >
*
*
* ```
*
* @returns {React.ReactElement} 渲染的错误边界组件
*/
declare class ChartErrorBoundary extends React.Component {
static contextType: React.Context<{
locale: {
table: string;
column: string;
quote: string;
code: string;
attachmentSupportedFormats: string;
localeImage: string;
'b-list': string;
'n-list': string;
't-list': string;
head1: string;
head2: string;
head3: string;
deleteMedia: string;
confirmDelete: string;
delete: string;
assignTo: string;
previewTable: string;
copy: string;
/**
* ChartErrorBoundary 组件 - 图表错误边界组件
*
* 该组件用于捕获图表组件渲染过程中的JavaScript错误,
* 防止错误传播到整个应用程序,并提供友好的错误提示界面。
*
* @component
* @description 图表错误边界组件,用于错误处理和恢复
* @param {ChartErrorBoundaryProps} props - 组件属性
* @param {ReactNode} props.children - 子元素
* @param {ReactNode} [props.fallback] - 错误时的回退UI
* @param {function} [props.onError] - 错误回调函数
* @param {boolean} [props.showError=false] - 是否显示错误详情
* @param {string} [props.className] - 自定义CSS类名
*
* @example
* ```tsx
* 图表加载失败}
* onError={(error, errorInfo) => console.error('Chart error:', error)}
* showError={process.env.NODE_ENV === 'development'}
* >
*
*
* ```
*
* @returns {React.ReactElement} 渲染的错误边界组件
*/
copySuccess: string;
uploadSuccess: string;
uploading: string;
uploadFailed: string;
pieChart: string;
donutChart: string;
radarChart: string;
scatterChart: string;
funnelChart: string;
boxplotChart: string;
histogramChart: string;
configChart: string;
updateChart: string;
barChart: string;
lineChart: string;
columnChart: string;
areaChart: string;
descriptions: string;
docCards: string;
docCardsTags: string;
quadrantChart: string;
dataTime: string;
columns: string;
all: string;
TableSql: string;
ToolCall: string;
RagRetrieval: string;
DeepThink: string;
WebSearch: string;
other: string;
preview: string;
expand: string;
bold: string;
italic: string;
strikethrough: string;
'inline-code': string;
'font-color': string;
collapse: string;
fullScreen: string;
taskComplete: string;
taskAborted: string;
inProgressTask: string;
totalTimeUsed: string;
edit: string;
multipleKnowledgeBases: string;
multipleTables: string;
multipleTools: string;
multipleData: string;
executeSQL: string;
cancel: string;
retry: string;
executing: string;
queryResults: string;
queryFailed: string; /** 重试:清除错误状态并递增 key,使 children 销毁后重建 */
addComment: string;
searchResults: string;
thinking: string;
queryKeyWords: string;
executionResult: string;
deepThinkingInProgress: string;
taskExecutionFailed: string;
executionParameters: string;
apiCalling: string;
networkQuerying: string;
'think.deepThinking': string;
'think.deepThinkingInProgress': string;
switchLanguage: string;
welcome: string;
insertLink: string;
clearFormatting: string;
undo: string;
redo: string;
thoughtChainTitle: string;
thoughtChainDescription: string;
requestBody: string;
urlParameters: string;
queryParameters: string;
searchKeywords: string;
toolDescription: string;
httpMethod: string;
toolName: string;
apiPath: string;
requestData: string;
requestParamsString: string;
responseBody: string;
responseStatus: string;
toolSetId: string;
toolSetVersion: string;
toolInstanceId: string;
errorMessage: string;
apiResponse: string;
documentChunks: string;
tableData: string;
columnNames: string;
documentPreview: string;
loading: string;
finished: string;
aborted: string;
timeUsed: string;
seconds: string;
minutes: string;
hours: string;
days: string;
inputPlaceholder: string;
emptyObjectConfig: string;
close: string;
runCode: string;
rerender: string;
download: string;
copyMarkdown: string;
dragToMove: string;
format: string;
removeLink: string;
largeTitle: string;
paragraphTitle: string;
smallTitle: string;
bodyText: string;
leftAlign: string;
centerAlign: string;
rightAlign: string;
inlineImage: string;
blockImage: string;
quickSettings: string;
elements: string;
media: string;
list: string;
heading: string;
clickToPreview: string;
agentRunBar: {
running: string;
timeUsedPrefix: string;
calling: string;
taskCompleted: string;
taskStopped: string;
taskReplaying: string;
createNewTask: string;
replayTask: string;
newTask: string;
submitTask: string;
play: string;
pause: string;
stop: string;
};
'chat.history': string;
'chat.history.delete': string;
'chat.history.delete.popconfirm': string;
'chat.history.favorited': string;
'chat.history.favorite': string;
'chat.history.unfavorite': string;
'chat.history.search': string;
'chat.history.search.placeholder': string;
'chat.history.newChat': string;
'chat.history.loadMore': string;
'task.history.loadMore': string;
'chat.history.historyTasks': string;
'chat.history.historyChats': string;
'chat.task.search.placeholder': string;
'chat.history.empty.chat.title': string;
'chat.history.empty.chat.description': string;
'chat.history.empty.task.title': string;
'chat.history.empty.task.description': string;
'chat.history.time.today': string;
'chat.history.time.yesterday': string;
'chat.history.time.withinWeek': string;
'taskList.expand': string;
'taskList.collapse': string;
'taskList.taskList': string;
'taskList.taskComplete': string;
'taskList.taskAborted': string;
'taskList.taskInProgress': string;
'taskList.totalTimeUsed': string;
'chat.message.thinking': string;
'chat.message.referenceDocument': string;
'chat.message.viewOriginal': string;
'chat.message.generateFailed': string;
'chat.message.preview': string;
'workspace.file.fileName': string;
'workspace.file.fileSize': string;
'workspace.file.clickToDownload': string;
'workspace.file.cannotGetImagePreview': string;
'workspace.file.cannotGetVideoPreview': string;
'workspace.file.cannotGetAudioPreview': string;
'workspace.file.cannotGetPdfPreview': string;
'workspace.file.unknownFileType': string;
'workspace.file.generationTime': string;
'workspace.file.backToFileList': string;
'workspace.file.download': string;
'workspace.file.share': string;
'workspace.file.preview': string;
'workspace.file.location': string;
'workspace.file.linkCopied': string;
'workspace.file.copyFailed': string;
'markdownInput.fileSizeExceeded': string;
'markdownInput.maxFileCountExceeded': string;
'markdownInput.minFileCountRequired': string;
'docInfo.name': string;
'docInfo.updateTime': string;
'docInfo.type': string;
'docInfo.content': string;
'docInfo.referenceContent': string;
'docInfo.items': string;
'docInfo.expand': string;
'docInfo.collapse': string;
'task.default': string;
'error.unexpected': string;
'chat.message.aborted': string;
'chat.message.retrySend': string;
'chat.message.generating': string;
'chat.message.copy': string;
'chat.message.like': string;
'chat.message.cancel-like': string;
'chat.message.feedback-success': string;
'chat.message.dislike': string;
'chat.message.exception': string;
'chat.message.error': string;
'chat.message.error.retry': string;
'chat.message.timeout': string;
'chat.message.copy.success': string;
'chat.message.copy.error': string;
'chat.inputArea.placeholder': string;
'chat.inputArea.max_input_length': string;
'chat.list.helloMessage': string;
'chat.newsession.popconfirm': string;
'chat.newsession': string;
'chat.close': string;
'chat.helloMessage.pre_hello_text': string;
'htmlPreview.preview': string;
'htmlPreview.code': string;
'htmlPreview.renderFailed': string;
'workspace.realtimeFollow': string;
'workspace.browser': string;
'workspace.task': string;
'workspace.file': string;
'workspace.fileTree': string;
'workspace.custom': string;
'workspace.terminalExecution': string;
'workspace.createHtmlFile': string;
'workspace.markdownContent': string;
'workspace.closeWorkspace': string;
'workspace.expand': string;
'workspace.collapse': string;
'workspace.group': string;
'workspace.loadingPreview': string;
'workspace.previewLoadFailed': string;
'workspace.previewError': string;
'workspace.processingFile': string;
'workspace.fileProcessFailed': string;
'workspace.loadingFileContent': string;
'workspace.textContentLoadFailed': string;
'workspace.fileProcessError': string;
'workspace.download': string;
'workspace.empty': string;
'workspace.file.showMore': string;
'workspace.file.showMoreFiles': string;
'workspace.title': string;
'workspace.searchPlaceholder': string;
'workspace.fileTreeSearchPlaceholder': string;
'workspace.noResultsFor': string;
'workspace.treeFilterNoMatchVisibleRoots': string;
'workspace.treeFilterNoMatchInExpanded': string;
'workspace.file.generating': string;
'workspace.file.processing': string;
'workspace.file.processFailed': string;
'toolbar.bold': string;
'toolbar.italic': string;
'toolbar.strikethrough': string;
'toolbar.inlineCode': string;
'toolbar.alignLeft': string;
'toolbar.alignCenter': string;
'toolbar.alignRight': string;
'schemaEditor.realtimePreview': string;
'schemaEditor.htmlTemplate': string;
'schemaEditor.schemaJson': string;
'schemaEditor.run': string;
'schemaEditor.copy': string;
'schemaEditor.copySuccess': string;
'schemaEditor.copyFailed': string;
'schemaEditor.noContentToCopy': string;
'schemaEditor.validationFailed': string;
'schemaEditor.schemaSerializationError': string;
'schemaEditor.schemaParseError': string;
'schemaEditor.previewLoadFailed': string;
'schemaEditor.checkSchemaFormat': string;
'schemaEditor.inputSchemaToPreview': string;
'schemaEditor.untitledSchema': string;
'webSearch.noResults': string;
'webSearch.searchFailed': string;
'webSearch.networkError': string;
'webSearch.timeout': string;
'webSearch.retry': string;
'chatFlow.collapseLeft': string;
'chatFlow.collapseRight': string;
'chatFlow.share': string;
'chatFlow.shareDialog': string;
'suggestion.area': string;
'suggestion.label': string;
'suggestion.searchMore': string;
'suggestion.select': string;
'suggestion.followUp': string;
'voice.unsupported': string;
'voice.stop': string;
'voice.play': string;
'input.fileUpload': string;
'input.attachmentListTitle': string;
'input.voiceInput': string;
'input.voiceInputting': string;
'input.placeholder': string;
'input.selectFile': string;
'input.openGallery': string;
'input.openFile': string;
'input.supportedFormatMessage': string;
'input.sendButtonTooltip.send': string;
'input.sendButtonTooltip.newline': string;
'input.sendButtonTooltip.send.mod': string;
'input.sendButtonTooltip.newline.mod': string;
'input.sendButtonAriaLabel.send': string;
'input.sendButtonAriaLabel.stop': string;
'input.typing.hint': string;
'input.dnd.hint': string;
'common.name': string;
'common.updateTime': string;
'common.type': string;
'common.content': string;
'common.understand': string;
'common.conversionRate': string;
'common.conversion': string;
'common.assignTo': string;
'common.searchFileName': string;
'common.fileProcessFailed': string;
'common.loadTextFailed': string;
'common.downloadFile': string;
'common.regenerate': string;
'common.user': string;
'common.assistant': string;
'common.save': string;
'common.image': string;
'common.document': string;
'common.audio': string;
'common.video': string;
'common.imageLink': string;
'common.textFile': string;
'common.compressedFile': string;
'common.configFile': string;
'upload.notConfigured': string;
'upload.failed': string;
'browser.noResults': string;
'browser.totalResults': string;
'browser.searching': string;
'layout.header.title': string;
localPreview: string;
expandCollapse: string;
moreActions: string;
clickToRetry: string;
'table.insertColumnBefore': string;
'table.deleteColumn': string;
'table.insertColumnAfter': string;
'table.insertRowBefore': string;
'table.deleteRow': string;
'table.insertRowAfter': string;
'table.clickToShowActions': string;
'table.clickToSelectColumn': string;
'table.clickToSelectTable': string;
'comment.delete': string;
'comment.edit': string;
'comment.jumpTo': string;
'chart.renderFailed': string;
'chart.renderFailedSubTitle': string;
'chart.retry': string;
'chart.legend.show': string;
'chart.legend.hide': string;
'chart.legend.prevPage': string;
'chart.legend.nextPage': string;
'chart.legend.remaining': string;
'refine.loading': string;
'refine.oneClickOptimize': string;
'refine.optimizePrompt': string;
'jinja.panel.title': string;
'jinja.panel.docLink': string;
'jinja.panel.close': string;
'jinja.panel.noTemplates': string;
'jinja.template.variableInterpolation.title': string;
'jinja.template.variableInterpolation.description': string;
'jinja.template.condition.title': string;
'jinja.template.condition.description': string;
'jinja.template.loop.title': string;
'jinja.template.loop.description': string;
'jinja.template.filter.title': string;
'jinja.template.filter.description': string;
'jinja.template.setVariable.title': string;
'jinja.template.setVariable.description': string;
'schemaForm.invalidFormat': string;
'schemaForm.mustBeNumber': string;
'schemaForm.minValue': string;
'schemaForm.maxValue': string;
'schemaForm.minItems': string;
'schemaForm.maxItems': string;
'schemaForm.addItem': string;
'schemaForm.deleteItem': string;
'fileType.plainText': string;
'fileType.image': string;
'fileType.video': string;
'fileType.audio': string;
'fileType.pdf': string;
'fileType.word': string;
'fileType.excel': string;
'fileType.csv': string;
'fileType.archive': string;
'fileType.shell': string;
'fileType.config': string;
'fileType.powerpoint': string;
'workspace.file.unsupportedPreview': string;
'workspace.file.unsupportedPreviewNoDownload': string;
'workspace.file.downloadButton': string;
'workspace.file.videoNotSupported': string;
'workspace.file.audioNotSupported': string;
'workspace.file.fileType': string;
enlarge: string;
shrink: string;
'skillMode.region': string;
'skillMode.close': string;
'chatBootPage.caseReply.viewReplay': string;
'chatBootPage.tabIconAction': string;
'editor.embedMediaLinks': string;
'editor.pasteMediaLink': string;
'editor.embed': string;
'editor.local': string;
'editor.chooseFile': string;
'editor.embedLink': string;
'editor.pasteAttachmentLink': string;
'code.searchLanguage': string;
};
language: "zh-CN" | "en-US";
setLanguage?: ((language: "zh-CN" | "en-US") => void) | undefined;
setLocale?: ((locale: {
table: string;
column: string;
quote: string;
code: string;
attachmentSupportedFormats: string;
localeImage: string;
'b-list': string;
'n-list': string;
't-list': string;
head1: string;
head2: string;
head3: string;
deleteMedia: string;
confirmDelete: string;
delete: string;
assignTo: string;
previewTable: string;
copy: string;
/**
* ChartErrorBoundary 组件 - 图表错误边界组件
*
* 该组件用于捕获图表组件渲染过程中的JavaScript错误,
* 防止错误传播到整个应用程序,并提供友好的错误提示界面。
*
* @component
* @description 图表错误边界组件,用于错误处理和恢复
* @param {ChartErrorBoundaryProps} props - 组件属性
* @param {ReactNode} props.children - 子元素
* @param {ReactNode} [props.fallback] - 错误时的回退UI
* @param {function} [props.onError] - 错误回调函数
* @param {boolean} [props.showError=false] - 是否显示错误详情
* @param {string} [props.className] - 自定义CSS类名
*
* @example
* ```tsx
* 图表加载失败}
* onError={(error, errorInfo) => console.error('Chart error:', error)}
* showError={process.env.NODE_ENV === 'development'}
* >
*
*
* ```
*
* @returns {React.ReactElement} 渲染的错误边界组件
*/
copySuccess: string;
uploadSuccess: string;
uploading: string;
uploadFailed: string;
pieChart: string;
donutChart: string;
radarChart: string;
scatterChart: string;
funnelChart: string;
boxplotChart: string;
histogramChart: string;
configChart: string;
updateChart: string;
barChart: string;
lineChart: string;
columnChart: string;
areaChart: string;
descriptions: string;
docCards: string;
docCardsTags: string;
quadrantChart: string;
dataTime: string;
columns: string;
all: string;
TableSql: string;
ToolCall: string;
RagRetrieval: string;
DeepThink: string;
WebSearch: string;
other: string;
preview: string;
expand: string;
bold: string;
italic: string;
strikethrough: string;
'inline-code': string;
'font-color': string;
collapse: string;
fullScreen: string;
taskComplete: string;
taskAborted: string;
inProgressTask: string;
totalTimeUsed: string;
edit: string;
multipleKnowledgeBases: string;
multipleTables: string;
multipleTools: string;
multipleData: string;
executeSQL: string;
cancel: string;
retry: string;
executing: string;
queryResults: string;
queryFailed: string; /** 重试:清除错误状态并递增 key,使 children 销毁后重建 */
addComment: string;
searchResults: string;
thinking: string;
queryKeyWords: string;
executionResult: string;
deepThinkingInProgress: string;
taskExecutionFailed: string;
executionParameters: string;
apiCalling: string;
networkQuerying: string;
'think.deepThinking': string;
'think.deepThinkingInProgress': string;
switchLanguage: string;
welcome: string;
insertLink: string;
clearFormatting: string;
undo: string;
redo: string;
thoughtChainTitle: string;
thoughtChainDescription: string;
requestBody: string;
urlParameters: string;
queryParameters: string;
searchKeywords: string;
toolDescription: string;
httpMethod: string;
toolName: string;
apiPath: string;
requestData: string;
requestParamsString: string;
responseBody: string;
responseStatus: string;
toolSetId: string;
toolSetVersion: string;
toolInstanceId: string;
errorMessage: string;
apiResponse: string;
documentChunks: string;
tableData: string;
columnNames: string;
documentPreview: string;
loading: string;
finished: string;
aborted: string;
timeUsed: string;
seconds: string;
minutes: string;
hours: string;
days: string;
inputPlaceholder: string;
emptyObjectConfig: string;
close: string;
runCode: string;
rerender: string;
download: string;
copyMarkdown: string;
dragToMove: string;
format: string;
removeLink: string;
largeTitle: string;
paragraphTitle: string;
smallTitle: string;
bodyText: string;
leftAlign: string;
centerAlign: string;
rightAlign: string;
inlineImage: string;
blockImage: string;
quickSettings: string;
elements: string;
media: string;
list: string;
heading: string;
clickToPreview: string;
agentRunBar: {
running: string;
timeUsedPrefix: string;
calling: string;
taskCompleted: string;
taskStopped: string;
taskReplaying: string;
createNewTask: string;
replayTask: string;
newTask: string;
submitTask: string;
play: string;
pause: string;
stop: string;
};
'chat.history': string;
'chat.history.delete': string;
'chat.history.delete.popconfirm': string;
'chat.history.favorited': string;
'chat.history.favorite': string;
'chat.history.unfavorite': string;
'chat.history.search': string;
'chat.history.search.placeholder': string;
'chat.history.newChat': string;
'chat.history.loadMore': string;
'task.history.loadMore': string;
'chat.history.historyTasks': string;
'chat.history.historyChats': string;
'chat.task.search.placeholder': string;
'chat.history.empty.chat.title': string;
'chat.history.empty.chat.description': string;
'chat.history.empty.task.title': string;
'chat.history.empty.task.description': string;
'chat.history.time.today': string;
'chat.history.time.yesterday': string;
'chat.history.time.withinWeek': string;
'taskList.expand': string;
'taskList.collapse': string;
'taskList.taskList': string;
'taskList.taskComplete': string;
'taskList.taskAborted': string;
'taskList.taskInProgress': string;
'taskList.totalTimeUsed': string;
'chat.message.thinking': string;
'chat.message.referenceDocument': string;
'chat.message.viewOriginal': string;
'chat.message.generateFailed': string;
'chat.message.preview': string;
'workspace.file.fileName': string;
'workspace.file.fileSize': string;
'workspace.file.clickToDownload': string;
'workspace.file.cannotGetImagePreview': string;
'workspace.file.cannotGetVideoPreview': string;
'workspace.file.cannotGetAudioPreview': string;
'workspace.file.cannotGetPdfPreview': string;
'workspace.file.unknownFileType': string;
'workspace.file.generationTime': string;
'workspace.file.backToFileList': string;
'workspace.file.download': string;
'workspace.file.share': string;
'workspace.file.preview': string;
'workspace.file.location': string;
'workspace.file.linkCopied': string;
'workspace.file.copyFailed': string;
'markdownInput.fileSizeExceeded': string;
'markdownInput.maxFileCountExceeded': string;
'markdownInput.minFileCountRequired': string;
'docInfo.name': string;
'docInfo.updateTime': string;
'docInfo.type': string;
'docInfo.content': string;
'docInfo.referenceContent': string;
'docInfo.items': string;
'docInfo.expand': string;
'docInfo.collapse': string;
'task.default': string;
'error.unexpected': string;
'chat.message.aborted': string;
'chat.message.retrySend': string;
'chat.message.generating': string;
'chat.message.copy': string;
'chat.message.like': string;
'chat.message.cancel-like': string;
'chat.message.feedback-success': string;
'chat.message.dislike': string;
'chat.message.exception': string;
'chat.message.error': string;
'chat.message.error.retry': string;
'chat.message.timeout': string;
'chat.message.copy.success': string;
'chat.message.copy.error': string;
'chat.inputArea.placeholder': string;
'chat.inputArea.max_input_length': string;
'chat.list.helloMessage': string;
'chat.newsession.popconfirm': string;
'chat.newsession': string;
'chat.close': string;
'chat.helloMessage.pre_hello_text': string;
'htmlPreview.preview': string;
'htmlPreview.code': string;
'htmlPreview.renderFailed': string;
'workspace.realtimeFollow': string;
'workspace.browser': string;
'workspace.task': string;
'workspace.file': string;
'workspace.fileTree': string;
'workspace.custom': string;
'workspace.terminalExecution': string;
'workspace.createHtmlFile': string;
'workspace.markdownContent': string;
'workspace.closeWorkspace': string;
'workspace.expand': string;
'workspace.collapse': string;
'workspace.group': string;
'workspace.loadingPreview': string;
'workspace.previewLoadFailed': string;
'workspace.previewError': string;
'workspace.processingFile': string;
'workspace.fileProcessFailed': string;
'workspace.loadingFileContent': string;
'workspace.textContentLoadFailed': string;
'workspace.fileProcessError': string;
'workspace.download': string;
'workspace.empty': string;
'workspace.file.showMore': string;
'workspace.file.showMoreFiles': string;
'workspace.title': string;
'workspace.searchPlaceholder': string;
'workspace.fileTreeSearchPlaceholder': string;
'workspace.noResultsFor': string;
'workspace.treeFilterNoMatchVisibleRoots': string;
'workspace.treeFilterNoMatchInExpanded': string;
'workspace.file.generating': string;
'workspace.file.processing': string;
'workspace.file.processFailed': string;
'toolbar.bold': string;
'toolbar.italic': string;
'toolbar.strikethrough': string;
'toolbar.inlineCode': string;
'toolbar.alignLeft': string;
'toolbar.alignCenter': string;
'toolbar.alignRight': string;
'schemaEditor.realtimePreview': string;
'schemaEditor.htmlTemplate': string;
'schemaEditor.schemaJson': string;
'schemaEditor.run': string;
'schemaEditor.copy': string;
'schemaEditor.copySuccess': string;
'schemaEditor.copyFailed': string;
'schemaEditor.noContentToCopy': string;
'schemaEditor.validationFailed': string;
'schemaEditor.schemaSerializationError': string;
'schemaEditor.schemaParseError': string;
'schemaEditor.previewLoadFailed': string;
'schemaEditor.checkSchemaFormat': string;
'schemaEditor.inputSchemaToPreview': string;
'schemaEditor.untitledSchema': string;
'webSearch.noResults': string;
'webSearch.searchFailed': string;
'webSearch.networkError': string;
'webSearch.timeout': string;
'webSearch.retry': string;
'chatFlow.collapseLeft': string;
'chatFlow.collapseRight': string;
'chatFlow.share': string;
'chatFlow.shareDialog': string;
'suggestion.area': string;
'suggestion.label': string;
'suggestion.searchMore': string;
'suggestion.select': string;
'suggestion.followUp': string;
'voice.unsupported': string;
'voice.stop': string;
'voice.play': string;
'input.fileUpload': string;
'input.attachmentListTitle': string;
'input.voiceInput': string;
'input.voiceInputting': string;
'input.placeholder': string;
'input.selectFile': string;
'input.openGallery': string;
'input.openFile': string;
'input.supportedFormatMessage': string;
'input.sendButtonTooltip.send': string;
'input.sendButtonTooltip.newline': string;
'input.sendButtonTooltip.send.mod': string;
'input.sendButtonTooltip.newline.mod': string;
'input.sendButtonAriaLabel.send': string;
'input.sendButtonAriaLabel.stop': string;
'input.typing.hint': string;
'input.dnd.hint': string;
'common.name': string;
'common.updateTime': string;
'common.type': string;
'common.content': string;
'common.understand': string;
'common.conversionRate': string;
'common.conversion': string;
'common.assignTo': string;
'common.searchFileName': string;
'common.fileProcessFailed': string;
'common.loadTextFailed': string;
'common.downloadFile': string;
'common.regenerate': string;
'common.user': string;
'common.assistant': string;
'common.save': string;
'common.image': string;
'common.document': string;
'common.audio': string;
'common.video': string;
'common.imageLink': string;
'common.textFile': string;
'common.compressedFile': string;
'common.configFile': string;
'upload.notConfigured': string;
'upload.failed': string;
'browser.noResults': string;
'browser.totalResults': string;
'browser.searching': string;
'layout.header.title': string;
localPreview: string;
expandCollapse: string;
moreActions: string;
clickToRetry: string;
'table.insertColumnBefore': string;
'table.deleteColumn': string;
'table.insertColumnAfter': string;
'table.insertRowBefore': string;
'table.deleteRow': string;
'table.insertRowAfter': string;
'table.clickToShowActions': string;
'table.clickToSelectColumn': string;
'table.clickToSelectTable': string;
'comment.delete': string;
'comment.edit': string;
'comment.jumpTo': string;
'chart.renderFailed': string;
'chart.renderFailedSubTitle': string;
'chart.retry': string;
'chart.legend.show': string;
'chart.legend.hide': string;
'chart.legend.prevPage': string;
'chart.legend.nextPage': string;
'chart.legend.remaining': string;
'refine.loading': string;
'refine.oneClickOptimize': string;
'refine.optimizePrompt': string;
'jinja.panel.title': string;
'jinja.panel.docLink': string;
'jinja.panel.close': string;
'jinja.panel.noTemplates': string;
'jinja.template.variableInterpolation.title': string;
'jinja.template.variableInterpolation.description': string;
'jinja.template.condition.title': string;
'jinja.template.condition.description': string;
'jinja.template.loop.title': string;
'jinja.template.loop.description': string;
'jinja.template.filter.title': string;
'jinja.template.filter.description': string;
'jinja.template.setVariable.title': string;
'jinja.template.setVariable.description': string;
'schemaForm.invalidFormat': string;
'schemaForm.mustBeNumber': string;
'schemaForm.minValue': string;
'schemaForm.maxValue': string;
'schemaForm.minItems': string;
'schemaForm.maxItems': string;
'schemaForm.addItem': string;
'schemaForm.deleteItem': string;
'fileType.plainText': string;
'fileType.image': string;
'fileType.video': string;
'fileType.audio': string;
'fileType.pdf': string;
'fileType.word': string;
'fileType.excel': string;
'fileType.csv': string;
'fileType.archive': string;
'fileType.shell': string;
'fileType.config': string;
'fileType.powerpoint': string;
'workspace.file.unsupportedPreview': string;
'workspace.file.unsupportedPreviewNoDownload': string;
'workspace.file.downloadButton': string;
'workspace.file.videoNotSupported': string;
'workspace.file.audioNotSupported': string;
'workspace.file.fileType': string;
enlarge: string;
shrink: string;
'skillMode.region': string;
'skillMode.close': string;
'chatBootPage.caseReply.viewReplay': string;
'chatBootPage.tabIconAction': string;
'editor.embedMediaLinks': string;
'editor.pasteMediaLink': string;
'editor.embed': string;
'editor.local': string;
'editor.chooseFile': string;
'editor.embedLink': string;
'editor.pasteAttachmentLink': string;
'code.searchLanguage': string;
}) => void) | undefined;
}>;
context: React.ContextType;
/** 本轮错误是否已自动重试过,用于“自动重试一次” */
private _hasAutoRetried;
constructor(props: ChartErrorBoundaryProps);
/** 重试:清除错误状态并递增 key,使 children 销毁后重建 */
handleRetry: () => void;
static getDerivedStateFromError(_error: Error): Partial;
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
render(): ReactNode;
}
export default ChartErrorBoundary;