/** * Gets the current locale used by the Lingo compiler. * * @returns The current locale code, or `null` if no locale is set. */ export declare function useLingoLocale(): string | null; /** * Sets the current locale used by the Lingo compiler. * * **Note:** This function triggers a full page reload to ensure all components * are re-rendered with the new locale. This is necessary because locale changes * affect the entire application state. * * @param locale - The locale code to set. Must be a valid locale code (e.g., "en", "es", "fr-CA"). * * @example Set the current locale * ```tsx * import { setLingoLocale } from "lingo.dev/react/client"; * * export function LanguageSwitcher() { * const handleChange = (event: React.ChangeEvent) => { * setLingoLocale(event.target.value); * }; * * return ( * * ); * } * ``` */ export declare function setLingoLocale(locale: string): void;