export type InferDOMType = T extends CSSStyleDeclaration ? Partial : T extends infer R ? R : any; /** * Create a DOM Element with any optional attributes or properties. * It will only accept valid DOM element properties that `createElement` would accept. * For example: `createDomElement('div', { className: 'my-css-class' })`, * for style or dataset you need to use nested object `{ style: { display: 'none' }} * The last argument is to optionally append the created element to a parent container element. * @param {String} tagName - html tag * @param {Object} options - element properties * @param {[HTMLElement]} appendToParent - parent element to append to */ export declare function createDomElement(tagName: T, elementOptions?: { [P in K]: InferDOMType; }, appendToParent?: HTMLElement): HTMLElementTagNameMap[T]; //# sourceMappingURL=domUtils.d.ts.map