# parse

Parses a complete route string into Path AST nodes.

## Signatures

```ts
export declare function parse<const P extends string>(input: P): ParseAsts<P>;
```

## Why

Runtime construction stays aligned with `ParseAsts`; unsupported trailing syntax is rejected.

## Ownership and lifetime

`parse` parses immediately and returns fresh AST array state; it retains neither the input string nor parser cursor.
