import { FC } from "react";
import { IntlayerProviderProps as IntlayerProviderProps$1 } from "react-intlayer";
import { IntlayerServerProviderProps } from "react-intlayer/server";
//#region src/server/IntlayerProvider.d.ts
export type IntlayerProviderProps = IntlayerProviderProps$1 & IntlayerServerProviderProps;
/**
* Unified Intlayer provider for the Next.js App Router.
*
* Server component that seeds the request-scoped server context (locale and
* ambient variant) read by the server hooks, and mounts the client provider so
* client components receive the same values — one provider for both halves.
*
* Mount it once, in the locale layout:
*
* ```tsx
* import { IntlayerProvider } from 'next-intlayer/server';
*
* const LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {
* const { locale } = await params;
*
* return (
*
*
* {children}
*
*
* );
* };
* ```
*
* The server context is request-scoped, not tree-scoped: on client-side
* navigations that only re-render the page segment, the layout — and with it
* this provider — does not re-run. The server hooks then fall back to the
* locale carried by the request (the `x-intlayer-locale` header set by the
* intlayer proxy, then the locale cookie), so content stays correct without a
* per-page provider. The ambient `variant` has no request-carried fallback:
* seed it per request with `setVariant` when server components read it outside
* a full render of this provider.
*/
export declare const IntlayerProvider: FC;
//#endregion
//# sourceMappingURL=IntlayerProvider.d.ts.map