import { MessageDescriptor } from './intl-context.cjs'; import 'react'; type TranslationParams = MessageDescriptor & { values?: Record; }; /** * Translation hook that gracefully degrades when no I18nProvider is present. * * - With I18nProvider: Uses react-intl's formatMessage for full i18n support (react-intl will be bundled) * - Without I18nProvider: Returns the defaultMessage with simple string interpolation (no react-intl bundled) */ declare function useTranslation(): (params: TranslationParams) => string; export { useTranslation };