{
  "id": "@typed/template/HydrateContext#makeHydrateContext",
  "canonicalId": "@typed/template#makeHydrateContext",
  "symbol": {
    "id": "@typed/template/HydrateContext#makeHydrateContext",
    "packageName": "@typed/template",
    "moduleName": "HydrateContext",
    "exportName": "makeHydrateContext",
    "kind": "constant",
    "signatures": [
      "export declare const makeHydrateContext: (rootElement: HTMLElement) => Context.Context<never>;"
    ],
    "summary": "Creates a hydration context starting from a root element.\n\nThis context allows the renderer to \"attach\" to existing DOM nodes (SSR output)\ninstead of creating new ones.",
    "sections": {
      "Why": "Hydration is an opt-in context derived from Typed's versioned boundary\nmarkers. If `rootElement` is not a compatible hydration root, this function\nreturns `Context.empty()` so DOM rendering performs a fresh construction; it\ndoes not promise to adopt arbitrary markup or sanitize it.",
      "Ownership and lifetime": "The returned Context only describes the starting cursor. The Scope running\n`render` owns adopted-node updates, listeners, subscriptions, and cleanup.\nExisting DOM identity is preserved only for successfully matched ranges."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { makeHydrateContext } from \"@typed/template/HydrateContext\"\n\nconst services = makeHydrateContext(document.querySelector(\"#app\")!)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/HydrateContext.ts",
      "line": 103
    },
    "since": "1.0.0",
    "category": "Hydration context"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/HydrateContext#makeHydrateContext",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "HydrateContext",
    "consumerSpecifier": "@typed/template/HydrateContext",
    "exportName": "makeHydrateContext",
    "qualifiedName": "makeHydrateContext",
    "declarationKey": "declaration:e0dd83565b16a7db0bc010e2",
    "family": "variable",
    "signatures": [
      "export declare const makeHydrateContext: (rootElement: HTMLElement) => Context.Context<never>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/HydrateContext.ts",
        "start": {
          "line": 103,
          "column": 14
        },
        "end": {
          "line": 110,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/template#makeHydrateContext"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:e0dd83565b16a7db0bc010e2",
    "name": "makeHydrateContext",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const makeHydrateContext: (rootElement: HTMLElement) => Context.Context<never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/HydrateContext.ts",
            "start": {
              "line": 103,
              "column": 14
            },
            "end": {
              "line": 110,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const makeHydrateContext: (rootElement: HTMLElement) => Context.Context<never>;"
    ],
    "typeParameters": [],
    "summary": "Creates a hydration context starting from a root element.\n\nThis context allows the renderer to \"attach\" to existing DOM nodes (SSR output)\ninstead of creating new ones.",
    "sections": {
      "Why": "Hydration is an opt-in context derived from Typed's versioned boundary\nmarkers. If `rootElement` is not a compatible hydration root, this function\nreturns `Context.empty()` so DOM rendering performs a fresh construction; it\ndoes not promise to adopt arbitrary markup or sanitize it.",
      "Ownership and lifetime": "The returned Context only describes the starting cursor. The Scope running\n`render` owns adopted-node updates, listeners, subscriptions, and cleanup.\nExisting DOM identity is preserved only for successfully matched ranges."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { makeHydrateContext } from \"@typed/template/HydrateContext\"\n\nconst services = makeHydrateContext(document.querySelector(\"#app\")!)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/HydrateContext.ts",
        "start": {
          "line": 103,
          "column": 14
        },
        "end": {
          "line": 110,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Hydration context"
  }
}
