import { default as ts } from 'typescript'; import { TemplatePart } from './templateParts.ts'; import { JsxHost, JsxContext } from './types.ts'; /** * Recursively traverse the entire AST top-down, converting JSX to lit-html. */ export declare function jsxVisitor(context: JsxContext, /** * Only provide this if the node is in a place where we have to guard against * rendering "false" to the screen (as lit-html as an anti-feature of * rendering booleans as strings rather than ignoring them) */ parent: ts.Node | undefined, node: Type): Type; export declare function jsxHostToLitExpression(context: JsxContext, jsxHost: JsxHost): ts.Expression; export declare const findKeyPropertyIndex: (jsxElement: ts.JsxOpeningElement | ts.JsxSelfClosingElement) => number; export declare function jsxExpressionToTemplateParts(context: JsxContext, jsxExpression: ts.JsxExpression, parent: Parameters[1]): [] | [TemplatePart];