import { default as ts } from 'typescript'; import { JsxContext, LitTag, ambiguousSvgTag } from './types.ts'; /** * Template part is a convenient intermediate representation for template * literal expressions. * * String template literal parts will be joined together, and expressions will * be put inside of `${}`. */ export type TemplatePart = ts.Expression | string; export type JsxHostTemplateParts = { readonly key: ts.Expression | undefined; readonly parts: TemplatePart[]; readonly litTag: LitTag | typeof ambiguousSvgTag | undefined; }; export declare const isNonEmptyTemplatePart: (part: TemplatePart) => boolean; export declare function templatePartsToLitExpression({ key, parts, litTag }: JsxHostTemplateParts, context: JsxContext): ts.Expression;