{
  "id": "@typed/fx/RefSubject#HydrationRef",
  "canonicalId": "@typed/fx/RefSubject#HydrationRef",
  "symbol": {
    "id": "@typed/fx/RefSubject#HydrationRef",
    "packageName": "@typed/fx",
    "moduleName": "RefSubject",
    "exportName": "HydrationRef",
    "kind": "interface",
    "signatures": [
      "export interface HydrationRef<E = never, R = never> {\n    (element: HydrationElement): Effect.Effect<void, never, R | Scope.Scope>;\n    readonly [HydrationRefTypeId]: {\n        readonly members: ReadonlyArray<HydrationMember>;\n        readonly server: Effect.Effect<void>;\n        readonly toAttributes: Effect.Effect<ReadonlyArray<HydrationAttribute>, E, R>;\n    };\n}"
    ],
    "summary": "Defines the hydration ref state contract.",
    "sections": {
      "Why": "Makes a state boundary callable with an attribute host while also exposing server serialization\nas ordinary typed Effects.",
      "Ownership and lifetime": "HydrationRef is a contract and performs no acquisition. Implementations retain the errors,\nservices, interruption, and Scope requirements expressed by its members.",
      "Call signatures": "Restores every member from a DOM-compatible attribute host.",
      "Call signatures: Why": "Reads and removes encoded attributes, decodes them with each member's Schema, and completes the\ndeferred client initializer before ordinary state observation resumes.",
      "Call signatures: Ownership and lifetime": "Running the Effect requires Scope for deferred restoration and member subscriptions. Missing\nattributes resume the original initializer; Schema failures and codec services remain on the\nmember metadata rather than becoming DOM exceptions.",
      "Property: [[computed:[HydrationRefTypeId]]]": "Exposes the members and Effects used for serialization and restoration.",
      "Property: [[computed:[HydrationRefTypeId]]]: Why": "Keeps server serialization discoverable without changing the RefSubject prototype or requiring\na renderer-specific wrapper.",
      "Property: [[computed:[HydrationRefTypeId]]]: Ownership and lifetime": "The operation starts only when its Effect is run. Any subscription or deferred hydration work is\nfinalized by the required Scope."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/Hydration.ts",
      "line": 233
    },
    "since": "2.0.0",
    "category": "Hydration protocol"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefSubject#HydrationRef",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefSubject",
    "consumerSpecifier": "@typed/fx/RefSubject",
    "exportName": "HydrationRef",
    "qualifiedName": "HydrationRef",
    "declarationKey": "declaration:9aecbcd76bd157f3d6f83811",
    "family": "interface",
    "signatures": [
      "export interface HydrationRef<E = never, R = never> {\n    (element: HydrationElement): Effect.Effect<void, never, R | Scope.Scope>;\n    readonly [HydrationRefTypeId]: {\n        readonly members: ReadonlyArray<HydrationMember>;\n        readonly server: Effect.Effect<void>;\n        readonly toAttributes: Effect.Effect<ReadonlyArray<HydrationAttribute>, E, R>;\n    };\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 233,
          "column": 1
        },
        "end": {
          "line": 275,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 252,
          "column": 3
        },
        "end": {
          "line": 252,
          "column": 76
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 270,
          "column": 3
        },
        "end": {
          "line": 274,
          "column": 5
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 271,
          "column": 5
        },
        "end": {
          "line": 271,
          "column": 54
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 272,
          "column": 5
        },
        "end": {
          "line": 272,
          "column": 42
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 273,
          "column": 5
        },
        "end": {
          "line": 273,
          "column": 83
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefSubject.HydrationRef"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9aecbcd76bd157f3d6f83811",
    "name": "HydrationRef",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "export interface HydrationRef<E = never, R = never> {\n    (element: HydrationElement): Effect.Effect<void, never, R | Scope.Scope>;\n    readonly [HydrationRefTypeId]: {\n        readonly members: ReadonlyArray<HydrationMember>;\n        readonly server: Effect.Effect<void>;\n        readonly toAttributes: Effect.Effect<ReadonlyArray<HydrationAttribute>, E, R>;\n    };\n}"
        ],
        "typeParameters": [
          "E = never",
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 233,
              "column": 1
            },
            "end": {
              "line": 275,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "(element: HydrationElement): Effect.Effect<void, never, R | Scope.Scope>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 252,
              "column": 3
            },
            "end": {
              "line": 252,
              "column": 76
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly [HydrationRefTypeId]: {\n    readonly members: ReadonlyArray<HydrationMember>;\n    readonly server: Effect.Effect<void>;\n    readonly toAttributes: Effect.Effect<ReadonlyArray<HydrationAttribute>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 270,
              "column": 3
            },
            "end": {
              "line": 274,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly members: ReadonlyArray<HydrationMember>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 271,
              "column": 5
            },
            "end": {
              "line": 271,
              "column": 54
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly server: Effect.Effect<void>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 272,
              "column": 5
            },
            "end": {
              "line": 272,
              "column": 42
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly toAttributes: Effect.Effect<ReadonlyArray<HydrationAttribute>, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 273,
              "column": 5
            },
            "end": {
              "line": 273,
              "column": 83
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export interface HydrationRef<E = never, R = never> {\n    (element: HydrationElement): Effect.Effect<void, never, R | Scope.Scope>;\n    readonly [HydrationRefTypeId]: {\n        readonly members: ReadonlyArray<HydrationMember>;\n        readonly server: Effect.Effect<void>;\n        readonly toAttributes: Effect.Effect<ReadonlyArray<HydrationAttribute>, E, R>;\n    };\n}"
    ],
    "typeParameters": [
      "E = never",
      "R = never"
    ],
    "summary": "Defines the hydration ref state contract.",
    "sections": {
      "Why": "Makes a state boundary callable with an attribute host while also exposing server serialization\nas ordinary typed Effects.",
      "Ownership and lifetime": "HydrationRef is a contract and performs no acquisition. Implementations retain the errors,\nservices, interruption, and Scope requirements expressed by its members.",
      "Call signatures": "Restores every member from a DOM-compatible attribute host.",
      "Call signatures: Why": "Reads and removes encoded attributes, decodes them with each member's Schema, and completes the\ndeferred client initializer before ordinary state observation resumes.",
      "Call signatures: Ownership and lifetime": "Running the Effect requires Scope for deferred restoration and member subscriptions. Missing\nattributes resume the original initializer; Schema failures and codec services remain on the\nmember metadata rather than becoming DOM exceptions.",
      "Property: [[computed:[HydrationRefTypeId]]]": "Exposes the members and Effects used for serialization and restoration.",
      "Property: [[computed:[HydrationRefTypeId]]]: Why": "Keeps server serialization discoverable without changing the RefSubject prototype or requiring\na renderer-specific wrapper.",
      "Property: [[computed:[HydrationRefTypeId]]]: Ownership and lifetime": "The operation starts only when its Effect is run. Any subscription or deferred hydration work is\nfinalized by the required Scope."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 233,
          "column": 1
        },
        "end": {
          "line": 275,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 252,
          "column": 3
        },
        "end": {
          "line": 252,
          "column": 76
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 270,
          "column": 3
        },
        "end": {
          "line": 274,
          "column": 5
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 271,
          "column": 5
        },
        "end": {
          "line": 271,
          "column": 54
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 272,
          "column": 5
        },
        "end": {
          "line": 272,
          "column": 42
        }
      },
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 273,
          "column": 5
        },
        "end": {
          "line": 273,
          "column": 83
        }
      }
    ],
    "since": "2.0.0",
    "category": "Hydration protocol"
  }
}
