{
  "id": "@typed/template/Render#TemplateContext",
  "canonicalId": "@typed/template#TemplateContext",
  "symbol": {
    "id": "@typed/template/Render#TemplateContext",
    "packageName": "@typed/template",
    "moduleName": "Render",
    "exportName": "TemplateContext",
    "kind": "type",
    "signatures": [
      "export type TemplateContext<R = never> = {\n    readonly document: Document;\n    readonly renderQueue: RQ.RenderQueue;\n    readonly disposables: Set<Disposable>;\n    readonly eventSource: EventSource;\n    readonly refCounter: IndexRefCounter;\n    readonly scope: Scope.Closeable;\n    readonly eventScope: Scope.Scope;\n    readonly disposeEventHandlers: boolean;\n    readonly values: ArrayLike<Renderable<unknown, any, any>>;\n    readonly services: Context.Context<R | Scope.Scope>;\n    readonly onCause: (cause: Cause.Cause<any>) => Effect.Effect<unknown>;\n    readonly hydrateContext: HydrateContext | undefined;\n};"
    ],
    "summary": "Advanced per-template DOM rendering state used by renderer extensions.",
    "sections": {
      "Why": "The context gathers explicit Effect services, a forked child Scope, delegated\nnative events, queue policy, ref coordination, and optional hydration state\nwithout relying on a hidden component tree.",
      "Ownership and lifetime": "The child `scope` owns one-shot render setup. The surrounding `eventScope`\nowns mounted dynamic parts, handler fibers, queued callbacks, and ref\nfinalizers until the rendered range is unmounted. Replaceable parts create\ntheir own child event Scope so replacement disposes only that part."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { TemplateContext } from \"@typed/template/Render\"\n\ndeclare const context: TemplateContext\ncontext.renderQueue"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Render.ts",
      "line": 1173
    },
    "since": "1.0.0",
    "category": "Template run context"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/Render#TemplateContext",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Render",
    "consumerSpecifier": "@typed/template/Render",
    "exportName": "TemplateContext",
    "qualifiedName": "TemplateContext",
    "declarationKey": "declaration:1fc8e00f6c33e858b01d03c6",
    "family": "type-alias",
    "signatures": [
      "export type TemplateContext<R = never> = {\n    readonly document: Document;\n    readonly renderQueue: RQ.RenderQueue;\n    readonly disposables: Set<Disposable>;\n    readonly eventSource: EventSource;\n    readonly refCounter: IndexRefCounter;\n    readonly scope: Scope.Closeable;\n    readonly eventScope: Scope.Scope;\n    readonly disposeEventHandlers: boolean;\n    readonly values: ArrayLike<Renderable<unknown, any, any>>;\n    readonly services: Context.Context<R | Scope.Scope>;\n    readonly onCause: (cause: Cause.Cause<any>) => Effect.Effect<unknown>;\n    readonly hydrateContext: HydrateContext | undefined;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1173,
          "column": 1
        },
        "end": {
          "line": 1196,
          "column": 3
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1176,
          "column": 3
        },
        "end": {
          "line": 1176,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1181,
          "column": 3
        },
        "end": {
          "line": 1181,
          "column": 42
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1174,
          "column": 3
        },
        "end": {
          "line": 1174,
          "column": 31
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1180,
          "column": 3
        },
        "end": {
          "line": 1180,
          "column": 36
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1177,
          "column": 3
        },
        "end": {
          "line": 1177,
          "column": 37
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1195,
          "column": 3
        },
        "end": {
          "line": 1195,
          "column": 55
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1184,
          "column": 3
        },
        "end": {
          "line": 1184,
          "column": 73
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1178,
          "column": 3
        },
        "end": {
          "line": 1178,
          "column": 40
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1175,
          "column": 3
        },
        "end": {
          "line": 1175,
          "column": 40
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1179,
          "column": 3
        },
        "end": {
          "line": 1179,
          "column": 35
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1183,
          "column": 3
        },
        "end": {
          "line": 1183,
          "column": 55
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1182,
          "column": 3
        },
        "end": {
          "line": 1182,
          "column": 61
        }
      }
    ],
    "aliases": [
      "@typed/template#TemplateContext"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:1fc8e00f6c33e858b01d03c6",
    "name": "TemplateContext",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type TemplateContext<R = never> = {\n    readonly document: Document;\n    readonly renderQueue: RQ.RenderQueue;\n    readonly disposables: Set<Disposable>;\n    readonly eventSource: EventSource;\n    readonly refCounter: IndexRefCounter;\n    readonly scope: Scope.Closeable;\n    readonly eventScope: Scope.Scope;\n    readonly disposeEventHandlers: boolean;\n    readonly values: ArrayLike<Renderable<unknown, any, any>>;\n    readonly services: Context.Context<R | Scope.Scope>;\n    readonly onCause: (cause: Cause.Cause<any>) => Effect.Effect<unknown>;\n    readonly hydrateContext: HydrateContext | undefined;\n};"
        ],
        "typeParameters": [
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1173,
              "column": 1
            },
            "end": {
              "line": 1196,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly disposables: Set<Disposable>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1176,
              "column": 3
            },
            "end": {
              "line": 1176,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly disposeEventHandlers: boolean;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1181,
              "column": 3
            },
            "end": {
              "line": 1181,
              "column": 42
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly document: Document;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1174,
              "column": 3
            },
            "end": {
              "line": 1174,
              "column": 31
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly eventScope: Scope.Scope;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1180,
              "column": 3
            },
            "end": {
              "line": 1180,
              "column": 36
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly eventSource: EventSource;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1177,
              "column": 3
            },
            "end": {
              "line": 1177,
              "column": 37
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly hydrateContext: HydrateContext | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1195,
              "column": 3
            },
            "end": {
              "line": 1195,
              "column": 55
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly onCause: (cause: Cause.Cause<any>) => Effect.Effect<unknown>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1184,
              "column": 3
            },
            "end": {
              "line": 1184,
              "column": 73
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly refCounter: IndexRefCounter;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1178,
              "column": 3
            },
            "end": {
              "line": 1178,
              "column": 40
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly renderQueue: RQ.RenderQueue;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1175,
              "column": 3
            },
            "end": {
              "line": 1175,
              "column": 40
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly scope: Scope.Closeable;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1179,
              "column": 3
            },
            "end": {
              "line": 1179,
              "column": 35
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly services: Context.Context<R | Scope.Scope>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1183,
              "column": 3
            },
            "end": {
              "line": 1183,
              "column": 55
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly values: ArrayLike<Renderable<unknown, any, any>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 1182,
              "column": 3
            },
            "end": {
              "line": 1182,
              "column": 61
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export type TemplateContext<R = never> = {\n    readonly document: Document;\n    readonly renderQueue: RQ.RenderQueue;\n    readonly disposables: Set<Disposable>;\n    readonly eventSource: EventSource;\n    readonly refCounter: IndexRefCounter;\n    readonly scope: Scope.Closeable;\n    readonly eventScope: Scope.Scope;\n    readonly disposeEventHandlers: boolean;\n    readonly values: ArrayLike<Renderable<unknown, any, any>>;\n    readonly services: Context.Context<R | Scope.Scope>;\n    readonly onCause: (cause: Cause.Cause<any>) => Effect.Effect<unknown>;\n    readonly hydrateContext: HydrateContext | undefined;\n};"
    ],
    "typeParameters": [
      "R = never"
    ],
    "summary": "Advanced per-template DOM rendering state used by renderer extensions.",
    "sections": {
      "Why": "The context gathers explicit Effect services, a forked child Scope, delegated\nnative events, queue policy, ref coordination, and optional hydration state\nwithout relying on a hidden component tree.",
      "Ownership and lifetime": "The child `scope` owns one-shot render setup. The surrounding `eventScope`\nowns mounted dynamic parts, handler fibers, queued callbacks, and ref\nfinalizers until the rendered range is unmounted. Replaceable parts create\ntheir own child event Scope so replacement disposes only that part."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { TemplateContext } from \"@typed/template/Render\"\n\ndeclare const context: TemplateContext\ncontext.renderQueue"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1173,
          "column": 1
        },
        "end": {
          "line": 1196,
          "column": 3
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1176,
          "column": 3
        },
        "end": {
          "line": 1176,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1181,
          "column": 3
        },
        "end": {
          "line": 1181,
          "column": 42
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1174,
          "column": 3
        },
        "end": {
          "line": 1174,
          "column": 31
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1180,
          "column": 3
        },
        "end": {
          "line": 1180,
          "column": 36
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1177,
          "column": 3
        },
        "end": {
          "line": 1177,
          "column": 37
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1195,
          "column": 3
        },
        "end": {
          "line": 1195,
          "column": 55
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1184,
          "column": 3
        },
        "end": {
          "line": 1184,
          "column": 73
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1178,
          "column": 3
        },
        "end": {
          "line": 1178,
          "column": 40
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1175,
          "column": 3
        },
        "end": {
          "line": 1175,
          "column": 40
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1179,
          "column": 3
        },
        "end": {
          "line": 1179,
          "column": 35
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1183,
          "column": 3
        },
        "end": {
          "line": 1183,
          "column": 55
        }
      },
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 1182,
          "column": 3
        },
        "end": {
          "line": 1182,
          "column": 61
        }
      }
    ],
    "since": "1.0.0",
    "category": "Template run context"
  }
}
