/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
///
import { InstallOptions, Plugin } from '@nocobase/server';
import Resources from './resources';
export declare class PluginLocalizationServer extends Plugin {
resources: Resources;
private aiTranslateTaskRegistered;
private localeSourceTextHookKeys;
normalizeResourceModule(module: string): string;
addNewTexts: (texts: {
text: string;
module: string;
}[], options?: {
transaction?: any;
locale?: string;
}) => Promise;
afterAdd(): void;
beforeLoad(): void;
private registerAITranslateTaskType;
load(): Promise;
private handleLocaleSourceTextsSaved;
handleSyncMessage(message: any): Promise;
install(options?: InstallOptions): Promise;
afterEnable(): Promise;
afterDisable(): Promise;
remove(): Promise;
}
export default PluginLocalizationServer;