/** * The props for the `LocaleSwitcher` component. */ export type LocaleSwitcherProps = { /** * An array of locale codes to display in the dropdown. * * This should contain both the source and target locales. */ locales: string[]; /** * A custom class name for the dropddown's `select` element. */ className?: string; }; /** * An unstyled dropdown for switching between locales. * * This component: * * - Only works in environments that support cookies * - Gets and sets the current locale from the `"lingo-locale"` cookie * - Triggers a full page reload when the locale is changed * * @example Creating a locale switcher * ```tsx * import { LocaleSwitcher } from "lingo.dev/react/client"; * * export function App() { * return ( *
* *
* ); * } * ``` */ export declare function LocaleSwitcher(props: LocaleSwitcherProps): import("react").JSX.Element | null;