export declare function createEl(tag: K, className?: string, parent?: Node): HTMLElementTagNameMap[K]; export declare const SVG_NS = "http://www.w3.org/2000/svg"; export declare function createSvgEl(tag: K, parent?: Node): SVGElementTagNameMap[K]; /** * Geographic / camera transforms — keep sub-pixel precision so tiles, markers, * and overlays stay glued during fractional zoom. Do not round here. */ export declare function setTransform(el: HTMLElement | SVGElement, x: number, y: number, scale?: number): void; export declare function empty(el: Element): void; export declare function listen(target: EventTarget, type: K, handler: (event: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void; export declare function listen(target: EventTarget, type: string, handler: EventListener, options?: boolean | AddEventListenerOptions): () => void; export interface TapListenerOptions { tolerance?: number; button?: number; } /** * Listens for an activation without relying solely on the browser's synthetic * `click`. Pointer gestures that move beyond the tolerance are ignored, while * keyboard/programmatic clicks remain supported. The handler runs once even * when a normal pointer tap produces both `pointerup` and `click`. */ export declare function listenTap(target: EventTarget, handler: (event: MouseEvent | PointerEvent) => void, options?: TapListenerOptions): () => void; export declare function rafThrottle(fn: (...args: TArgs) => void): (...args: TArgs) => void; export declare function getContainer(container: string | HTMLElement): HTMLElement; //# sourceMappingURL=dom.d.ts.map