import { NS, children, elements, first, isElement, type XmlElement } from '../xml/index.js'; import type { AttributeReader } from './types.js'; export { children, elements, first, isElement, NS }; export type { XmlElement }; /** Reads an attribute by local name regardless of its prefix (`r:dm` and `dm` are the same here). */ export declare function attributeReader(element: XmlElement | null | undefined): AttributeReader; /** A trimmed, non-empty attribute value. */ export declare function stringAttribute(element: XmlElement | null | undefined, name: string): string | undefined; /** An integer attribute (base 10); `undefined` when absent or not a number. */ export declare function integerAttribute(element: XmlElement | null | undefined, name: string): number | undefined; /** `1`, `true` -> true; `0`, `false` -> false; otherwise `undefined`. */ export declare function booleanAttribute(element: XmlElement | null | undefined, name: string): boolean | undefined; /** All descendant elements with a local name, in document order, in any namespace. */ export declare function descendants(root: XmlElement, local: string): XmlElement[]; //# sourceMappingURL=dom.d.ts.map