declare const _default: "import {\n IGetTemplate,\n GetTemplate,\n StringConstant,\n AttributesKey\n} from './types';\nimport html from './html';\nimport css from './css';\n\nconst { nothing } = StringConstant;\nconst template = document.createElement('template');\nconst stylesheet = ``\nconst templateHtml = [\n stylesheet,\n html\n].join(nothing);\n\ntemplate.innerHTML = templateHtml;\n\nexport default

(params: P) => {\n const {\n selector,\n attributes = {},\n properties = {}\n } = params;\n const attributesKeys = Object.keys(attributes) as AttributesKey[]\n const templateElement = template.content.querySelector(selector);\n const currentTemplate = templateElement && templateElement.cloneNode(true) as GetTemplate

;\n\n if (currentTemplate) {\n Object.assign(currentTemplate, properties);\n\n attributesKeys.forEach(key => attributes[key] && currentTemplate.setAttribute(key, attributes[key] || ''));\n }\n\n return currentTemplate;\n};"; export default _default;