/** * A placeholder function for loading dictionaries that contain localized content. * * This function: * * - Should be used in React Router and Remix applications * - Should be passed into the `LingoProvider` component * - Is transformed into functional code by Lingo.dev Compiler * * @param requestOrExplicitLocale - Either a `Request` object (from loader functions) or an explicit locale string. * * @returns Promise that resolves to the dictionary object containing localized content. * * @example Use in a React Router application * ```tsx * import { LingoProvider } from "lingo.dev/react/client"; * import { loadDictionary } from "lingo.dev/react/react-router"; * import { * Links, * Meta, * Outlet, * Scripts, * ScrollRestoration, * useLoaderData, * type LoaderFunctionArgs, * } from "react-router"; * import "./app.css"; * * export const loader = async ({ request }: LoaderFunctionArgs) => { * return { * lingoDictionary: await loadDictionary(request), * }; * }; * * export function Layout({ children }: { children: React.ReactNode }) { * const { lingoDictionary } = useLoaderData(); * * return ( * * * * * * * * * * {children} * * * * * * ); * } * * export default function App() { * return ; * } * ``` */ export declare const loadDictionary: (requestOrExplicitLocale: Request | string) => Promise; export declare function loadDictionary_internal(requestOrExplicitLocale: Request | string, dictionaryLoaders: Record Promise>): Promise;