import React from 'react'; import type { LocaleProps } from '../localizations/locales/index.js'; /** * The hook's values, unlike the raw locale modules, are markdown-parsed into * React nodes. Typing them as `string` is what let a template literal print * `[object Object]` in the chain-switch alert. */ export type LocalizedText = { [K in keyof LocaleProps]: React.ReactNode; }; export default function useLocales(replacements?: Record): LocalizedText;