import { InstanceOptions, RequestTracingConfig } from '../../HttpClient'; import { IOContext } from '../../service/worker/runtime/typings'; import { AppGraphQLClient } from './AppGraphQLClient'; export interface IndexedByFrom { messages: Array>; from: string; } export type Behavior = 'FULL' | 'USER_ONLY' | 'USER_AND_APP'; export interface Message { content: string; context?: string; behavior?: Behavior; from: string; } export interface MessageSaveInput { srcLang: string; srcMessage: string; context?: string; targetMessage: string; groupContext?: string; } export interface TranslateInput { indexedByFrom: IndexedByFrom[]; to: string; depTree?: string; encoding?: 'ICU' | 'HANDLEBARS'; } export interface TranslateWithDependenciesInput { indexedByFrom: IndexedByFrom[]; to: string; depTree: string; encoding?: 'ICU' | 'HANDLEBARS'; } export interface SaveInput { fireEvent?: boolean; to: string; messages: MessageSaveInput[]; } export interface MessageInputV2 { content: string; context?: string; behavior?: Behavior; } export interface MessageListV2 { srcLang: string; groupContext?: string; context?: string; translations: Translation[]; } export interface Translation { lang: string; translation: string; } export declare class MessagesGraphQL extends AppGraphQLClient { constructor(vtex: IOContext, options?: InstanceOptions); translateV2(args: TranslateInput, tracingConfig?: RequestTracingConfig): Promise; translate(args: TranslateInput, tracingConfig?: RequestTracingConfig): Promise; translateWithDependencies(args: TranslateWithDependenciesInput, tracingConfig?: RequestTracingConfig): Promise; saveV2(args: SaveInput, tracingConfig?: RequestTracingConfig): Promise; userTranslations(args: IndexedByFrom, tracingConfig?: RequestTracingConfig): Promise; }