{
  "id": "@typed/ui/Dom/index#ElementRefCallback",
  "canonicalId": "@typed/ui/Dom/Types#ElementRefCallback",
  "symbol": {
    "id": "@typed/ui/Dom/index#ElementRefCallback",
    "packageName": "@typed/ui",
    "moduleName": "Dom/index",
    "exportName": "ElementRefCallback",
    "kind": "type",
    "signatures": [
      "export type ElementRefCallback<Element extends globalThis.Element> = (element: Element) => void | EffectInput | Stream.Stream<any, any, any> | Stream.Stream<any, never, never> | Fx<any, any, any> | Fx<any, never, never>;"
    ],
    "summary": "Callback invoked with the exact mounted DOM element.",
    "sections": {
      "Why": "A ref can initialize imperative web-standard APIs or return Effect, Stream,\nor Fx work without replacing the node or hiding its identity.",
      "Ownership and lifetime": "Returned Effect, Stream, or Fx work runs in the element's rendering Scope and\nis interrupted when that Scope closes."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Dom/Types.ts",
      "line": 170
    },
    "since": "1.0.0",
    "category": "Element ref types"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Dom/index#ElementRefCallback",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Dom/index",
    "consumerSpecifier": "@typed/ui/Dom/index",
    "exportName": "ElementRefCallback",
    "qualifiedName": "ElementRefCallback",
    "declarationKey": "declaration:0a71af8b90fa405986c7c473",
    "family": "type-alias",
    "signatures": [
      "export type ElementRefCallback<Element extends globalThis.Element> = (element: Element) => void | EffectInput | Stream.Stream<any, any, any> | Stream.Stream<any, never, never> | Fx<any, any, any> | Fx<any, never, never>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dom/Types.ts",
        "start": {
          "line": 170,
          "column": 1
        },
        "end": {
          "line": 178,
          "column": 27
        }
      }
    ],
    "aliases": [
      "@typed/ui#Dom.ElementRefCallback",
      "@typed/ui/Dom#ElementRefCallback",
      "@typed/ui/Dom/Types#ElementRefCallback",
      "@typed/ui/index#Dom.ElementRefCallback"
    ],
    "isAlias": true,
    "static": false,
    "importedFrom": "declaration:0a71af8b90fa405986c7c473"
  },
  "declaration": {
    "declarationKey": "declaration:0a71af8b90fa405986c7c473",
    "name": "ElementRefCallback",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type ElementRefCallback<Element extends globalThis.Element> = (element: Element) => void | EffectInput | Stream.Stream<any, any, any> | Stream.Stream<any, never, never> | Fx<any, any, any> | Fx<any, never, never>;"
        ],
        "typeParameters": [
          "Element extends globalThis.Element"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Dom/Types.ts",
            "start": {
              "line": 170,
              "column": 1
            },
            "end": {
              "line": 178,
              "column": 27
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type ElementRefCallback<Element extends globalThis.Element> = (element: Element) => void | EffectInput | Stream.Stream<any, any, any> | Stream.Stream<any, never, never> | Fx<any, any, any> | Fx<any, never, never>;"
    ],
    "typeParameters": [
      "Element extends globalThis.Element"
    ],
    "summary": "Callback invoked with the exact mounted DOM element.",
    "sections": {
      "Why": "A ref can initialize imperative web-standard APIs or return Effect, Stream,\nor Fx work without replacing the node or hiding its identity.",
      "Ownership and lifetime": "Returned Effect, Stream, or Fx work runs in the element's rendering Scope and\nis interrupted when that Scope closes."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dom/Types.ts",
        "start": {
          "line": 170,
          "column": 1
        },
        "end": {
          "line": 178,
          "column": 27
        }
      }
    ],
    "since": "1.0.0",
    "category": "Element ref types"
  }
}
