{
  "id": "@typed/router/AST#MatchAst.Layer",
  "canonicalId": "@typed/router/AST#MatchAst.Layer",
  "symbol": {
    "id": "@typed/router/AST#MatchAst.Layer",
    "packageName": "@typed/router",
    "moduleName": "AST",
    "exportName": "MatchAst.Layer",
    "kind": "interface",
    "signatures": [
      "interface Layer {\n    type: \"layer\";\n    matches: ReadonlyArray<MatchAst>;\n    deps: ReadonlyArray<AnyLayer>;\n}"
    ],
    "summary": "A Match AST boundary carrying route-local Effect Layers.",
    "sections": {
      "Why": "Dependencies can be prepared, committed, rolled back, and finalized with candidate selection.",
      "Ownership and lifetime": "`Layer` describes plain readonly AST data. Routes and Matchers retain the concrete nodes they receive by reference; the type itself owns no resource.",
      "Property: deps": "The Effect Layers attached to a matcher subtree.",
      "Property: deps: Why": "Candidate services and their failures stay explicit during preparation and rollback.",
      "Property: deps: Ownership and lifetime": "Layer values are retained by identity. The executor's Layer manager, not the AST, owns their\nacquired child Scopes and rollback.",
      "Property: matches": "The ordered child matcher nodes wrapped by this boundary.",
      "Property: matches: Why": "Order is preserved for candidate and guard fallthrough.",
      "Property: matches: Ownership and lifetime": "The Layer boundary retains this ordered child array by reference so compilation preserves\nsame-path candidate fallthrough.",
      "Property: type": "The discriminant identifying this AST variant.",
      "Property: type: Why": "Exhaustive switches can interpret syntax without instanceof checks or hidden classes."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/AST.ts",
      "line": 751
    },
    "since": "1.0.0",
    "category": "Matcher composition syntax"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/AST#MatchAst.Layer",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "AST",
    "consumerSpecifier": "@typed/router/AST",
    "exportName": "MatchAst",
    "qualifiedName": "MatchAst.Layer",
    "declarationKey": "declaration:53c0990092a37f9da1c4044d",
    "family": "interface",
    "signatures": [
      "interface Layer {\n    type: \"layer\";\n    matches: ReadonlyArray<MatchAst>;\n    deps: ReadonlyArray<AnyLayer>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 751,
          "column": 3
        },
        "end": {
          "line": 796,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 795,
          "column": 5
        },
        "end": {
          "line": 795,
          "column": 35
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 780,
          "column": 5
        },
        "end": {
          "line": 780,
          "column": 38
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 765,
          "column": 5
        },
        "end": {
          "line": 765,
          "column": 19
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/AST#MatchAst",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:53c0990092a37f9da1c4044d",
    "name": "Layer",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface Layer {\n    type: \"layer\";\n    matches: ReadonlyArray<MatchAst>;\n    deps: ReadonlyArray<AnyLayer>;\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 751,
              "column": 3
            },
            "end": {
              "line": 796,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "deps: ReadonlyArray<AnyLayer>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 795,
              "column": 5
            },
            "end": {
              "line": 795,
              "column": 35
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "matches: ReadonlyArray<MatchAst>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 780,
              "column": 5
            },
            "end": {
              "line": 780,
              "column": 38
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "type: \"layer\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 765,
              "column": 5
            },
            "end": {
              "line": 765,
              "column": 19
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "interface Layer {\n    type: \"layer\";\n    matches: ReadonlyArray<MatchAst>;\n    deps: ReadonlyArray<AnyLayer>;\n}"
    ],
    "typeParameters": [],
    "summary": "A Match AST boundary carrying route-local Effect Layers.",
    "sections": {
      "Why": "Dependencies can be prepared, committed, rolled back, and finalized with candidate selection.",
      "Ownership and lifetime": "`Layer` describes plain readonly AST data. Routes and Matchers retain the concrete nodes they receive by reference; the type itself owns no resource.",
      "Property: deps": "The Effect Layers attached to a matcher subtree.",
      "Property: deps: Why": "Candidate services and their failures stay explicit during preparation and rollback.",
      "Property: deps: Ownership and lifetime": "Layer values are retained by identity. The executor's Layer manager, not the AST, owns their\nacquired child Scopes and rollback.",
      "Property: matches": "The ordered child matcher nodes wrapped by this boundary.",
      "Property: matches: Why": "Order is preserved for candidate and guard fallthrough.",
      "Property: matches: Ownership and lifetime": "The Layer boundary retains this ordered child array by reference so compilation preserves\nsame-path candidate fallthrough.",
      "Property: type": "The discriminant identifying this AST variant.",
      "Property: type: Why": "Exhaustive switches can interpret syntax without instanceof checks or hidden classes."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 751,
          "column": 3
        },
        "end": {
          "line": 796,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 795,
          "column": 5
        },
        "end": {
          "line": 795,
          "column": 35
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 780,
          "column": 5
        },
        "end": {
          "line": 780,
          "column": 38
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 765,
          "column": 5
        },
        "end": {
          "line": 765,
          "column": 19
        }
      }
    ],
    "since": "1.0.0",
    "category": "Matcher composition syntax"
  }
}
