import type { Properties } from "csstype"; import { EventObject, EventTargetCallback, Options } from "./event.js"; import { AnyDic, Arr, Dic, Key, bool, falsy, int, str } from "./util.js"; export type { Properties } from "csstype"; export type HTMLTag = keyof HTMLElementTagNameMap; export type SVGTag = keyof SVGElementTagNameMap; export type HSElement = HTMLElement | SVGElement; export type One = T | G | Render>; export type NotRender = bool | null | undefined | ""; export type Content = NotRender | T | PromiseLike> | (() => Content); export interface Render { render(): T; } export type HTMLEventMap = { [K in keyof HTMLElementEventMap]?: (this: T, e: HTMLElementEventMap[K]) => any; }; export type SVGEventMap = { [K in keyof SVGElementEventMap]?: (this: T, e: SVGElementEventMap[K]) => any; }; export type Styles = Dic