{
  "id": "@typed/ui#Composite.typeahead",
  "canonicalId": "@typed/ui/Composite#typeahead",
  "symbol": {
    "id": "@typed/ui#Composite.typeahead",
    "packageName": "@typed/ui",
    "moduleName": ".",
    "exportName": "Composite.typeahead",
    "kind": "function",
    "signatures": [
      "export declare function typeahead<Item extends Collection.Item<unknown, object>>(items: readonly Item[], search: string, text?: (item: Item) => string, includeDisabled?: boolean): string | null;"
    ],
    "summary": "Returns the first enabled item id in DOM order whose textValue starts with the query.",
    "sections": {
      "Why": "Separating this deterministic policy from event wiring lets applications test it directly and\nreuse it in custom composites.",
      "Ownership and lifetime": "This is a synchronous calculation. It acquires no resources and does not mutate the input array,\nstate, event, or DOM."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Composite from \"@typed/ui/Composite\";\n\nconst id = Composite.typeahead([{ id: \"alpha\", textValue: \"Alpha\" }], \"al\");"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Composite.ts",
      "line": 833
    },
    "since": "1.0.0",
    "category": "Typeahead"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui#Composite.typeahead",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/ui",
    "exportName": "Composite",
    "qualifiedName": "Composite.typeahead",
    "declarationKey": "declaration:fff985c91f338d227ece49d0",
    "family": "function",
    "signatures": [
      "export declare function typeahead<Item extends Collection.Item<unknown, object>>(items: readonly Item[], search: string, text?: (item: Item) => string, includeDisabled?: boolean): string | null;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 833,
          "column": 1
        },
        "end": {
          "line": 840,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui/Composite#typeahead",
      "@typed/ui/index#Composite.typeahead"
    ],
    "isAlias": true,
    "parentId": "@typed/ui#Composite",
    "static": false,
    "importedFrom": "declaration:fff985c91f338d227ece49d0"
  },
  "declaration": {
    "declarationKey": "declaration:fff985c91f338d227ece49d0",
    "name": "typeahead",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function typeahead<Item extends Collection.Item<unknown, object>>(items: readonly Item[], search: string, text?: (item: Item) => string, includeDisabled?: boolean): string | null;"
        ],
        "typeParameters": [
          "Item extends Collection.Item<unknown, object>"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Composite.ts",
            "start": {
              "line": 833,
              "column": 1
            },
            "end": {
              "line": 840,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function typeahead<Item extends Collection.Item<unknown, object>>(items: readonly Item[], search: string, text?: (item: Item) => string, includeDisabled?: boolean): string | null;"
    ],
    "typeParameters": [
      "Item extends Collection.Item<unknown, object>"
    ],
    "summary": "Returns the first enabled item id in DOM order whose textValue starts with the query.",
    "sections": {
      "Why": "Separating this deterministic policy from event wiring lets applications test it directly and\nreuse it in custom composites.",
      "Ownership and lifetime": "This is a synchronous calculation. It acquires no resources and does not mutate the input array,\nstate, event, or DOM."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Composite from \"@typed/ui/Composite\";\n\nconst id = Composite.typeahead([{ id: \"alpha\", textValue: \"Alpha\" }], \"al\");"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 833,
          "column": 1
        },
        "end": {
          "line": 840,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Typeahead"
  }
}
