/** * Template-strings interning. * * lit-html keys its template cache by the object identity of the * `TemplateStringsArray`, so when Vite HMR re-executes a module, every * template literal produces a fresh array and lit rebuilds the entire DOM * subtree. Interning canonicalizes strings arrays by content: unchanged * templates keep their identity across re-execution, so only the edited * template rebuilds its part. * * This module is dependency-free and must stay safe to load in any * environment (it is injected into user modules in dev). */ /** * Returns the canonical strings array for `strings` within namespace `ns`. * * The first genuine `TemplateStringsArray` seen for a given content becomes * the canonical array; later content-equal arrays map onto it. Non-template * input (anything without a `raw` array) passes through untouched so lit * can raise its own error. */ export declare const intern: (ns: string, strings: TemplateStringsArray) => TemplateStringsArray; /** * Wraps a template tag so its strings argument is interned in `ns`. */ export declare const wrapTag: unknown>(tag: T, ns: string) => T; //# sourceMappingURL=intern.d.ts.map