/** * Buffered transport for timeline events. * * Forwards events over the page channel (`../page-channel.ts`), which is * Vite's HMR WebSocket by default and can be pointed at a standalone * devframe server instead. Which carrier is in use is not this module's * concern. * * Batching: we coalesce events with `queueMicrotask` so a burst of * commit/set-part events from a single render doesn't hammer the channel * with one message per event. */ import type { TimelineEvent } from '../../../types/timeline.js'; import type { PageTransport } from '../page-channel.js'; type HotClient = Pick; /** * Register the HMR hot client. * Called by install.ts after import.meta.hot check. * Flushes any queued events and fires pending one-shot callbacks. */ export declare const setHotClient: (hot: HotClient) => void; /** * Register a callback to be invoked once the HMR client is available. * If the client is already set the callback is fired on the next microtask. */ export declare const setHotClientCallback: (cb: () => void) => void; /** * Enqueue a timeline event for forwarding to the Vite server. * Batches via microtask so a single synchronous render burst * doesn't send dozens of individual messages. */ export declare const emit: (event: TimelineEvent) => void; export {}; //# sourceMappingURL=transport.d.ts.map