{
  "id": "@typed/ui/Dom/index#toggleState",
  "canonicalId": "@typed/ui/Dom/Events#toggleState",
  "symbol": {
    "id": "@typed/ui/Dom/index#toggleState",
    "packageName": "@typed/ui",
    "moduleName": "Dom/index",
    "exportName": "toggleState",
    "kind": "function",
    "signatures": [
      "export declare function toggleState(event: Event): \"open\" | \"closed\" | undefined;"
    ],
    "summary": "Reads the standards-based `ToggleEvent.newState` value when present.",
    "sections": {
      "Why": "Popover and details components can follow the browser's real toggle event\nwhile remaining usable with DOM libraries whose Event types lag the platform.",
      "Ownership and lifetime": "Pure read of the current event; no state or listener is retained."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Dom/Events.ts",
      "line": 205
    },
    "since": "1.0.0",
    "category": "Event inspection"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Dom/index#toggleState",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Dom/index",
    "consumerSpecifier": "@typed/ui/Dom/index",
    "exportName": "toggleState",
    "qualifiedName": "toggleState",
    "declarationKey": "declaration:c1f7c8de2fb38a379162053e",
    "family": "function",
    "signatures": [
      "export declare function toggleState(event: Event): \"open\" | \"closed\" | undefined;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dom/Events.ts",
        "start": {
          "line": 205,
          "column": 1
        },
        "end": {
          "line": 208,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Dom.toggleState",
      "@typed/ui/Dom#toggleState",
      "@typed/ui/Dom/Events#toggleState",
      "@typed/ui/index#Dom.toggleState"
    ],
    "isAlias": true,
    "static": false,
    "importedFrom": "declaration:c1f7c8de2fb38a379162053e"
  },
  "declaration": {
    "declarationKey": "declaration:c1f7c8de2fb38a379162053e",
    "name": "toggleState",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function toggleState(event: Event): \"open\" | \"closed\" | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Dom/Events.ts",
            "start": {
              "line": 205,
              "column": 1
            },
            "end": {
              "line": 208,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function toggleState(event: Event): \"open\" | \"closed\" | undefined;"
    ],
    "typeParameters": [],
    "summary": "Reads the standards-based `ToggleEvent.newState` value when present.",
    "sections": {
      "Why": "Popover and details components can follow the browser's real toggle event\nwhile remaining usable with DOM libraries whose Event types lag the platform.",
      "Ownership and lifetime": "Pure read of the current event; no state or listener is retained."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dom/Events.ts",
        "start": {
          "line": 205,
          "column": 1
        },
        "end": {
          "line": 208,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Event inspection"
  }
}
