import React from 'react' import { Map } from 'immutable' import { StoreSchemaType } from '@ui-schema/ui-schema/CommonTypings' export type TranslatorContext = Map export type translation = string | number | undefined | Function | React.ComponentType export type Translator = ( text: string, context?: TranslatorContext, schema?: StoreSchemaType ) => translation export const makeTranslator: ( dictionary: Map | string | number | Function | React.ComponentType }>, locale?: string ) => Translator