import * as React from 'react'; import { getState } from '@razorpay/i18nify-js/core'; interface ContextValueType { i18nState?: ReturnType; setI18nState?: (data: Record) => void; } /** * A simple ReactContext Provider built for React apps that deals with i18nify state APIs. * Include this Provider at the topmost level in your component tree. * * ========= USAGE ========= * * * */ declare const I18nProvider: ({ children, initData, }: { children: JSX.Element; initData?: Record | undefined; }) => React.JSX.Element; /** * * React hook to get the value (i18nState, setI18nState) within I18nProvider Context * * ========= USAGE ========= * const { i18nState, setI18nState } = useI18nContext() * */ declare const useI18nContext: () => ContextValueType; export { I18nProvider, useI18nContext };