/** * Lit dev-mode warnings, as the `lit-warnings` timeline layer. * * Each warning `lit-warnings.ts` captures becomes a `warning:` point * event carrying the code and message, attributed to the element that was * updating when Lit issued it, else to the tag the message names. One issued * mid-update carries that tick's groupId, so it folds under the update. * Warnings issued before a recording started, or before the layer was turned * on, are replayed then, because the mistake is still in the page and a * recording that omitted it would suggest otherwise; those carry * `replayed: true` and go to the panel only, since the Chrome tracks already * got them when they happened. * * Nothing is emitted unless recording with the layer on. */ import { type LifecycleEmit } from './lifecycle.js'; export interface WarningsLayerOptions { /** Where a warning goes as it is issued. */ emit: LifecycleEmit; /** Where a replay goes: the panel only. */ replayTo: LifecycleEmit; recording: () => boolean; enabled: () => boolean; /** The update tick an element is inside right now, if any. */ groupOf: (el: object) => string | undefined; } /** * Wires captured warnings into `emit`; returns the replay to run when the * panel starts recording or turns the layer on. */ export declare const installWarningsLayer: ({ emit, replayTo, recording, enabled, groupOf, }: WarningsLayerOptions) => { replay: () => void; }; //# sourceMappingURL=warnings-layer.d.ts.map