import { APIResource } from "../core/resource.mjs"; import * as UsersAPI from "./users/users.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class MessageTranslations extends APIResource { /** * Get translation info for a message */ retrieve(messageID: string, options?: RequestOptions): APIPromise; /** * Update translation info for a message */ update(messageID: string, body: MessageTranslationUpdateParams, options?: RequestOptions): APIPromise; /** * Delete translation info for a message */ delete(messageID: string, options?: RequestOptions): APIPromise; /** * Translate a message */ translate(messageID: string, body: MessageTranslationTranslateParams, options?: RequestOptions): APIPromise; } export interface APIResponseTranslation extends UsersAPI.APIResponseBase { data?: APIResponseTranslation.Data; } export declare namespace APIResponseTranslation { interface Data { id: string; userId: string; clientId?: string | null; content?: string | null; from?: string | null; to?: string | null; } } export interface TranslateTrigger { from: string; to: string; model?: string | null; provider?: string | null; } export interface MessageTranslationUpdateParams { from: string; to: string; translatedContent: string; model?: string | null; provider?: string | null; } export interface MessageTranslationTranslateParams { from: string; to: string; model?: string | null; provider?: string | null; } export declare namespace MessageTranslations { export { type APIResponseTranslation as APIResponseTranslation, type TranslateTrigger as TranslateTrigger, type MessageTranslationUpdateParams as MessageTranslationUpdateParams, type MessageTranslationTranslateParams as MessageTranslationTranslateParams, }; } //# sourceMappingURL=message-translations.d.mts.map