import { TranslateFunction } from '../types'; /** * Translate a string using the current locale and the translations from the i18nProvider * * @see Polyglot.t() * @link https://airbnb.io/polyglot.js/#polyglotprototypetkey-interpolationoptions * * @return {Function} A translation function, accepting two arguments * - a string used as key in the translations * - an interpolationOptions object * * @example * * import { useTranslate } from 'react-admin'; * * const SettingsMenu = () => { * const translate = useTranslate(); * return {translate('settings')}; * } */ export declare const useTranslate: () => TranslateFunction; //# sourceMappingURL=useTranslate.d.ts.map