import React from 'react'; import type { LocalMessage } from 'stream-chat'; /** Returns the text of `message.i18n` for the language, or undefined when there is none. */ export declare const getTranslatedMessageText: ({ language, message, }: { language: string; message?: LocalMessage; }) => string | undefined; /** * Which message text to show: `'original'` is `message.text`, `'translated'` is the translation * for `userLanguage`, falling back to `message.text`. */ export type TranslationView = 'original' | 'translated'; export type MessageTranslationViewContextValue = { getTranslationView: (messageId: string, hasI18n: boolean) => TranslationView; setTranslationView: (messageId: string, view: TranslationView) => void; }; export declare const MessageTranslationViewContext: React.Context; export declare const MessageTranslationViewProvider: ({ children, }: { children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element; export declare const useMessageTranslationViewContext: () => MessageTranslationViewContextValue; //# sourceMappingURL=MessageTranslationViewContext.d.ts.map