@nekuta/next
Covered with full examples in SSR & Next.js — this page is the quick signature reference. One package, plain named exports (no subpath split — see the project's build plan for why), internally organized by router.
Pages Router
function withNekutaSSR<
P extends Record<string, unknown> = Record<string, unknown>
>(
getServerSideProps?: GetServerSideProps<P>
): GetServerSideProps<P & { __NEKUTA_STATE__: SerializedNekutaState }>;
function NekutaAppProvider(props: {
pageProps: Record<string, unknown>;
children: ReactNode;
}): JSX.Element;
App Router
const getServerNekuta: () => Nekuta; // wrapped in React's cache()
function NekutaClientProvider(props: {
state: SerializedNekutaState;
children: ReactNode;
}): JSX.Element; // "use client"
See Next.js — Pages Router and Next.js — App Router for how these four fit together.