# flattenRouteAst

Flattens joined and transformed Route AST nodes to their path atoms.

## Signatures

```ts
export declare function flattenRouteAst(ast: RouteAst): ReadonlyArray<PathAst>;
```

## Why

Formatting and input analysis can ignore schema wrappers while preserving route order.

## Ownership and lifetime

`flattenRouteAst` traverses the supplied AST immediately and returns a fresh array; child AST and Schema values in that array remain shared references.
