{
  "id": "@typed/fx#RefHashMap.findFirst",
  "canonicalId": "@typed/fx/RefHashMap#findFirst",
  "symbol": {
    "id": "@typed/fx#RefHashMap.findFirst",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefHashMap.findFirst",
    "kind": "constant",
    "signatures": [
      "export declare const findFirst: {\n    <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, predicate: (value: V, key: K) => boolean): RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n};"
    ],
    "summary": "Find the first entry satisfying a predicate.",
    "sections": {
      "Why": "Models the possibly absent result of find first as Filtered state, so absence stays explicit\nwhile later source versions can make a value available.",
      "Ownership and lifetime": "The find first view retains no independent value. Its Effect read fails with NoSuchElement\nwhile absent; the observing Scope owns and finalizes its Fx subscription."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefHashMap.ts",
      "line": 754
    },
    "since": "1.18.0",
    "category": "Optional queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefHashMap.findFirst",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefHashMap",
    "qualifiedName": "RefHashMap.findFirst",
    "declarationKey": "declaration:3afb2c2538c933683c73eb9a",
    "family": "variable",
    "signatures": [
      "export declare const findFirst: {\n    <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, predicate: (value: V, key: K) => boolean): RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 754,
          "column": 14
        },
        "end": {
          "line": 769,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 755,
          "column": 3
        },
        "end": {
          "line": 757,
          "column": 79
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 758,
          "column": 3
        },
        "end": {
          "line": 761,
          "column": 40
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefHashMap#findFirst"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefHashMap",
    "static": false,
    "importedFrom": "declaration:3afb2c2538c933683c73eb9a"
  },
  "declaration": {
    "declarationKey": "declaration:3afb2c2538c933683c73eb9a",
    "name": "findFirst",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const findFirst: {\n    <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, predicate: (value: V, key: K) => boolean): RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefHashMap.ts",
            "start": {
              "line": 754,
              "column": 14
            },
            "end": {
              "line": 769,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<[\n    K,\n    V\n], E, R>;",
          "<K, V, E, R>(ref: RefHashMap<K, V, E, R>, predicate: (value: V, key: K) => boolean): RefSubject.Filtered<[\n    K,\n    V\n], E, R>;"
        ],
        "typeParameters": [
          "K",
          "V",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefHashMap.ts",
            "start": {
              "line": 755,
              "column": 3
            },
            "end": {
              "line": 757,
              "column": 79
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefHashMap.ts",
            "start": {
              "line": 758,
              "column": 3
            },
            "end": {
              "line": 761,
              "column": 40
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const findFirst: {\n    <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n    <K, V, E, R>(ref: RefHashMap<K, V, E, R>, predicate: (value: V, key: K) => boolean): RefSubject.Filtered<[\n        K,\n        V\n    ], E, R>;\n};"
    ],
    "typeParameters": [
      "K",
      "V",
      "E",
      "R"
    ],
    "summary": "Find the first entry satisfying a predicate.",
    "sections": {
      "Why": "Models the possibly absent result of find first as Filtered state, so absence stays explicit\nwhile later source versions can make a value available.",
      "Ownership and lifetime": "The find first view retains no independent value. Its Effect read fails with NoSuchElement\nwhile absent; the observing Scope owns and finalizes its Fx subscription."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 754,
          "column": 14
        },
        "end": {
          "line": 769,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 755,
          "column": 3
        },
        "end": {
          "line": 757,
          "column": 79
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefHashMap.ts",
        "start": {
          "line": 758,
          "column": 3
        },
        "end": {
          "line": 761,
          "column": 40
        }
      }
    ],
    "since": "1.18.0",
    "category": "Optional queries"
  }
}
