{
  "id": "@typed/fx#RefTrie.longestPrefixOf",
  "canonicalId": "@typed/fx/RefTrie#longestPrefixOf",
  "symbol": {
    "id": "@typed/fx#RefTrie.longestPrefixOf",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefTrie.longestPrefixOf",
    "kind": "constant",
    "signatures": [
      "export declare const longestPrefixOf: {\n    (key: string): <V, E, R>(ref: RefTrie<V, E, R>) => RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n    <V, E, R>(ref: RefTrie<V, E, R>, key: string): RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n};"
    ],
    "summary": "Get the longest prefix of a key that exists in the Trie.",
    "sections": {
      "Why": "Models a longest-prefix lookup as Filtered state: an absent match fails an Effect read with\n`NoSuchElementError`, while later pushes can make a match available.",
      "Ownership and lifetime": "The longest prefix of view retains no independent state. An Effect read samples the source once;\nFx observation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefTrie.ts",
      "line": 554
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefTrie.longestPrefixOf",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefTrie",
    "qualifiedName": "RefTrie.longestPrefixOf",
    "declarationKey": "declaration:e5bd29cba3fb36ecd01c6778",
    "family": "variable",
    "signatures": [
      "export declare const longestPrefixOf: {\n    (key: string): <V, E, R>(ref: RefTrie<V, E, R>) => RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n    <V, E, R>(ref: RefTrie<V, E, R>, key: string): RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefTrie.ts",
        "start": {
          "line": 554,
          "column": 14
        },
        "end": {
          "line": 561,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTrie.ts",
        "start": {
          "line": 555,
          "column": 3
        },
        "end": {
          "line": 557,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTrie.ts",
        "start": {
          "line": 558,
          "column": 3
        },
        "end": {
          "line": 558,
          "column": 101
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefTrie#longestPrefixOf"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefTrie",
    "static": false,
    "importedFrom": "declaration:e5bd29cba3fb36ecd01c6778"
  },
  "declaration": {
    "declarationKey": "declaration:e5bd29cba3fb36ecd01c6778",
    "name": "longestPrefixOf",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const longestPrefixOf: {\n    (key: string): <V, E, R>(ref: RefTrie<V, E, R>) => RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n    <V, E, R>(ref: RefTrie<V, E, R>, key: string): RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefTrie.ts",
            "start": {
              "line": 554,
              "column": 14
            },
            "end": {
              "line": 561,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "(key: string): <V, E, R>(ref: RefTrie<V, E, R>) => RefSubject.Computed<[\n    string,\n    V\n] | undefined, E, R>;",
          "<V, E, R>(ref: RefTrie<V, E, R>, key: string): RefSubject.Computed<[\n    string,\n    V\n] | undefined, E, R>;"
        ],
        "typeParameters": [
          "V",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefTrie.ts",
            "start": {
              "line": 555,
              "column": 3
            },
            "end": {
              "line": 557,
              "column": 93
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefTrie.ts",
            "start": {
              "line": 558,
              "column": 3
            },
            "end": {
              "line": 558,
              "column": 101
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const longestPrefixOf: {\n    (key: string): <V, E, R>(ref: RefTrie<V, E, R>) => RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n    <V, E, R>(ref: RefTrie<V, E, R>, key: string): RefSubject.Computed<[\n        string,\n        V\n    ] | undefined, E, R>;\n};"
    ],
    "typeParameters": [
      "V",
      "E",
      "R"
    ],
    "summary": "Get the longest prefix of a key that exists in the Trie.",
    "sections": {
      "Why": "Models a longest-prefix lookup as Filtered state: an absent match fails an Effect read with\n`NoSuchElementError`, while later pushes can make a match available.",
      "Ownership and lifetime": "The longest prefix of view retains no independent state. An Effect read samples the source once;\nFx observation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefTrie.ts",
        "start": {
          "line": 554,
          "column": 14
        },
        "end": {
          "line": 561,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTrie.ts",
        "start": {
          "line": 555,
          "column": 3
        },
        "end": {
          "line": 557,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTrie.ts",
        "start": {
          "line": 558,
          "column": 3
        },
        "end": {
          "line": 558,
          "column": 101
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
