import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { SupportedLanguageWithLiterals, MachineTranslateOptions, MachineTranslateResponse, MachineTranslateApplicationErrors, BulkMachineTranslateOptions, BulkMachineTranslateResponse, BulkMachineTranslateApplicationErrors } from './index.typings.mjs'; export { Alignment, AlignmentWithLiterals, AnchorData, Animation, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerOriginPresenceOneOf, BannerPosition, BannerPositionWithLiterals, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkActionMetadata, BulkMachineTranslateRequest, BulkTranslateResult, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, ColorDataBackground, ColorDataBackgroundType, ColorDataBackgroundTypeWithLiterals, Colors, ColumnSize, ColumnSizeWithLiterals, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, EmbedData, EntranceAnimation, EntranceEffect, EntranceEffectType, EntranceEffectTypeWithLiterals, EventData, FileData, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, Format, FormatWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, Image, ImageData, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemMetadata, ItemStyle, LayerEffect, LayerEffectWithLiterals, Layers, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineCap, LineCapWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListItemMarkerColor, ListItemMarkerColorBackground, ListItemMarkerColorBackgroundType, ListItemMarkerColorBackgroundTypeWithLiterals, ListItemMarkerStyle, ListItemNodeData, ListStyle, ListStyleWithLiterals, ListValue, LoopAnimation, LoopEffect, LoopEffectType, LoopEffectTypeWithLiterals, MachineTranslateRequest, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NotEnoughCreditsError, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, PointerEffect, PointerEffectType, PointerEffectTypeWithLiterals, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RibbonStyles, RichContent, SameLanguageArgumentsError, Scaling, ScalingWithLiterals, SectionDivider, Settings, Shape, ShapeData, ShapeDataStyles, ShapeWithLiterals, SketchData, SlotData, SlotDesign, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, Source, SourceWithLiterals, Spoiler, SpoilerData, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, SupportedLanguage, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, TextTooLongError, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, TranslatableContent, TranslatableContentContentOneOf, Type, TypeWithLiterals, UnknownFormatError, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs'; declare function machineTranslate$1(httpClient: HttpClient): MachineTranslateSignature; interface MachineTranslateSignature { /** * Translates the text of a translatable unit of content from one supported language to another. * * The `translatedContent` object returns with the same `id` used for `contentToTranslate.id` but the text within the * content fields is replaced with the translated text. Note that Wix does not overwrite the original content object. * To retrieve the translated content later, make sure to store it separately. * * Only text content is translated, even if the content is `htmlContent` or `richContent`. Note that [collapsible text](https://support.wix.com/en/article/adding-and-setting-up-collapsible-text) * cannot be translated using this method. * * The translatable content must not exceed 5,000 characters. If this limit is exceeded, the method returns a `TEXT_TOO_LONG` error. * For `richContent`, the 5,000-character limit applies separately to each node in `richContent.nodes`. * The total translatable content may be more than 5,000 characters as long as no individual node surpasses this limit. * If any node exceeds 5,000 characters, the entire request fails. * * Each site has a word credit balance indicating the number of words available for translation. Successful translation requests reduce the word credits by the number of words in `contentToTranslate`. * If the site does not have sufficient word credits to translate all of the text in the request, the request fails * with a `NOT_ENOUGH_CREDITS` error. You can also call the [Credit Data API](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/credit-data/introduction)'s [Check Sufficient Credits](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/credit-data/check-sufficient-credits) method at any time to check whether the site has enough credits to translate the specified number of words. * Wix users can receive additional word credits by [purchasing a translation package](https://support.wix.com/en/article/wix-multilingual-auto-translating-your-site#purchasing-translation-packages) in the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager) at any time. * * To translate up to 1,000 `translatableContent` units at once, use [Bulk Machine Translate](/machine-translation/bulk-machine-translate). * @param - Language of the source text to translate. */ (sourceLanguage: SupportedLanguageWithLiterals, options: NonNullablePaths): Promise & { __applicationErrorsType?: MachineTranslateApplicationErrors; }>; } declare function bulkMachineTranslate$1(httpClient: HttpClient): BulkMachineTranslateSignature; interface BulkMachineTranslateSignature { /** * Translates the text of multiple units of translatable content from one supported language to another. * * Each translated content item in the `results` array returns with the same `id` as the corresponding `contentToTranslate.id`, but with the text in the * content fields replaced with the translated text. Note that Wix does not overwrite the original content source, * so to retrieve the translated content later, make sure to store it separately. * * Only text content is translated, even if the content is `htmlContent` or `richContent`. Note that [collapsible text](https://support.wix.com/en/article/adding-and-setting-up-collapsible-text) * cannot be translated using this method. * * Each unit of translatable content must not exceed 5,000 characters. If this limit is exceeded, the method returns a `TEXT_TOO_LONG` error. * For `richContent`, the 5,000-character limit applies separately to each node in `richContent.nodes`. * The total request may exceed 5,000 characters as long as no individual node surpasses this limit. * If any node exceeds 5,000 characters, then the request fails for that specific `contentToTranslate` item and the error details for that * error are returned in `itemMetadata`. Even if some translations fail due to the character limit, * the machine translation for other items will succeed if they are under the character limit. * * Each site has a [word credit](/machine-translation/introduction#terminology) balance, starting at 3,000 words. * Each successful translation request reduces the word credits by the number of words included in `contentToTranslate`. * If the site does not have sufficient word credits to complete the translation, then the entire request fails * with a `NOT_ENOUGH_CREDITS` error. Additional credits can be [purchased through the Dashboard](https://support.wix.com/en/article/wix-multilingual-auto-translating-your-site?tabs=Dashboard-5#purchasing-translation-packages). * * To translate a single unit of `translatableContent`, use [Machine Translate](/machine-translation/machine-translate). * @param - Language of the source text to translate. */ (sourceLanguage: SupportedLanguageWithLiterals, options?: NonNullablePaths): Promise & { __applicationErrorsType?: BulkMachineTranslateApplicationErrors; }>; } declare const machineTranslate: MaybeContext & typeof machineTranslate$1>; declare const bulkMachineTranslate: MaybeContext & typeof bulkMachineTranslate$1>; export { BulkMachineTranslateApplicationErrors, BulkMachineTranslateOptions, BulkMachineTranslateResponse, MachineTranslateApplicationErrors, MachineTranslateOptions, MachineTranslateResponse, SupportedLanguageWithLiterals, bulkMachineTranslate, machineTranslate };