import { AST } from '@glimmer/syntax'; import { Range } from './transformed-module.js'; import { Identifier } from './map-template-contents.js'; export declare type MappingSource = AST.Node | TemplateEmbedding | TextContent | Identifier | ParseError; /** * In cases where we're unable to parse a template, we still want to * be able to hold a placeholder mapping so that we can respond sensibly * to offset transformation queries. This class acts as a standin for * the proper AST node we were unable to obtain in such cases. */ export declare class ParseError { readonly type = "ParseError"; } /** * The Glimmer AST uses `TextNode` for both string arg values on elements * and for top-level text content floating in the DOM itself. Since we * want to treat the two differently (namely, string args may have useful * completion suggestions but plain text doesn't), we use a stand-in * node for the latter. */ export declare class TextContent { readonly type = "TextContent"; } /** * This node represents the root of an embedded template, including any * boilerplate like tagged template syntax or `