{
  "id": "@typed/router/Path#parseWithRest",
  "canonicalId": "@typed/router/Path#parseWithRest",
  "symbol": {
    "id": "@typed/router/Path#parseWithRest",
    "packageName": "@typed/router",
    "moduleName": "Path",
    "exportName": "parseWithRest",
    "kind": "function",
    "signatures": [
      "export declare function parseWithRest(input: string): RuntimeParseResult;"
    ],
    "summary": "Parses route atoms and returns both AST nodes and unconsumed input.",
    "sections": {
      "Why": "The runtime grammar can be embedded while preserving where parsing stopped.",
      "Ownership and lifetime": "`parseWithRest` parses immediately and returns fresh AST array state; it retains neither the input string nor parser cursor."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { parseWithRest } from \"@typed/router/Path\"\n\nconst [ast, rest] = parseWithRest(\"/users/:id?tab=:tab? trailing\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/router/src/Path.ts",
      "line": 440
    },
    "since": "1.0.0",
    "category": "Path parsing"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Path#parseWithRest",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Path",
    "consumerSpecifier": "@typed/router/Path",
    "exportName": "parseWithRest",
    "qualifiedName": "parseWithRest",
    "declarationKey": "declaration:5d1404520f527ab90f1cf896",
    "family": "function",
    "signatures": [
      "export declare function parseWithRest(input: string): RuntimeParseResult;"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Path.ts",
        "start": {
          "line": 440,
          "column": 1
        },
        "end": {
          "line": 466,
          "column": 2
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:5d1404520f527ab90f1cf896",
    "name": "parseWithRest",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function parseWithRest(input: string): RuntimeParseResult;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Path.ts",
            "start": {
              "line": 440,
              "column": 1
            },
            "end": {
              "line": 466,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function parseWithRest(input: string): RuntimeParseResult;"
    ],
    "typeParameters": [],
    "summary": "Parses route atoms and returns both AST nodes and unconsumed input.",
    "sections": {
      "Why": "The runtime grammar can be embedded while preserving where parsing stopped.",
      "Ownership and lifetime": "`parseWithRest` parses immediately and returns fresh AST array state; it retains neither the input string nor parser cursor."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { parseWithRest } from \"@typed/router/Path\"\n\nconst [ast, rest] = parseWithRest(\"/users/:id?tab=:tab? trailing\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Path.ts",
        "start": {
          "line": 440,
          "column": 1
        },
        "end": {
          "line": 466,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Path parsing"
  }
}
