{
  "id": "@typed/router/Parser#Parser.TakeWhileInternal",
  "canonicalId": "@typed/router/Parser#Parser.TakeWhileInternal",
  "symbol": {
    "id": "@typed/router/Parser#Parser.TakeWhileInternal",
    "packageName": "@typed/router",
    "moduleName": "Parser",
    "exportName": "Parser.TakeWhileInternal",
    "kind": "type",
    "signatures": [
      "type TakeWhileInternal<Input extends string, Allowed extends string, Acc extends string = \"\"> = Input extends `${infer Head}${infer Tail}` ? Head extends Allowed ? TakeWhileInternal<Tail, Allowed, `${Acc}${Head}`> : readonly [\n    Acc,\n    Input\n] : readonly [\n    Acc,\n    Input\n];"
    ],
    "summary": "Recursively consumes an allowed character prefix at the type level.",
    "sections": {
      "Why": "The public TakeWhile combinator preserves both the accumulated prefix and exact remainder.",
      "Ownership and lifetime": "TypeScript recursively instantiates `TakeWhileInternal` while characters remain allowed. Its\naccumulator and remainder are erased after type checking."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/Parser.ts",
      "line": 357
    },
    "since": "1.0.0",
    "category": "Parser repetition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Parser#Parser.TakeWhileInternal",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Parser",
    "consumerSpecifier": "@typed/router/Parser",
    "exportName": "Parser",
    "qualifiedName": "Parser.TakeWhileInternal",
    "declarationKey": "declaration:a5c099f9ff4a07dc8fdff97b",
    "family": "type-alias",
    "signatures": [
      "type TakeWhileInternal<Input extends string, Allowed extends string, Acc extends string = \"\"> = Input extends `${infer Head}${infer Tail}` ? Head extends Allowed ? TakeWhileInternal<Tail, Allowed, `${Acc}${Head}`> : readonly [\n    Acc,\n    Input\n] : readonly [\n    Acc,\n    Input\n];"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 357,
          "column": 3
        },
        "end": {
          "line": 365,
          "column": 29
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/Parser#Parser",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:a5c099f9ff4a07dc8fdff97b",
    "name": "TakeWhileInternal",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "type TakeWhileInternal<Input extends string, Allowed extends string, Acc extends string = \"\"> = Input extends `${infer Head}${infer Tail}` ? Head extends Allowed ? TakeWhileInternal<Tail, Allowed, `${Acc}${Head}`> : readonly [\n    Acc,\n    Input\n] : readonly [\n    Acc,\n    Input\n];"
        ],
        "typeParameters": [
          "Input extends string",
          "Allowed extends string",
          "Acc extends string = \"\""
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 357,
              "column": 3
            },
            "end": {
              "line": 365,
              "column": 29
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "type TakeWhileInternal<Input extends string, Allowed extends string, Acc extends string = \"\"> = Input extends `${infer Head}${infer Tail}` ? Head extends Allowed ? TakeWhileInternal<Tail, Allowed, `${Acc}${Head}`> : readonly [\n    Acc,\n    Input\n] : readonly [\n    Acc,\n    Input\n];"
    ],
    "typeParameters": [
      "Input extends string",
      "Allowed extends string",
      "Acc extends string = \"\""
    ],
    "summary": "Recursively consumes an allowed character prefix at the type level.",
    "sections": {
      "Why": "The public TakeWhile combinator preserves both the accumulated prefix and exact remainder.",
      "Ownership and lifetime": "TypeScript recursively instantiates `TakeWhileInternal` while characters remain allowed. Its\naccumulator and remainder are erased after type checking."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 357,
          "column": 3
        },
        "end": {
          "line": 365,
          "column": 29
        }
      }
    ],
    "since": "1.0.0",
    "category": "Parser repetition"
  }
}
