{
  "id": "@typed/navigation/Navigation#BeforeNavigationHandler",
  "canonicalId": "@typed/navigation#BeforeNavigationHandler",
  "symbol": {
    "id": "@typed/navigation/Navigation#BeforeNavigationHandler",
    "packageName": "@typed/navigation",
    "moduleName": "Navigation",
    "exportName": "BeforeNavigationHandler",
    "kind": "type",
    "signatures": [
      "export type BeforeNavigationHandler<R, R2> = (event: BeforeNavigationEvent) => Effect.Effect<Option.Option<Effect.Effect<unknown, RedirectError | CancelNavigation, R2>>, RedirectError | CancelNavigation, R>;"
    ],
    "summary": "Selects optional pre-commit work for a navigation event.",
    "sections": {
      "Why": "The outer Effect decides whether a handler participates; the selected inner Effect can redirect\nor cancel. This preserves declaration order and separates cheap selection from retained work.",
      "Ownership and lifetime": "Registration captures the handler's Effect context and is owned by its Scope. The active\ntransition runs selected effects sequentially and interruption releases normal Effect resources."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/navigation/src/Navigation.ts",
      "line": 512
    },
    "since": "1.0.0",
    "category": "Navigation hooks"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/navigation/Navigation#BeforeNavigationHandler",
    "packageName": "@typed/navigation",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Navigation",
    "consumerSpecifier": "@typed/navigation/Navigation",
    "exportName": "BeforeNavigationHandler",
    "qualifiedName": "BeforeNavigationHandler",
    "declarationKey": "declaration:1f74547c3740f6fbe2f25b5c",
    "family": "type-alias",
    "signatures": [
      "export type BeforeNavigationHandler<R, R2> = (event: BeforeNavigationEvent) => Effect.Effect<Option.Option<Effect.Effect<unknown, RedirectError | CancelNavigation, R2>>, RedirectError | CancelNavigation, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/navigation/src/Navigation.ts",
        "start": {
          "line": 512,
          "column": 1
        },
        "end": {
          "line": 518,
          "column": 3
        }
      }
    ],
    "aliases": [
      "@typed/navigation#BeforeNavigationHandler"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:1f74547c3740f6fbe2f25b5c",
    "name": "BeforeNavigationHandler",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type BeforeNavigationHandler<R, R2> = (event: BeforeNavigationEvent) => Effect.Effect<Option.Option<Effect.Effect<unknown, RedirectError | CancelNavigation, R2>>, RedirectError | CancelNavigation, R>;"
        ],
        "typeParameters": [
          "R",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/navigation/src/Navigation.ts",
            "start": {
              "line": 512,
              "column": 1
            },
            "end": {
              "line": 518,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type BeforeNavigationHandler<R, R2> = (event: BeforeNavigationEvent) => Effect.Effect<Option.Option<Effect.Effect<unknown, RedirectError | CancelNavigation, R2>>, RedirectError | CancelNavigation, R>;"
    ],
    "typeParameters": [
      "R",
      "R2"
    ],
    "summary": "Selects optional pre-commit work for a navigation event.",
    "sections": {
      "Why": "The outer Effect decides whether a handler participates; the selected inner Effect can redirect\nor cancel. This preserves declaration order and separates cheap selection from retained work.",
      "Ownership and lifetime": "Registration captures the handler's Effect context and is owned by its Scope. The active\ntransition runs selected effects sequentially and interruption releases normal Effect resources."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/navigation/src/Navigation.ts",
        "start": {
          "line": 512,
          "column": 1
        },
        "end": {
          "line": 518,
          "column": 3
        }
      }
    ],
    "since": "1.0.0",
    "category": "Navigation hooks"
  }
}
