import type { HostEvent, JsonValue } from './types.js'; /** @experimental No production consumer yet — see the note on {@link HostEvent}. */ export declare function defineEvent
(name: string): HostEvent
;
/**
* 校验 `ev` 是否真的来自 `defineEvent()`。判定方式是 WeakMap 身份,而非
* `instanceof` —— 这样跨 vm.Context(同 module instance)也能工作。
*
* @internal
*/
export declare function isHostEvent(ev: unknown): ev is HostEvent (event: HostEvent , publisher: (payload: P) => void): void;
/** @internal framework 在 Cleanup 阶段调 */
export declare function unbindHostEvent (event: HostEvent ): void;
//# sourceMappingURL=events.d.ts.map