/** * Finds an `html` template literal in source text by its raw strings, and * one of its elements in it: how a page without the plugin gets a "Rendered * at" location (see `runtime/template-sites.ts`). * * A match is the strings in order, as one template literal: a backtick, the * first string, then for each binding a `${…}` expression and the next * string, then the closing backtick. Expressions are skipped by bracket depth, * stepping over strings, comments and nested template literals, so a * binding holding `html\`…\`` or an object literal does not end the match * early. Heuristic by nature: templates whose text a build rewrote (minified * template HTML) are not found, and two literals with the same text resolve * to the first. */ /** * Where each of `strings` starts in `text`, for the first template literal * made of them; `undefined` when none is. */ export declare const findTemplate: (text: string, strings: readonly string[]) => number[] | undefined; /** * Offset in `text` of the `<` opening the `index`th ` number | undefined; /** 1-based line and column of `offset` in `text`. */ export declare const lineColumnOf: (text: string, offset: number) => { line: number; column: number; }; //# sourceMappingURL=template-text.d.ts.map