/** * Setup lingui for client-side rendering. * * Use `react-router reveal entry.client`, if the file is missing in your project * * @example entry.client.tsx * import { loadInitialLocale } from "lingui-react-router/client" * import { startTransition, StrictMode } from "react" * import { hydrateRoot } from "react-dom/client" * import { HydratedRouter } from "react-router/dom" * * startTransition(async () => { * await loadInitialLocale(location.pathname) * hydrateRoot( * document, * * * * ) * }) * * @param pathname A `location.pathname` value. * @returns The initialized I18n instance bound to the detected locale. */ declare function loadInitialLocale(pathname: string): Promise; export { loadInitialLocale };