import { render } from 'lit';
export function renderToString(tpl) {
    const frag = new DocumentFragment();
    frag.append(document.createElement('div'));
    render(tpl, frag.firstElementChild);
    return (frag.firstElementChild?.innerHTML ?? '').replace(/<!--[\s\S]*?-->/g, '');
}
//# sourceMappingURL=render-to-string.js.map