export type SvgNode = [ tag: string, attributes?: Record, children?: SvgNode[], ]; export type Content = string | number | HTMLElement | SVGElement | Node; export type Element = HTMLElement | SVGElement; export type ElementAttributes = Record< string, | string | number | undefined | null | boolean | Array | Record >; export type ElementChildren = Array< | ElementParams | HTMLElement | SVGElement | Node | string | number | boolean | undefined | null >; export type ElementParams = [ tag: string, attributes?: ElementAttributes, children?: ElementChildren, ];