{
  "id": "@typed/template#CurrentRenderDocument",
  "canonicalId": "@typed/template#CurrentRenderDocument",
  "symbol": {
    "id": "@typed/template#CurrentRenderDocument",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "CurrentRenderDocument",
    "kind": "constant",
    "signatures": [
      "export declare const CurrentRenderDocument: Context.Reference<Document>;"
    ],
    "summary": "A service that provides the `Document` interface for rendering.\n\nDefaults to the global `document` object. This can be overridden for testing\nor environments where the global document is not available or desired.",
    "sections": {
      "Why": "DOM creation is an explicit Effect service so tests, iframes, and alternate\ndocuments can use the same renderer without patching `globalThis.document`.",
      "Ownership and lifetime": "The reference borrows the provided `Document`; it does not own or close the\nbrowsing context. The surrounding Layer controls how long the override lives."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { CurrentRenderDocument } from \"@typed/template/Render\"\nimport { Layer } from \"effect\"\n\n// Override document for testing\nconst testDocument = new Document()\nconst testLayer = Layer.succeed(CurrentRenderDocument, testDocument)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Render.ts",
      "line": 88
    },
    "since": "1.0.0",
    "category": "DOM document selection"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#CurrentRenderDocument",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "CurrentRenderDocument",
    "qualifiedName": "CurrentRenderDocument",
    "declarationKey": "declaration:83af5dbb5747c46773b96306",
    "family": "variable",
    "signatures": [
      "export declare const CurrentRenderDocument: Context.Reference<Document>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 88,
          "column": 14
        },
        "end": {
          "line": 90,
          "column": 3
        }
      }
    ],
    "aliases": [
      "@typed/template/Render#CurrentRenderDocument"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:83af5dbb5747c46773b96306",
    "name": "CurrentRenderDocument",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const CurrentRenderDocument: Context.Reference<Document>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 88,
              "column": 14
            },
            "end": {
              "line": 90,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const CurrentRenderDocument: Context.Reference<Document>;"
    ],
    "typeParameters": [],
    "summary": "A service that provides the `Document` interface for rendering.\n\nDefaults to the global `document` object. This can be overridden for testing\nor environments where the global document is not available or desired.",
    "sections": {
      "Why": "DOM creation is an explicit Effect service so tests, iframes, and alternate\ndocuments can use the same renderer without patching `globalThis.document`.",
      "Ownership and lifetime": "The reference borrows the provided `Document`; it does not own or close the\nbrowsing context. The surrounding Layer controls how long the override lives."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { CurrentRenderDocument } from \"@typed/template/Render\"\nimport { Layer } from \"effect\"\n\n// Override document for testing\nconst testDocument = new Document()\nconst testLayer = Layer.succeed(CurrentRenderDocument, testDocument)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 88,
          "column": 14
        },
        "end": {
          "line": 90,
          "column": 3
        }
      }
    ],
    "since": "1.0.0",
    "category": "DOM document selection"
  }
}
