/**
* useLanguage Hook - 语言切换 Hook
*
* 该 Hook 提供语言切换的便捷接口,包括当前语言状态、切换语言方法等。
* 自动与 Ant Design ConfigProvider 和浏览器语言设置同步。
*
* @description 语言切换 Hook,提供语言状态和切换方法
* @returns {Object} 语言相关的状态和方法
* @returns {string} returns.language - 当前语言 ('zh-CN' | 'en-US')
* @returns {Object} returns.locale - 当前语言的标签对象
* @returns {Function} returns.setLanguage - 切换语言的方法
* @returns {Function} returns.toggleLanguage - 切换中英文的方法
* @returns {boolean} returns.isChinese - 是否为中文
* @returns {boolean} returns.isEnglish - 是否为英文
*
* @example
* ```tsx
* const { language, locale, setLanguage, toggleLanguage, isChinese } = useLanguage();
*
* // 切换到英文
* setLanguage('en-US');
*
* // 切换中英文
* toggleLanguage();
*
* // 根据语言显示不同内容
* return (
*
* {isChinese ? '中文内容' : 'English Content'}
*
*
* );
* ```
*
* @remarks
* - 必须在 I18nProvide 组件内部使用
* - 自动与 Ant Design ConfigProvider 同步
* - 支持 localStorage 持久化
* - 提供便捷的语言判断方法
*/
export declare function useLanguage(): {
language: "zh-CN" | "en-US";
locale: {
attachmentSingleMax: string;
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;
copySuccess: string;
uploadSuccess: string;
uploading: string;
uploadFailed: string;
pieChart: string;
donutChart: string;
radarChart: string;
scatterChart: string;
funnelChart: string;
configChart: string;
updateChart: string;
barChart: string;
lineChart: string;
columnChart: string;
areaChart: string;
descriptions: 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;
taskFinished: string;
taskCost: 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;
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;
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;
'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.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.title': string;
'workspace.searchPlaceholder': string;
'workspace.noResultsFor': 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;
'input.fileUpload': string;
'input.voiceInput': string;
'input.voiceInputting': string;
'input.placeholder': string;
'input.selectFile': string;
'input.openGallery': string;
'input.openFile': string;
'input.sendButtonTooltip.send': string;
'input.sendButtonTooltip.newline': 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;
};
setLanguage: ((language: "zh-CN" | "en-US") => void) | undefined;
toggleLanguage: () => void;
isChinese: boolean;
isEnglish: boolean;
};
export default useLanguage;