{
  "id": "@typed/fx#RefGraph.findEdge",
  "canonicalId": "@typed/fx/RefGraph#findEdge",
  "symbol": {
    "id": "@typed/fx#RefGraph.findEdge",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefGraph.findEdge",
    "kind": "constant",
    "signatures": [
      "export declare const findEdge: {\n    <E>(predicate: (edge: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, predicate: (edge: E) => boolean): RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n};"
    ],
    "summary": "Find an edge matching a predicate.",
    "sections": {
      "Why": "Models the possibly absent result of find edge as Filtered state, so absence stays explicit\nwhile later source versions can make a value available.",
      "Ownership and lifetime": "The find edge 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/RefGraph.ts",
      "line": 944
    },
    "since": "1.18.0",
    "category": "Optional queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefGraph.findEdge",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefGraph",
    "qualifiedName": "RefGraph.findEdge",
    "declarationKey": "declaration:9d885ce3ecf5b45df192c687",
    "family": "variable",
    "signatures": [
      "export declare const findEdge: {\n    <E>(predicate: (edge: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, predicate: (edge: E) => boolean): RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 944,
          "column": 14
        },
        "end": {
          "line": 962,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 945,
          "column": 3
        },
        "end": {
          "line": 949,
          "column": 53
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 950,
          "column": 3
        },
        "end": {
          "line": 953,
          "column": 51
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefGraph#findEdge"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefGraph",
    "static": false,
    "importedFrom": "declaration:9d885ce3ecf5b45df192c687"
  },
  "declaration": {
    "declarationKey": "declaration:9d885ce3ecf5b45df192c687",
    "name": "findEdge",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const findEdge: {\n    <E>(predicate: (edge: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, predicate: (edge: E) => boolean): RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 944,
              "column": 14
            },
            "end": {
              "line": 962,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<E>(predicate: (edge: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.EdgeIndex, Err, R>;",
          "<N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, predicate: (edge: E) => boolean): RefSubject.Filtered<Graph.EdgeIndex, Err, R>;"
        ],
        "typeParameters": [
          "E",
          "N",
          "T extends Graph.Kind",
          "Err",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 945,
              "column": 3
            },
            "end": {
              "line": 949,
              "column": 53
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 950,
              "column": 3
            },
            "end": {
              "line": 953,
              "column": 51
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const findEdge: {\n    <E>(predicate: (edge: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, predicate: (edge: E) => boolean): RefSubject.Filtered<Graph.EdgeIndex, Err, R>;\n};"
    ],
    "typeParameters": [
      "E",
      "N",
      "T extends Graph.Kind",
      "Err",
      "R"
    ],
    "summary": "Find an edge matching a predicate.",
    "sections": {
      "Why": "Models the possibly absent result of find edge as Filtered state, so absence stays explicit\nwhile later source versions can make a value available.",
      "Ownership and lifetime": "The find edge 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/RefGraph.ts",
        "start": {
          "line": 944,
          "column": 14
        },
        "end": {
          "line": 962,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 945,
          "column": 3
        },
        "end": {
          "line": 949,
          "column": 53
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 950,
          "column": 3
        },
        "end": {
          "line": 953,
          "column": 51
        }
      }
    ],
    "since": "1.18.0",
    "category": "Optional queries"
  }
}
