import type { Signal } from "./signal"; export type HyperscriptChild = string | number | Element | Node | Signal; export interface HyperscriptChildAttrs { [key: string]: string | number | Signal; } /** Create element, bind Signals and Attributes. */ export type h = ( tagName: string, ...children: (HyperscriptChildAttrs | HyperscriptChild | HyperscriptChild[])[] ) => T; export interface HyperscriptModule { h: h }