import type { LocaleTranslations } from "../../types/core"; import * as React from "react"; interface I18nContextProps { translations?: LocaleTranslations; } interface I18nProviderProps { children: JSX.Element; /** Object with static translations using local i18n locale codes. * @example * { * es_ES: { hi: "Hola", ... } * en_US: { hi: "Hello", ... } * } */ translations?: LocaleTranslations; } declare const I18nContext: React.Context; /** * This provider component inject the `translation` object in the context of the * site. Then you can retrieve the translation based on the page language using * the `useI18n()` hook. */ declare function I18nProvider(props: I18nProviderProps): JSX.Element; export { I18nContext, I18nProvider };