{
  "id": "@typed/ui#Composite.updateTypeaheadBuffer",
  "canonicalId": "@typed/ui/Composite#updateTypeaheadBuffer",
  "symbol": {
    "id": "@typed/ui#Composite.updateTypeaheadBuffer",
    "packageName": "@typed/ui",
    "moduleName": ".",
    "exportName": "Composite.updateTypeaheadBuffer",
    "kind": "function",
    "signatures": [
      "export declare function updateTypeaheadBuffer(buffer: TypeaheadBuffer, key: string, now: number, timeout?: number): TypeaheadBuffer;"
    ],
    "summary": "Appends within the timeout window and starts a new query after the buffer expires.",
    "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 buffer = Composite.updateTypeaheadBuffer({ value: \"a\", updatedAt: 100 }, \"b\", 200);"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Composite.ts",
      "line": 937
    },
    "since": "1.0.0",
    "category": "Typeahead"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui#Composite.updateTypeaheadBuffer",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/ui",
    "exportName": "Composite",
    "qualifiedName": "Composite.updateTypeaheadBuffer",
    "declarationKey": "declaration:53498b673b24a5b308061c48",
    "family": "function",
    "signatures": [
      "export declare function updateTypeaheadBuffer(buffer: TypeaheadBuffer, key: string, now: number, timeout?: number): TypeaheadBuffer;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 937,
          "column": 1
        },
        "end": {
          "line": 947,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui/Composite#updateTypeaheadBuffer",
      "@typed/ui/index#Composite.updateTypeaheadBuffer"
    ],
    "isAlias": true,
    "parentId": "@typed/ui#Composite",
    "static": false,
    "importedFrom": "declaration:53498b673b24a5b308061c48"
  },
  "declaration": {
    "declarationKey": "declaration:53498b673b24a5b308061c48",
    "name": "updateTypeaheadBuffer",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function updateTypeaheadBuffer(buffer: TypeaheadBuffer, key: string, now: number, timeout?: number): TypeaheadBuffer;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Composite.ts",
            "start": {
              "line": 937,
              "column": 1
            },
            "end": {
              "line": 947,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function updateTypeaheadBuffer(buffer: TypeaheadBuffer, key: string, now: number, timeout?: number): TypeaheadBuffer;"
    ],
    "typeParameters": [],
    "summary": "Appends within the timeout window and starts a new query after the buffer expires.",
    "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 buffer = Composite.updateTypeaheadBuffer({ value: \"a\", updatedAt: 100 }, \"b\", 200);"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 937,
          "column": 1
        },
        "end": {
          "line": 947,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Typeahead"
  }
}
