import type { DataFormat as FormatDataFormat, JsxChildren as FormatJsxChildren, Variable as FormatVariable } from '@generaltranslation/format/types'; export { HTML_CONTENT_PROPS } from '@generaltranslation/format/types'; export type { Content, CustomMapping, CustomRegionMapping, CutoffFormatOptions, DataFormat, FormatVariables, GTProp, HtmlContentPropKeysRecord, HtmlContentPropValuesRecord, I18nextMessage, IcuMessage, JsxChild, JsxChildren, JsxElement, LocaleProperties, StringContent, StringFormat, StringMessage, Variable, VariableType, } from '@generaltranslation/format/types'; export type { ActionType as EntryActionType, EntryMetadata, TranslateManyEntry, } from './types-dir/api/entry'; export type { HashMetadata } from './id/types'; export type { TranslationStatusResult } from './types-dir/api/translationStatus'; export type { JsonObject, JsonPrimitive, JsonValue, } from './types-dir/api/json'; export type { FileTranslationQuery, CheckFileTranslationsOptions, } from './types-dir/api/checkFileTranslations'; export type { DownloadFileBatchOptions, DownloadFileBatchResult, } from './types-dir/api/downloadFileBatch'; export type { FetchTranslationsOptions, FetchTranslationsResult, RetrievedTranslations, } from './types-dir/api/fetchTranslations'; export type { EnqueueFilesOptions, EnqueueFilesResult, Updates, } from './types-dir/api/enqueueFiles'; export type { CreateTagOptions, CreateTagResult } from './translate/createTag'; export type { FileToUpload } from './types-dir/api/file'; export type { FileUpload } from './types-dir/api/uploadFiles'; export type { EnqueueEntriesOptions, EnqueueEntriesResult, } from './types-dir/api/enqueueEntries'; export type { FileReference } from './types-dir/api/file'; export type { PublishFileEntry, PublishFilesResult, } from './translate/publishFiles'; export type { DownloadedFile } from './types-dir/api/downloadFileBatch'; export type { DownloadFileOptions } from './types-dir/api/downloadFile'; export type { FileFormat } from './types-dir/api/file'; export type { TranslateManyResult } from './types-dir/api/translateMany'; export type { TranslationResult, TranslationError, TranslationResultReference, } from './types-dir/api/translate'; export type { BranchDataResult } from './types-dir/api/branch'; export type { BranchQuery } from './translate/queryBranchData'; export type { FileDataQuery, FileDataResult } from './translate/queryFileData'; export type { OrphanedFile, GetOrphanedFilesResult, } from './translate/getOrphanedFiles'; export type { MoveMapping, MoveResult, ProcessMovesResponse, ProcessMovesOptions, } from './translate/processFileMoves'; export type { JobStatus, CheckJobStatusResult, } from './translate/checkJobStatus'; export type { AwaitJobsOptions, AwaitJobsResult, JobResult, } from './translate/awaitJobs'; export type { SubmitUserEditDiff, SubmitUserEditDiffsPayload, } from './translate/submitUserEditDiffs'; /** * @deprecated Use {@link Content} instead. */ export type _Content = string | Array; export type { Transformation, TransformationPrefix, VariableTransformationSuffix, InjectionType, } from './types-dir/transformations'; export type Metadata = { maxChars?: number; context?: string; id?: string; hash?: string; format?: string; dataFormat?: FormatDataFormat; sourceLocale?: string; actionType?: 'standard' | 'fast' | string; filePaths?: string[]; [key: string]: unknown; }; /** * @deprecated This type is deprecated and will be removed in a future version. */ export type Update = { type: 'content'; data: { source: _Content; metadata: Metadata; }; } | { type: 'jsx'; data: { source: FormatJsxChildren; metadata: Metadata; }; }; /** * @deprecated This type is deprecated and will be removed in a future version. */ export type Request = { type: 'content'; data: { source: _Content; targetLocale: string; metadata: Metadata; }; } | { type: 'jsx'; data: { source: FormatJsxChildren; targetLocale: string; metadata: Metadata; }; }; /** * @deprecated Use {@link TranslationResult} instead. */ export type ContentTranslationResult = { translation: _Content; locale: string; reference?: { id: string; key: string; }; }; /** * @deprecated Use {@link TranslationResult} instead. */ export type IcuTranslationResult = { translation: string; locale: string; reference?: { id: string; key: string; }; }; /** * @deprecated Use {@link TranslationResult} instead. */ export type JsxTranslationResult = { translation: FormatJsxChildren; locale: string; reference?: { id: string; key: string; }; }; /** * TranslationRequestConfig is used to configure the translation request. * * @param projectId - The project ID of the translation request. * @param baseUrl - The base URL of the translation request. * @param apiKey - The API key of the translation request. */ export type TranslationRequestConfig = { projectId: string; baseUrl?: string; apiKey?: string; };