> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Interface: ReactCompileResultExposureV1

Versioned React compilation-result exposure retrieved with
`api.useExposed(Symbol.for('@lynx-js/react/internal:compile-result'))`.

## Properties

### version

> **version**: `1`

The exposure protocol version.

## Methods

### getCompileResult()

> **getCompileResult**(`stats`: `Stats` | `MultiStats`): [`ReactCompileResult`](/next/api/packages/react-rsbuild-plugin/interfaces/ReactCompileResult.md) | `undefined`

Read semantic runtime requirements from the supplied compilations.

#### Parameters

| Parameter | Type                    | Description                                                                                                                                                                                  |
| --------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `stats`   | `Stats` \| `MultiStats` | Original Stats or MultiStats objects, read before the build is closed. Serialized Stats JSON is not supported; callers must handle absent stats and build errors before calling this method. |

#### Returns

[`ReactCompileResult`](/next/api/packages/react-rsbuild-plugin/interfaces/ReactCompileResult.md) | `undefined`

A known result, or `undefined` if any compilation has no compatible
semantic producer. An explicit `false` remains distinct from unknown.

#### Remarks

MultiStats combines all child requirements with OR only when every child
has a compatible result. Pass a single environment's Stats to read its
result independently in a mixed-environment build.
