{
  "id": "@typed/router/Router#BrowserRouter",
  "canonicalId": "@typed/router#BrowserRouter",
  "symbol": {
    "id": "@typed/router/Router#BrowserRouter",
    "packageName": "@typed/router",
    "moduleName": "Router",
    "exportName": "BrowserRouter",
    "kind": "constant",
    "signatures": [
      "export declare const BrowserRouter: (window?: Window) => Layer.Layer<Router, NavigationError>;"
    ],
    "summary": "Builds a browser Router Layer over the platform History API.",
    "sections": {
      "Why": "Browser programs receive the same Router contract as SSR and tests while preserving native history\nand `popstate` as the platform authority.",
      "Ownership and lifetime": "Layer acquisition installs the Navigation listener, provides random Uuid7State, and creates the root\nCurrentRoute. Layer release removes listeners and finalizes scoped registrations. Browser/history\nfailures surface as `NavigationError`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Router from \"@typed/router\"\nimport { Navigation } from \"@typed/navigation/Navigation\"\nimport * as Effect from \"effect/Effect\"\n\nconst currentUrl = Effect.map(Navigation.currentEntry, ({ url }) => url)\nconst program = Effect.provide(currentUrl, Router.BrowserRouter(window))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/router/src/Router.ts",
      "line": 55
    },
    "since": "1.0.0",
    "category": "Runtime providers"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Router#BrowserRouter",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Router",
    "consumerSpecifier": "@typed/router/Router",
    "exportName": "BrowserRouter",
    "qualifiedName": "BrowserRouter",
    "declarationKey": "declaration:eddf7a5d18e05d7591756d93",
    "family": "variable",
    "signatures": [
      "export declare const BrowserRouter: (window?: Window) => Layer.Layer<Router, NavigationError>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Router.ts",
        "start": {
          "line": 55,
          "column": 14
        },
        "end": {
          "line": 59,
          "column": 4
        }
      }
    ],
    "aliases": [
      "@typed/router#BrowserRouter"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:eddf7a5d18e05d7591756d93",
    "name": "BrowserRouter",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const BrowserRouter: (window?: Window) => Layer.Layer<Router, NavigationError>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Router.ts",
            "start": {
              "line": 55,
              "column": 14
            },
            "end": {
              "line": 59,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const BrowserRouter: (window?: Window) => Layer.Layer<Router, NavigationError>;"
    ],
    "typeParameters": [],
    "summary": "Builds a browser Router Layer over the platform History API.",
    "sections": {
      "Why": "Browser programs receive the same Router contract as SSR and tests while preserving native history\nand `popstate` as the platform authority.",
      "Ownership and lifetime": "Layer acquisition installs the Navigation listener, provides random Uuid7State, and creates the root\nCurrentRoute. Layer release removes listeners and finalizes scoped registrations. Browser/history\nfailures surface as `NavigationError`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Router from \"@typed/router\"\nimport { Navigation } from \"@typed/navigation/Navigation\"\nimport * as Effect from \"effect/Effect\"\n\nconst currentUrl = Effect.map(Navigation.currentEntry, ({ url }) => url)\nconst program = Effect.provide(currentUrl, Router.BrowserRouter(window))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Router.ts",
        "start": {
          "line": 55,
          "column": 14
        },
        "end": {
          "line": 59,
          "column": 4
        }
      }
    ],
    "since": "1.0.0",
    "category": "Runtime providers"
  }
}
