// @flow strict

export type Values = { [key: string]: string | number, ... };
export type Options = {| defaultMessage?: string |};
export type Translate = (key: string, values?: Values, opts?: Options) => string;
export type Translations = { [key: string]: string, ... };

declare export default function translate(
  translations: Translations,
  key: string,
  values?: Values,
  opts?: Options,
): string;
