{
  "id": "@typed/template/Render#attemptHydration",
  "canonicalId": "@typed/template#attemptHydration",
  "symbol": {
    "id": "@typed/template/Render#attemptHydration",
    "packageName": "@typed/template",
    "moduleName": "Render",
    "exportName": "attemptHydration",
    "kind": "function",
    "signatures": [
      "export declare function attemptHydration(ctx: TemplateContext, hash: string): {\n    readonly where: HydrationTemplate;\n    readonly hydrateCtx: HydrateContext;\n} | undefined;"
    ],
    "summary": "Locates a compatible SSR template range for an advanced render context.",
    "sections": {
      "Why": "Hydration is a precise marker-and-hash match, not a promise to reconcile any\narbitrary existing HTML. A missing compatible range disables hydration for\nthe context and lets normal DOM construction proceed.",
      "Ownership and lifetime": "The returned range and context are borrowed from the active render Scope.\nThis function does not acquire nodes, attach events, or sanitize markup."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { attemptHydration } from \"@typed/template/Render\"\nimport type { TemplateContext } from \"@typed/template/Render\"\n\ndeclare const context: TemplateContext\nconst match = attemptHydration(context, \"template-hash\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Render.ts",
      "line": 1367
    },
    "since": "1.0.0",
    "category": "DOM adoption"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/Render#attemptHydration",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Render",
    "consumerSpecifier": "@typed/template/Render",
    "exportName": "attemptHydration",
    "qualifiedName": "attemptHydration",
    "declarationKey": "declaration:1ee339b3d7a0d6e413c2dcde",
    "family": "function",
    "signatures": [
      "export declare function attemptHydration(ctx: TemplateContext, hash: string): {\n    readonly where: HydrationTemplate;\n    readonly hydrateCtx: HydrateContext;\n} | undefined;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1367,
          "column": 1
        },
        "end": {
          "line": 1382,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/template#attemptHydration"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:1ee339b3d7a0d6e413c2dcde",
    "name": "attemptHydration",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function attemptHydration(ctx: TemplateContext, hash: string): {\n    readonly where: HydrationTemplate;\n    readonly hydrateCtx: HydrateContext;\n} | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1367,
              "column": 1
            },
            "end": {
              "line": 1382,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function attemptHydration(ctx: TemplateContext, hash: string): {\n    readonly where: HydrationTemplate;\n    readonly hydrateCtx: HydrateContext;\n} | undefined;"
    ],
    "typeParameters": [],
    "summary": "Locates a compatible SSR template range for an advanced render context.",
    "sections": {
      "Why": "Hydration is a precise marker-and-hash match, not a promise to reconcile any\narbitrary existing HTML. A missing compatible range disables hydration for\nthe context and lets normal DOM construction proceed.",
      "Ownership and lifetime": "The returned range and context are borrowed from the active render Scope.\nThis function does not acquire nodes, attach events, or sanitize markup."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { attemptHydration } from \"@typed/template/Render\"\nimport type { TemplateContext } from \"@typed/template/Render\"\n\ndeclare const context: TemplateContext\nconst match = attemptHydration(context, \"template-hash\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1367,
          "column": 1
        },
        "end": {
          "line": 1382,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "DOM adoption"
  }
}
