{
  "id": "@typed/router#RouteExecutor",
  "canonicalId": "@typed/router/RouteExecutor#RouteExecutor",
  "symbol": {
    "id": "@typed/router#RouteExecutor",
    "packageName": "@typed/router",
    "moduleName": ".",
    "exportName": "RouteExecutor",
    "kind": "interface",
    "signatures": [
      "export interface RouteExecutor<A, E = never, R = never> {\n    readonly transition: (transition: RouteTransition) => Effect.Effect<Fx.Fx<A, E, R | Scope.Scope | Router>, E | RouteDecodeError | RouteGuardError, R>;\n}"
    ],
    "summary": "Transitions between decoded route candidates while retaining compatible mounted work.",
    "sections": {
      "Why": "Parameter-only updates can reuse a handler; route changes switch scopes deterministically.",
      "Ownership and lifetime": "An executor is acquired by `makeRouteExecutor` in a Scope. That Scope owns its current handler and the\nLayer, layout, and catch managers reused across calls to `transition`.",
      "Property: transition": "Decodes and selects the first accepted candidate for one route transition.",
      "Property: transition: Why": "Candidate schemas and guards run in their supplied order after path lookup has selected a matcher\nshape. Decode failures, guard `None`, and guard failures fall through; selected identity controls\nparameter reuse, and route changes switch the owned handler Scope.",
      "Property: transition: Ownership and lifetime": "Calls are serialized by the executor's semaphore. Preparing a replacement occurs before commit;\nrejection rolls back new Layer Scopes, while commit closes replaced handler and manager Scopes."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/RouteExecutor.ts",
      "line": 111
    },
    "since": "1.0.0",
    "category": "Candidate execution"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router#RouteExecutor",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/router",
    "exportName": "RouteExecutor",
    "qualifiedName": "RouteExecutor",
    "declarationKey": "declaration:b06bb43d205c942f6b7cb311",
    "family": "interface",
    "signatures": [
      "export interface RouteExecutor<A, E = never, R = never> {\n    readonly transition: (transition: RouteTransition) => Effect.Effect<Fx.Fx<A, E, R | Scope.Scope | Router>, E | RouteDecodeError | RouteGuardError, R>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/RouteExecutor.ts",
        "start": {
          "line": 111,
          "column": 1
        },
        "end": {
          "line": 135,
          "column": 2
        }
      },
      {
        "file": "packages/router/src/RouteExecutor.ts",
        "start": {
          "line": 128,
          "column": 3
        },
        "end": {
          "line": 134,
          "column": 5
        }
      }
    ],
    "aliases": [
      "@typed/router/RouteExecutor#RouteExecutor"
    ],
    "isAlias": true,
    "static": false,
    "importedFrom": "declaration:b06bb43d205c942f6b7cb311"
  },
  "declaration": {
    "declarationKey": "declaration:b06bb43d205c942f6b7cb311",
    "name": "RouteExecutor",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "export interface RouteExecutor<A, E = never, R = never> {\n    readonly transition: (transition: RouteTransition) => Effect.Effect<Fx.Fx<A, E, R | Scope.Scope | Router>, E | RouteDecodeError | RouteGuardError, R>;\n}"
        ],
        "typeParameters": [
          "A",
          "E = never",
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/RouteExecutor.ts",
            "start": {
              "line": 111,
              "column": 1
            },
            "end": {
              "line": 135,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly transition: (transition: RouteTransition) => Effect.Effect<Fx.Fx<A, E, R | Scope.Scope | Router>, E | RouteDecodeError | RouteGuardError, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/RouteExecutor.ts",
            "start": {
              "line": 128,
              "column": 3
            },
            "end": {
              "line": 134,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export interface RouteExecutor<A, E = never, R = never> {\n    readonly transition: (transition: RouteTransition) => Effect.Effect<Fx.Fx<A, E, R | Scope.Scope | Router>, E | RouteDecodeError | RouteGuardError, R>;\n}"
    ],
    "typeParameters": [
      "A",
      "E = never",
      "R = never"
    ],
    "summary": "Transitions between decoded route candidates while retaining compatible mounted work.",
    "sections": {
      "Why": "Parameter-only updates can reuse a handler; route changes switch scopes deterministically.",
      "Ownership and lifetime": "An executor is acquired by `makeRouteExecutor` in a Scope. That Scope owns its current handler and the\nLayer, layout, and catch managers reused across calls to `transition`.",
      "Property: transition": "Decodes and selects the first accepted candidate for one route transition.",
      "Property: transition: Why": "Candidate schemas and guards run in their supplied order after path lookup has selected a matcher\nshape. Decode failures, guard `None`, and guard failures fall through; selected identity controls\nparameter reuse, and route changes switch the owned handler Scope.",
      "Property: transition: Ownership and lifetime": "Calls are serialized by the executor's semaphore. Preparing a replacement occurs before commit;\nrejection rolls back new Layer Scopes, while commit closes replaced handler and manager Scopes."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/RouteExecutor.ts",
        "start": {
          "line": 111,
          "column": 1
        },
        "end": {
          "line": 135,
          "column": 2
        }
      },
      {
        "file": "packages/router/src/RouteExecutor.ts",
        "start": {
          "line": 128,
          "column": 3
        },
        "end": {
          "line": 134,
          "column": 5
        }
      }
    ],
    "since": "1.0.0",
    "category": "Candidate execution"
  }
}
