/** * update instance of intl universal */ declare function updateLocale(locale: string): void; export declare const format: (id: { id: string; defaultString?: string; }, variables: { [key: string]: string; }) => any; /** * Format string by key * For example: * $i18n.get('jsx.home.title'), * $i18n.get({ * id: 'jsx.home.hello', * defaultMessage: 'Hello {name}' // not required * },{ * name: 'Alice' * }) * More syntax: https://formatjs.io/guides/message-syntax/ * @param {string|object} id key or object * @param {object} variable variable for id * @return {string} format message */ declare function get(id: any, variable?: any): any; declare const _default: { intl: any; get: typeof get; updateLocale: typeof updateLocale; language: string; }; export default _default;