> 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: ParseResult

The output of a single `parser.parse(text)` call.

During streaming, each chunk produces a new ParseResult as the
accumulated text is re-parsed. The `root` progressively resolves
from null → partial tree → complete tree.

## Properties

### meta

> **meta**: `object`

#### errors

> **errors**: `ValidationError`\[]

Prop validation errors. Components with missing required props are
redacted (dropped as null) and listed here.

#### incomplete

> **incomplete**: `boolean`

True if the parser detected truncated/incomplete input.

#### orphaned

> **orphaned**: `string`\[]

#### statementCount

> **statementCount**: `number`

#### unresolved

> **unresolved**: `string`\[]

***

### mutationStatements

> **mutationStatements**: `MutationStatementInfo`\[]

Extracted Mutation() calls with their positional args as AST nodes.

***

### queryStatements

> **queryStatements**: `QueryStatementInfo`\[]

Extracted Query() calls with their positional args as AST nodes.

***

### root

> **root**: [`ElementNode`](/next/api/genui/openui/core/interfaces/ElementNode.md) | `null`

The root ElementNode (typically a Root component), or null if parsing hasn't produced one yet.

***

### stateDeclarations

> **stateDeclarations**: `Record`\<`string`, `unknown`>

$variable declarations — maps "$varName" to its materialized default value.
