zhizhi/node_modules/dingtalk-jsapi/api/union/translate.d.ts

31 lines
740 B
TypeScript
Raw Normal View History

import { ICommonAPIParams } from '../../constant/types';
/**
*
* @apiName translate
*/
export interface IUnionTranslateParams extends ICommonAPIParams {
token: string;
sourceTexts: {
id: string;
text: string;
format?: string;
}[];
targetLanguage: string;
}
/**
*
* @apiName translate
*/
export interface IUnionTranslateResult {
translatedTexts: {
id: string;
text: string;
}[];
}
/**
*
* @apiName translate
*/
export declare function translate$(params: IUnionTranslateParams): Promise<IUnionTranslateResult>;
export default translate$;