import { MockNode , serializeNodeToHtml } from '@stencil/core/mock-doc' ; const print = ( val ) : string => { return serializeNodeToHtml ( val , { serializeShadowRoot : true , prettyHtml : true , outerHtml : true , } ) ; } ; const test = ( val ) : boolean => { return val !== undefined && val !== null && ( val instanceof HTMLElement || val instanceof MockNode ) ; } ; export const HtmlSerializer = { print , test , } ;