{
  "id": "@typed/fx#RefString.replace",
  "canonicalId": "@typed/fx/RefString#replace",
  "symbol": {
    "id": "@typed/fx#RefString.replace",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefString.replace",
    "kind": "constant",
    "signatures": [
      "export declare const replace: {\n    (searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;\n    <E, R>(ref: RefString<E, R>, searchValue: string | RegExp, replaceValue: string): RefSubject.Computed<string, E, R>;\n};"
    ],
    "summary": "Replace the first occurrence of a substring or pattern in the current state of a RefString.",
    "sections": {
      "Why": "Keeps replace atomic with respect to competing RefSubject writes instead of splitting the read\nand replacement into separate effects.",
      "Ownership and lifetime": "The replace view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefString.ts",
      "line": 213
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefString.replace",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefString",
    "qualifiedName": "RefString.replace",
    "declarationKey": "declaration:e00a5d44e4e793e4734384bf",
    "family": "variable",
    "signatures": [
      "export declare const replace: {\n    (searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;\n    <E, R>(ref: RefString<E, R>, searchValue: string | RegExp, replaceValue: string): RefSubject.Computed<string, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefString.ts",
        "start": {
          "line": 213,
          "column": 14
        },
        "end": {
          "line": 228,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefString.ts",
        "start": {
          "line": 214,
          "column": 3
        },
        "end": {
          "line": 217,
          "column": 72
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefString.ts",
        "start": {
          "line": 218,
          "column": 3
        },
        "end": {
          "line": 222,
          "column": 40
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefString#replace"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefString",
    "static": false,
    "importedFrom": "declaration:e00a5d44e4e793e4734384bf"
  },
  "declaration": {
    "declarationKey": "declaration:e00a5d44e4e793e4734384bf",
    "name": "replace",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const replace: {\n    (searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;\n    <E, R>(ref: RefString<E, R>, searchValue: string | RegExp, replaceValue: string): RefSubject.Computed<string, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefString.ts",
            "start": {
              "line": 213,
              "column": 14
            },
            "end": {
              "line": 228,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "(searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;",
          "<E, R>(ref: RefString<E, R>, searchValue: string | RegExp, replaceValue: string): RefSubject.Computed<string, E, R>;"
        ],
        "typeParameters": [
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefString.ts",
            "start": {
              "line": 214,
              "column": 3
            },
            "end": {
              "line": 217,
              "column": 72
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefString.ts",
            "start": {
              "line": 218,
              "column": 3
            },
            "end": {
              "line": 222,
              "column": 40
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const replace: {\n    (searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;\n    <E, R>(ref: RefString<E, R>, searchValue: string | RegExp, replaceValue: string): RefSubject.Computed<string, E, R>;\n};"
    ],
    "typeParameters": [
      "E",
      "R"
    ],
    "summary": "Replace the first occurrence of a substring or pattern in the current state of a RefString.",
    "sections": {
      "Why": "Keeps replace atomic with respect to competing RefSubject writes instead of splitting the read\nand replacement into separate effects.",
      "Ownership and lifetime": "The replace view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefString.ts",
        "start": {
          "line": 213,
          "column": 14
        },
        "end": {
          "line": 228,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefString.ts",
        "start": {
          "line": 214,
          "column": 3
        },
        "end": {
          "line": 217,
          "column": 72
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefString.ts",
        "start": {
          "line": 218,
          "column": 3
        },
        "end": {
          "line": 222,
          "column": 40
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
