export interface DomAttrs { tagName: T; container?: HTMLElement; node?: HTMLElement | string; } /** * Creates a new DOM element based on the provided attributes. * @param domAttrs Optional attributes for the new element. * @returns The newly created element. * * @example * const myDiv = createDom({ * tagName: 'div', * node: 'Hello, world!', * container: document.body * }) * console.log(myDiv.textContent) * * @since 1.0.0 * */ declare const createDom: (domAttrs?: DomAttrs) => HTMLElementTagNameMap[K]; export default createDom;