type Value = string | Language ; type Key = string ; export type Language = { [ key ] : Value ; } ; export interface Backend < Messages extends Language = Language > { getTranslations ( namespace , locale ) : Promise < Messages > ; } export * from "./backends" ;