/** * Public timeline API — re-exported by the `virtual:lit-plugin/timeline` * virtual module so app code and other plugins can contribute events and * custom layers without reaching into plugin internals. * * This module shares the same `transport.ts` instance as `install.ts`, so * events emitted here flow through the same batched HMR channel to the panel. */ import type { TimelineEvent, TimelineEventInput, TimelineLayer } from '../../../types/timeline.js'; export type { TimelineEvent, TimelineEventInput, TimelineLayer }; /** * Emit a custom timeline event from app code. `time` is a * `performance.now()` value; leave it out to stamp the event as it is added. * * The event is forwarded to the Timeline panel when recording is active. * Use a custom `layerId` registered with `addTimelineLayer`, or one of the * built-in layer ids (`'lit-lifecycle'`, `'lit-render'`, * `'lit-render-verbose'`, `'mouse'`, `'keyboard'`, `'custom-events'`, * `'lit-warnings'`). * * No-ops in production (the HMR channel is absent; events are dropped in the * transport queue). */ export declare const addTimelineEvent: (event: TimelineEventInput) => void; /** * Register a custom timeline layer and announce it to the panel. * * The panel adds the layer to its toggle strip after the built-in layers. * The registration message is sent once on first call; duplicate ids are * ignored. */ export declare const addTimelineLayer: (layer: TimelineLayer) => void; //# sourceMappingURL=public-api.d.ts.map