import { NodeChild } from "./types.cjs"; import { EventHandlers } from "./jsx.cjs"; import { Block, Component, EmitsOptions, Fragment, FunctionalVaporComponent, Ref, Suspense, SuspenseProps, TeleportProps, VaporComponent, VaporComponentInstance, VaporTeleport } from "vue"; //#region src/h.d.ts type HTMLElementEventHandler = EventHandlers<{ [K in keyof HTMLElementEventMap as `on${Capitalize}`]: HTMLElementEventMap[K] }>; type NodeRef = string | Ref | ((ref: Element | VaporComponentInstance, refs: Record) => void); type ReservedProps$1 = { key?: () => PropertyKey; ref?: NodeRef; }; type RawProps = Record & ReservedProps$1; type RawSlot = (...args: any[]) => NodeChild<() => NodeChild>; type RawChildren = NodeChild<() => NodeChild> | RawSlot; type RawSlots = Record; declare function h(type: K, props?: (RawProps & (K extends keyof HTMLElementTagNameMap ? HTMLElementEventHandler : {})) | null, children?: K extends keyof HTMLElementTagNameMap ? RawChildren : RawChildren | RawSlots): Block; declare function h(type: typeof Fragment, props?: ReservedProps$1 | null, children?: RawChildren): Block; declare function h(type: typeof VaporTeleport, props: RawProps & TeleportProps, children: RawChildren | RawSlots): Block; declare function h(type: typeof Suspense, props?: (RawProps & SuspenseProps) | null, children?: RawChildren | RawSlots): Block; declare function h = RawSlots>(type: FunctionalVaporComponent, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | S): Block; declare function h(type: Component | VaporComponent, props?: RawProps, children?: RawChildren | RawSlots): Block; //#endregion export { h };