{
  "id": "@typed/fx#RefHashRing.add",
  "canonicalId": "@typed/fx/RefHashRing#add",
  "symbol": {
    "id": "@typed/fx#RefHashRing.add",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefHashRing.add",
    "kind": "constant",
    "signatures": [
      "export declare const add: {\n    <A extends PrimaryKey.PrimaryKey>(node: A, options?: {\n        readonly weight?: number;\n    }): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;\n    <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>, node: A, options?: {\n        readonly weight?: number;\n    }): Effect.Effect<HashRing.HashRing<A>, E, R>;\n};"
    ],
    "summary": "Add a node to the HashRing.",
    "sections": {
      "Why": "Add a node to the HashRing. The operation remains attached to the RefSubject's versioned state\nboundary.",
      "Ownership and lifetime": "Running add performs one serialized hash ring transition and resolves with its committed value.\nIt acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefHashRing.ts",
      "line": 113
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefHashRing.add",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefHashRing",
    "qualifiedName": "RefHashRing.add",
    "declarationKey": "declaration:1897cb29dca47f7ea68a4b11",
    "family": "variable",
    "signatures": [
      "export declare const add: {\n    <A extends PrimaryKey.PrimaryKey>(node: A, options?: {\n        readonly weight?: number;\n    }): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;\n    <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>, node: A, options?: {\n        readonly weight?: number;\n    }): Effect.Effect<HashRing.HashRing<A>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefHashRing.ts",
        "start": {
          "line": 113,
          "column": 14
        },
        "end": {
          "line": 132,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashRing.ts",
        "start": {
          "line": 114,
          "column": 3
        },
        "end": {
          "line": 117,
          "column": 85
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashRing.ts",
        "start": {
          "line": 118,
          "column": 3
        },
        "end": {
          "line": 122,
          "column": 48
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefHashRing#add"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefHashRing",
    "static": false,
    "importedFrom": "declaration:1897cb29dca47f7ea68a4b11"
  },
  "declaration": {
    "declarationKey": "declaration:1897cb29dca47f7ea68a4b11",
    "name": "add",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const add: {\n    <A extends PrimaryKey.PrimaryKey>(node: A, options?: {\n        readonly weight?: number;\n    }): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;\n    <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>, node: A, options?: {\n        readonly weight?: number;\n    }): Effect.Effect<HashRing.HashRing<A>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefHashRing.ts",
            "start": {
              "line": 113,
              "column": 14
            },
            "end": {
              "line": 132,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A extends PrimaryKey.PrimaryKey>(node: A, options?: {\n    readonly weight?: number;\n}): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;",
          "<A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>, node: A, options?: {\n    readonly weight?: number;\n}): Effect.Effect<HashRing.HashRing<A>, E, R>;"
        ],
        "typeParameters": [
          "A extends PrimaryKey.PrimaryKey",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefHashRing.ts",
            "start": {
              "line": 114,
              "column": 3
            },
            "end": {
              "line": 117,
              "column": 85
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefHashRing.ts",
            "start": {
              "line": 118,
              "column": 3
            },
            "end": {
              "line": 122,
              "column": 48
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const add: {\n    <A extends PrimaryKey.PrimaryKey>(node: A, options?: {\n        readonly weight?: number;\n    }): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;\n    <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>, node: A, options?: {\n        readonly weight?: number;\n    }): Effect.Effect<HashRing.HashRing<A>, E, R>;\n};"
    ],
    "typeParameters": [
      "A extends PrimaryKey.PrimaryKey",
      "E",
      "R"
    ],
    "summary": "Add a node to the HashRing.",
    "sections": {
      "Why": "Add a node to the HashRing. The operation remains attached to the RefSubject's versioned state\nboundary.",
      "Ownership and lifetime": "Running add performs one serialized hash ring transition and resolves with its committed value.\nIt acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefHashRing.ts",
        "start": {
          "line": 113,
          "column": 14
        },
        "end": {
          "line": 132,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashRing.ts",
        "start": {
          "line": 114,
          "column": 3
        },
        "end": {
          "line": 117,
          "column": 85
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashRing.ts",
        "start": {
          "line": 118,
          "column": 3
        },
        "end": {
          "line": 122,
          "column": 48
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
