/** * Shared helpers for `component()` — used by both the client entry (`component.tsx`) * and the server entry (`component-server.ts`). No React hook imports so it's safe * for the `react-server` bundle condition. */ import type { ReactNode } from 'react'; export type ComponentRender = ReactNode | ReactNode[] | null; export declare function isGeneratorFunction(fn: unknown): fn is (props: never) => Generator; export declare function isAsyncFunctionWithoutTransform(fn: unknown): boolean; /** * Wrap a Babel-transformed async generator in a real `async function` that drives it * with {@link generatorResultToPromiseWithConsumer}. Used on the server (RSC + SSR) * where hooks-based Suspense replay is not appropriate. */ export declare function createServerAsyncComponentWrapper

(fn: (props: P) => Generator): (props: P) => Promise; /** * Wrap a sync render function with consumer/scope tracking. Used by the server * `component()` for non-generator definitions. */ export declare function createServerSyncComponentWrapper

(fn: (props: P) => ComponentRender): (props: P) => ComponentRender; //# sourceMappingURL=component-shared.d.ts.map