/** * Stable per-instance id and source-meta lookup for the timeline. * * Assigns monotonic numeric ids to ReactiveElement instances via a WeakMap * so we never mutate the elements themselves and ids survive HMR (same * instance identity after in-place patching). * * Source metadata is read from the Symbol injected by the source-meta * transform — the same one the source-overlay feature uses — so timeline * events can deep-link to the component's definition file. */ import type { ElementSource } from '../../../types/inspector.js'; import type { TimelineEvent } from '../../../types/timeline.js'; /** A place in a file with a column, which a call site always has. */ export interface ElementCallSite extends ElementSource { column: number; } /** Returns (and memoises) a stable numeric id for an element instance. */ export declare const idOf: (el: object) => number; /** * Resolves an id back to its element instance, or `undefined` if it was never * seen or has since been garbage-collected. Used by the inspector to act on the * id the panel sends (details, watch, highlight). */ export declare const elementById: (id: number) => Element | undefined; /** Reads the file/line source metadata injected by the plugin transform. */ export declare const sourceOf: (el: object) => ElementSource | undefined; /** * Extracts the changed property keys from a PropertyValues argument. * Returns undefined when `changed` is not a Map (e.g. for lifecycle hooks * that don't receive a changed-properties argument). */ export declare const changedKeys: (changed: unknown) => string[] | undefined; /** Where `el` was written in a template, from the attribute the dev transform stamps. */ export declare const callSiteOf: (el: object) => ElementCallSite | undefined; /** * The identity every timeline event of `el` carries: id, tag, where the class * is declared and, for an element written in a template, where that is. */ export declare const metaOf: (el: object) => NonNullable; //# sourceMappingURL=identity.d.ts.map