/*! * @thednp/shorty ESM v2.0.14 (https://github.com/thednp/shorty) * Copyright 2026 © thednp * Licensed under MIT (https://github.com/thednp/shorty/blob/master/LICENSE) */ //#region package.json.d.ts declare let version: string; //#endregion //#region src/strings/ariaChecked.d.ts /** * A global namespace for aria-checked. */ declare const ariaChecked = "aria-checked"; //#endregion //#region src/strings/ariaDescription.d.ts /** * A global namespace for aria-description. */ declare const ariaDescription = "aria-description"; //#endregion //#region src/strings/ariaDescribedBy.d.ts /** * A global namespace for aria-describedby. */ declare const ariaDescribedBy = "aria-describedby"; //#endregion //#region src/strings/ariaExpanded.d.ts /** * A global namespace for aria-expanded. */ declare const ariaExpanded = "aria-expanded"; //#endregion //#region src/strings/ariaHasPopup.d.ts /** * A global namespace for aria-haspopup. */ declare const ariaHasPopup = "aria-haspopup"; //#endregion //#region src/strings/ariaHidden.d.ts /** * A global namespace for aria-hidden. */ declare const ariaHidden = "aria-hidden"; //#endregion //#region src/strings/ariaLabel.d.ts /** * A global namespace for aria-label. */ declare const ariaLabel = "aria-label"; //#endregion //#region src/strings/ariaLabelledBy.d.ts /** * A global namespace for aria-labelledby. */ declare const ariaLabelledBy = "aria-labelledby"; //#endregion //#region src/strings/ariaModal.d.ts /** * A global namespace for aria-modal. */ declare const ariaModal = "aria-modal"; //#endregion //#region src/strings/ariaPressed.d.ts /** * A global namespace for aria-pressed. */ declare const ariaPressed = "aria-pressed"; //#endregion //#region src/strings/ariaSelected.d.ts /** * A global namespace for aria-selected. */ declare const ariaSelected = "aria-selected"; //#endregion //#region src/strings/ariaValueMin.d.ts /** * A global namespace for aria-valuemin. */ declare const ariaValueMin = "aria-valuemin"; //#endregion //#region src/strings/ariaValueMax.d.ts /** * A global namespace for aria-valuemax. */ declare const ariaValueMax = "aria-valuemax"; //#endregion //#region src/strings/ariaValueNow.d.ts /** * A global namespace for aria-valuenow. */ declare const ariaValueNow = "aria-valuenow"; //#endregion //#region src/strings/ariaValueText.d.ts /** * A global namespace for aria-valuetext. */ declare const ariaValueText = "aria-valuetext"; //#endregion //#region src/strings/nativeEvents.d.ts /** * A global namespace for all browser native events. */ declare const nativeEvents: { DOMContentLoaded: string; DOMMouseScroll: string; abort: string; beforeunload: string; blur: string; change: string; click: string; contextmenu: string; dblclick: string; error: string; focus: string; focusin: string; focusout: string; gesturechange: string; gestureend: string; gesturestart: string; hover: string; keydown: string; keypress: string; keyup: string; load: string; mousedown: string; mousemove: string; mousein: string; mouseout: string; mouseenter: string; mouseleave: string; mouseover: string; mouseup: string; mousewheel: string; move: string; orientationchange: string; pointercancel: string; pointerdown: string; pointerleave: string; pointermove: string; pointerup: string; readystatechange: string; reset: string; resize: string; scroll: string; select: string; selectend: string; selectstart: string; submit: string; touchcancel: string; touchend: string; touchmove: string; touchstart: string; unload: string; }; //#endregion //#region src/strings/abortEvent.d.ts /** * A global namespace for `abort` event. */ declare const abortEvent = "abort"; //#endregion //#region src/strings/blurEvent.d.ts /** * A global namespace for `blur` event. */ declare const blurEvent = "blur"; //#endregion //#region src/strings/moveEvent.d.ts /** * A global namespace for `move` event. */ declare const moveEvent = "move"; //#endregion //#region src/strings/changeEvent.d.ts /** * A global namespace for `change` event. */ declare const changeEvent = "change"; //#endregion //#region src/strings/dragEvent.d.ts /** * A global namespace for `drag` event. */ declare const dragEvent = "drag"; //#endregion //#region src/strings/dragstartEvent.d.ts /** * A global namespace for `dragstart` event. */ declare const dragstartEvent = "dragstart"; //#endregion //#region src/strings/dragenterEvent.d.ts /** * A global namespace for `dragenter` event. */ declare const dragenterEvent = "dragenter"; //#endregion //#region src/strings/dragleaveEvent.d.ts /** * A global namespace for `dragleave` event. */ declare const dragleaveEvent = "dragleave"; //#endregion //#region src/strings/dragoverEvent.d.ts /** * A global namespace for `dragover` event. */ declare const dragoverEvent = "dragover"; //#endregion //#region src/strings/dragendEvent.d.ts /** * A global namespace for `dragend` event. */ declare const dragendEvent = "dragend"; //#endregion //#region src/strings/errorEvent.d.ts /** * A global namespace for `error` event. */ declare const errorEvent = "error"; //#endregion //#region src/strings/resetEvent.d.ts /** * A global namespace for `reset` event. */ declare const resetEvent = "reset"; //#endregion //#region src/strings/resizeEvent.d.ts /** * A global namespace for `resize` event. */ declare const resizeEvent = "resize"; //#endregion //#region src/strings/scrollEvent.d.ts /** * A global namespace for `scroll` event. */ declare const scrollEvent = "scroll"; //#endregion //#region src/strings/submitEvent.d.ts /** * A global namespace for `submit` event. */ declare const submitEvent = "submit"; //#endregion //#region src/strings/loadEvent.d.ts /** * A global namespace for `load` event. */ declare const loadEvent = "load"; //#endregion //#region src/strings/loadstartEvent.d.ts /** * A global namespace for `loadstart` event. */ declare const loadstartEvent = "loadstart"; //#endregion //#region src/strings/unloadEvent.d.ts /** * A global namespace for `unload` event. */ declare const unloadEvent = "unload"; //#endregion //#region src/strings/readystatechangeEvent.d.ts /** * A global namespace for `readystatechange` event. */ declare const readystatechangeEvent = "readystatechange"; //#endregion //#region src/strings/beforeunloadEvent.d.ts /** * A global namespace for `beforeunload` event. */ declare const beforeunloadEvent = "beforeunload"; //#endregion //#region src/strings/orientationchangeEvent.d.ts /** * A global namespace for `orientationchange` event. */ declare const orientationchangeEvent = "orientationchange"; //#endregion //#region src/strings/contextmenuEvent.d.ts /** * A global namespace for `contextmenu` event. */ declare const contextmenuEvent = "contextmenu"; //#endregion //#region src/strings/DOMContentLoadedEvent.d.ts /** * A global namespace for `DOMContentLoaded` event. */ declare const DOMContentLoadedEvent = "DOMContentLoaded"; //#endregion //#region src/strings/DOMMouseScrollEvent.d.ts /** * A global namespace for `DOMMouseScroll` event. */ declare const DOMMouseScrollEvent = "DOMMouseScroll"; //#endregion //#region src/strings/selectEvent.d.ts /** * A global namespace for `select` event. */ declare const selectEvent = "select"; //#endregion //#region src/strings/selectendEvent.d.ts /** * A global namespace for the `selectend` event. */ declare const selectendEvent = "selectend"; //#endregion //#region src/strings/selectstartEvent.d.ts /** * A global namespace for the `selectstart` event. */ declare const selectstartEvent = "selectstart"; //#endregion //#region src/strings/mouseSwipeEvents.d.ts /** * A global namespace for mouse events equivalent to touch events. */ declare const mouseSwipeEvents: { start: string; end: string; move: string; cancel: string; }; //#endregion //#region src/strings/mouseClickEvents.d.ts /** * A global namespace for mouse click events. */ declare const mouseClickEvents: { down: string; up: string; }; //#endregion //#region src/strings/mouseclickEvent.d.ts /** * A global namespace for `click` event. */ declare const mouseclickEvent = "click"; //#endregion //#region src/strings/mousedblclickEvent.d.ts /** * A global namespace for `dblclick` event. */ declare const mousedblclickEvent = "dblclick"; //#endregion //#region src/strings/mousedownEvent.d.ts /** * A global namespace for `mousedown` event. */ declare const mousedownEvent = "mousedown"; //#endregion //#region src/strings/mouseupEvent.d.ts /** * A global namespace for `mouseup` event. */ declare const mouseupEvent = "mouseup"; //#endregion //#region src/strings/mousehoverEvent.d.ts /** * A global namespace for `hover` event. */ declare const mousehoverEvent = "hover"; //#endregion //#region src/strings/mouseHoverEvents.d.ts /** * A global namespace for mouse hover events. */ declare const mouseHoverEvents: string[]; //#endregion //#region src/strings/mouseenterEvent.d.ts /** * A global namespace for `mouseenter` event. */ declare const mouseenterEvent = "mouseenter"; //#endregion //#region src/strings/mouseleaveEvent.d.ts /** * A global namespace for `mouseleave` event. */ declare const mouseleaveEvent = "mouseleave"; //#endregion //#region src/strings/mouseinEvent.d.ts /** * A global namespace for `mousein` event. */ declare const mouseinEvent = "mousein"; //#endregion //#region src/strings/mouseoutEvent.d.ts /** * A global namespace for `mouseout` event. */ declare const mouseoutEvent = "mouseout"; //#endregion //#region src/strings/mouseoverEvent.d.ts /** * A global namespace for `mouseover` event. */ declare const mouseoverEvent = "mouseover"; //#endregion //#region src/strings/mousemoveEvent.d.ts /** * A global namespace for `mousemove` event. */ declare const mousemoveEvent = "mousemove"; //#endregion //#region src/strings/mousewheelEvent.d.ts /** * A global namespace for `mousewheel` event. */ declare const mousewheelEvent = "mousewheel"; //#endregion //#region src/strings/touchEvents.d.ts /** * A global namespace for touch events. */ declare const touchEvents: { start: string; end: string; move: string; cancel: string; }; //#endregion //#region src/strings/touchstartEvent.d.ts /** * A global namespace for `touchstart` event. */ declare const touchstartEvent = "touchstart"; //#endregion //#region src/strings/touchmoveEvent.d.ts /** * A global namespace for `touchmove` event. */ declare const touchmoveEvent = "touchmove"; //#endregion //#region src/strings/touchcancelEvent.d.ts /** * A global namespace for `touchcancel` event. */ declare const touchcancelEvent = "touchcancel"; //#endregion //#region src/strings/touchendEvent.d.ts /** * A global namespace for `touchend` event. */ declare const touchendEvent = "touchend"; //#endregion //#region src/strings/pointercancelEvent.d.ts /** * A global namespace for `pointercancel` event. */ declare const pointercancelEvent = "pointercancel"; //#endregion //#region src/strings/pointerdownEvent.d.ts /** * A global namespace for `pointerdown` event. */ declare const pointerdownEvent = "pointerdown"; //#endregion //#region src/strings/pointerleaveEvent.d.ts /** * A global namespace for `pointerleave` event. */ declare const pointerleaveEvent = "pointerleave"; //#endregion //#region src/strings/pointermoveEvent.d.ts /** * A global namespace for `pointermove` event. */ declare const pointermoveEvent = "pointermove"; //#endregion //#region src/strings/pointerupEvent.d.ts /** * A global namespace for `pointerup` event. */ declare const pointerupEvent = "pointerup"; //#endregion //#region src/strings/focusEvents.d.ts /** * A global namespace for focus event names. */ declare const focusEvents: { in: string; out: string; }; //#endregion //#region src/strings/focusEvent.d.ts /** * A global namespace for `focus` event. */ declare const focusEvent = "focus"; //#endregion //#region src/strings/focusinEvent.d.ts /** * A global namespace for `focusin` event. */ declare const focusinEvent = "focusin"; //#endregion //#region src/strings/focusoutEvent.d.ts /** * A global namespace for `focusout` event. */ declare const focusoutEvent = "focusout"; //#endregion //#region src/strings/focusableSelector.d.ts declare const focusableSelector = "a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]"; //#endregion //#region src/strings/gesturechangeEvent.d.ts /** * A global namespace for `gesturechange` event. */ declare const gesturechangeEvent = "gesturechange"; //#endregion //#region src/strings/gestureendEvent.d.ts /** * A global namespace for `gestureend` event. */ declare const gestureendEvent = "gestureend"; //#endregion //#region src/strings/gesturestartEvent.d.ts /** * A global namespace for `gesturestart` event. */ declare const gesturestartEvent = "gesturestart"; //#endregion //#region src/strings/keyboardEventKeys.d.ts /** * A global namespace for keyboard event keys. */ declare const keyboardEventKeys: { Backspace: string; Tab: string; Enter: string; Shift: string; Control: string; Alt: string; Pause: string; CapsLock: string; Escape: string; Scape: string; ArrowLeft: string; ArrowUp: string; ArrowRight: string; ArrowDown: string; Insert: string; Delete: string; Meta: string; ContextMenu: string; ScrollLock: string; }; //#endregion //#region src/strings/keydownEvent.d.ts /** * A global namespace for `keydown` event. */ declare const keydownEvent = "keydown"; //#endregion //#region src/strings/keyupEvent.d.ts /** * A global namespace for `keyup` event. */ declare const keyupEvent = "keyup"; //#endregion //#region src/strings/keypressEvent.d.ts /** * A global namespace for `keypress` event. */ declare const keypressEvent = "keypress"; //#endregion //#region src/strings/keyAlt.d.ts /** * A global namespace for `Alt` key. * e.which = 18 */ declare const keyAlt = "Alt"; //#endregion //#region src/strings/keyArrowDown.d.ts /** * A global namespace for `ArrowDown` key. * e.which = 40 equivalent */ declare const keyArrowDown = "ArrowDown"; //#endregion //#region src/strings/keyArrowUp.d.ts /** * A global namespace for `ArrowUp` key. * e.which = 38 equivalent */ declare const keyArrowUp = "ArrowUp"; //#endregion //#region src/strings/keyArrowLeft.d.ts /** * A global namespace for `ArrowLeft` key. * e.which = 37 equivalent */ declare const keyArrowLeft = "ArrowLeft"; //#endregion //#region src/strings/keyArrowRight.d.ts /** * A global namespace for `ArrowRight` key. * e.which = 39 equivalent */ declare const keyArrowRight = "ArrowRight"; //#endregion //#region src/strings/keyBackspace.d.ts /** * A global namespace for `Backspace` key. * e.which === 8 equivalent */ declare const keyBackspace = "Backspace"; //#endregion //#region src/strings/keyCapsLock.d.ts /** * A global namespace for `CapsLock` key. * e.which = 20 equivalent */ declare const keyCapsLock = "CapsLock"; //#endregion //#region src/strings/keyControl.d.ts /** * A global namespace for `Control` key. * e.which = 17 */ declare const keyControl = "Control"; //#endregion //#region src/strings/keyDelete.d.ts /** * A global namespace for `Delete` key. * e.which = 46 equivalent */ declare const keyDelete = "Delete"; //#endregion //#region src/strings/keyEnter.d.ts /** * A global namespace for `Enter` key. * e.which = 13 equivalent */ declare const keyEnter = "Enter"; //#endregion //#region src/strings/keyNumpadEnter.d.ts /** * A global namespace for `Enter` key. * e.which = 13 equivalent */ declare const keyNumpadEnter = "NumpadEnter"; //#endregion //#region src/strings/keyEscape.d.ts /** * A global namespace for `Escape` key. * e.which = 27 equivalent */ declare const keyEscape = "Escape"; //#endregion //#region src/strings/keyInsert.d.ts /** * A global namespace for `Insert` key. * e.which = 45 equivalent */ declare const keyInsert = "Insert"; //#endregion //#region src/strings/keyMeta.d.ts /** * A global namespace for `Meta` key. * e.which = 93 equivalent */ declare const keyMeta = "Meta"; //#endregion //#region src/strings/keyPause.d.ts /** * A global namespace for `Pause` key. * e.which = 19 */ declare const keyPause = "Pause"; //#endregion //#region src/strings/keyScrollLock.d.ts /** * A global namespace for `ScrollLock` key. * e.which = 145 equivalent */ declare const keyScrollLock = "ScrollLock"; //#endregion //#region src/strings/keyShift.d.ts /** * A global namespace for `Shift` key. * e.which = 16 */ declare const keyShift = "Shift"; //#endregion //#region src/strings/keySpace.d.ts /** * A global namespace for `Space` key. * e.which = 32 equivalent */ declare const keySpace = "Space"; //#endregion //#region src/strings/keyTab.d.ts /** * A global namespace for `Tab` key. * e.which = 9 equivalent */ declare const keyTab = "Tab"; //#endregion //#region src/strings/animationDuration.d.ts /** * A global namespace for 'animationDuration' string. */ declare const animationDuration = "animationDuration"; //#endregion //#region src/strings/animationDelay.d.ts /** * A global namespace for 'animationDelay' string. */ declare const animationDelay = "animationDelay"; //#endregion //#region src/strings/animationName.d.ts /** * A global namespace for 'animationName' string. */ declare const animationName = "animationName"; //#endregion //#region src/strings/animationEndEvent.d.ts /** * A global namespace for 'animationend' string. */ declare const animationEndEvent = "animationend"; //#endregion //#region src/strings/transitionDuration.d.ts /** * A global namespace for 'transitionDuration' string. */ declare const transitionDuration = "transitionDuration"; //#endregion //#region src/strings/transitionDelay.d.ts /** * A global namespace for 'transitionDelay' string. */ declare const transitionDelay = "transitionDelay"; //#endregion //#region src/strings/transitionEndEvent.d.ts /** * A global namespace for 'transitionend' string. */ declare const transitionEndEvent = "transitionend"; //#endregion //#region src/strings/transitionProperty.d.ts /** * A global namespace for `transitionProperty` string for modern browsers. */ declare const transitionProperty = "transitionProperty"; //#endregion //#region src/strings/addEventListener.d.ts /** * A global namespace for 'addEventListener' string. */ declare const addEventListener = "addEventListener"; //#endregion //#region src/strings/removeEventListener.d.ts /** * A global namespace for 'removeEventListener' string. */ declare const removeEventListener = "removeEventListener"; //#endregion //#region src/strings/bezierEasings.d.ts /** * A global namespace for predefined * CSS3 'cubic-bezier()' easing functions. */ declare const bezierEasings: { linear: string; easingSinusoidalIn: string; easingSinusoidalOut: string; easingSinusoidalInOut: string; easingQuadraticIn: string; easingQuadraticOut: string; easingQuadraticInOut: string; easingCubicIn: string; easingCubicOut: string; easingCubicInOut: string; easingQuarticIn: string; easingQuarticOut: string; easingQuarticInOut: string; easingQuinticIn: string; easingQuinticOut: string; easingQuinticInOut: string; easingExponentialIn: string; easingExponentialOut: string; easingExponentialInOut: string; easingCircularIn: string; easingCircularOut: string; easingCircularInOut: string; easingBackIn: string; easingBackOut: string; easingBackInOut: string; }; //#endregion //#region src/strings/offsetHeight.d.ts /** * A global namespace for `offsetHeight` property. */ declare const offsetHeight = "offsetHeight"; //#endregion //#region src/strings/offsetWidth.d.ts /** * A global namespace for `offsetWidth` property. */ declare const offsetWidth = "offsetWidth"; //#endregion //#region src/strings/scrollHeight.d.ts /** * A global namespace for `scrollHeight` property. */ declare const scrollHeight = "scrollHeight"; //#endregion //#region src/strings/scrollWidth.d.ts /** * A global namespace for `scrollWidth` property. */ declare const scrollWidth = "scrollWidth"; //#endregion //#region src/strings/tabindex.d.ts /** * A global namespace for `touchcancel` event. */ declare const tabindex = "tabindex"; //#endregion //#region src/interface/navigatorUA.d.ts // https://github.com/lukewarlow/user-agent-data-types/blob/master/index.d.ts declare interface NavigatorUABrand { readonly brand: string; readonly version: string; } declare interface NavigatorUAData { readonly brands: NavigatorUABrand[]; readonly mobile: boolean; readonly platform: string; } declare interface NavigatorUA extends Navigator { readonly userAgentData: NavigatorUAData; } //#endregion //#region src/strings/userAgentData.d.ts /** * A global namespace for `userAgentData` object. */ declare const userAgentData: NavigatorUA["userAgentData"]; //#endregion //#region src/strings/userAgent.d.ts /** * A global namespace for `navigator.userAgent` string. */ declare const userAgent: string; //#endregion //#region src/boolean/isMobile.d.ts /** * An accessor that checks for mobile detection. */ declare const isMobile: () => boolean; //#endregion //#region src/boolean/isApple.d.ts /** * An accessor that checks for Apple browsers. */ declare const isApple: () => boolean; //#endregion //#region src/boolean/isFirefox.d.ts /** * An accessor that checks for Gecko browsers. When writing this file, * Gecko was not supporting `userAgentData`. */ declare const isFirefox: () => boolean; //#endregion //#region src/boolean/isWebKit.d.ts declare const isWebKit: () => boolean; //#endregion //#region src/boolean/support3DTransform.d.ts /** * An accessor that checks for CSS3 3D transform support. */ declare const support3DTransform: () => boolean; //#endregion //#region src/boolean/supportPassive.d.ts /** * An accessor that checks for passive events support, * in general event options are not suited for scroll prevention. * * @see https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection */ declare const supportPassive: () => boolean; //#endregion //#region src/boolean/supportTransform.d.ts /** * An accessor that checks for CSS3 transform support. */ declare const supportTransform: () => boolean; //#endregion //#region src/boolean/supportTouch.d.ts /** * An accessor that checks for touch events support. */ declare const supportTouch: () => boolean; //#endregion //#region src/boolean/supportAnimation.d.ts /** * An accessor that checks for CSS3 animation support. */ declare const supportAnimation: () => boolean; //#endregion //#region src/boolean/supportTransition.d.ts /** * An accessor that checks for CSS3 transition support. */ declare const supportTransition: () => boolean; //#endregion //#region src/attr/getAttribute.d.ts /** * Shortcut for `Element.getAttribute()` method. * * @param element target element * @param att attribute name * @returns attribute value */ declare const getAttribute: (element: Element, att: string) => string | null; //#endregion //#region src/attr/getAttributeNS.d.ts /** * Shortcut for `Element.getAttributeNS()` method. * * @param ns attribute namespace * @param element target element * @param att attribute name * @returns attribute value */ declare const getAttributeNS: (ns: string, element: Element, att: string) => string | null; //#endregion //#region src/attr/hasAttribute.d.ts /** * Shortcut for `Element.hasAttribute()` method. * * @param element target element * @param att attribute name * @returns the query result */ declare const hasAttribute: (element: Element, att: string) => boolean; //#endregion //#region src/attr/hasAttributeNS.d.ts /** * Shortcut for `Element.hasAttributeNS()` method. * * @param ns attribute namespace * @param element target element * @param att attribute name * @returns the query result */ declare const hasAttributeNS: (ns: string, element: Element, att: string) => boolean; //#endregion //#region src/attr/setAttribute.d.ts /** * Shortcut for `Element.setAttribute()` method. * * @param element target element * @param att attribute name * @param value attribute value */ declare const setAttribute: (element: Element, att: string, value: string) => void; //#endregion //#region src/attr/setAttributeNS.d.ts /** * Shortcut for `Element.setAttributeNS()` method. * * @param ns attribute namespace * @param element target element * @param att attribute name * @param value attribute value */ declare const setAttributeNS: (ns: string, element: Element, att: string, value: string) => void; //#endregion //#region src/attr/removeAttribute.d.ts /** * Shortcut for `Element.removeAttribute()` method. * * @param element target element * @param att attribute name */ declare const removeAttribute: (element: Element, att: string) => void; //#endregion //#region src/attr/removeAttributeNS.d.ts /** * Shortcut for `Element.removeAttributeNS()` method. * * @param ns attribute namespace * @param element target element * @param att attribute name */ declare const removeAttributeNS: (ns: string, element: Element, att: string) => void; //#endregion //#region src/class/addClass.d.ts /** * Add one or more CSS classes to `Element.classList`. * * @param element target * @param classNAME to add */ declare const addClass: (element: Element, ...classNAME: string[]) => void; //#endregion //#region src/class/removeClass.d.ts /** * Remove one or more classes from `Element.classList`. * * @param element target * @param classNAME to remove */ declare const removeClass: (element: Element, ...classNAME: string[]) => void; //#endregion //#region src/class/hasClass.d.ts /** * Check class in `Element.classList`. * * @param element target * @param classNAME to check */ declare const hasClass: (element: Element, classNAME: string) => boolean; //#endregion //#region src/event/on.d.ts /** * Add eventListener to an `EventTarget` object. */ declare const on: (element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void; //#endregion //#region src/event/off.d.ts /** * Remove eventListener from an `EventTarget` object. */ declare const off: (element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void; //#endregion //#region src/event/one.d.ts /** * Add an `eventListener` to an `EventTarget` * element and remove it once callback is called. */ declare const one: (element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void; //#endregion //#region src/blocks/documentBody.d.ts /** * A global namespace for `document.body`. */ declare const documentBody: HTMLElement; //#endregion //#region src/blocks/documentElement.d.ts /** * A global namespace for `document.documentElement` or the ``. */ declare const documentElement: HTMLElement; //#endregion //#region src/blocks/documentHead.d.ts /** * A global namespace for `document.head`. */ declare const documentHead: HTMLHeadElement; //#endregion //#region src/misc/ArrayFrom.d.ts /** * Shortie for `Array.from()` static method. * The utility should also work with any typed arrays * like Float64Array or Int32Array. * * @param arr array-like iterable object * @returns a new array from iterable object */ declare const ArrayFrom: (arr: ArrayLike | Iterable) => T[]; //#endregion //#region src/misc/data.d.ts /** * An interface for web components background data. * * @see https://github.com/thednp/bootstrap.native/blob/master/src/components/base-component.js */ declare const Data: { data: Map>; /** * Sets web components data. * * @param element target element * @param component the component's name or a unique key * @param instance the component instance */ set: (element: Element, component: string, instance: T) => void; /** * Returns all instances for specified component. * * @param component the component's name or a unique key * @returns all the component instances */ getAllFor: (component: string) => Map | null; /** * Returns the instance associated with the target. * * @param element target element * @param component the component's name or a unique key * @returns the instance */ get: (element: Element, component: string) => T | null; /** * Removes web components data. * * @param element target element * @param component the component's name or a unique key */ remove: (element: Element, component: string) => void; }; //#endregion //#region src/misc/getInstance.d.ts /** * An alias for `Data.get()`. */ declare const getInstance: (target: Element, component: string) => T | null; //#endregion //#region src/misc/capitalize.d.ts /** * Capitalize first character in a string. * @param input source string */ declare const capitalize: (input: string) => string; //#endregion //#region src/misc/camelCase.d.ts /** * Transform a string to camel case. * @param input source string */ declare const camelCase: (input: string) => string; //#endregion //#region src/misc/createElement.d.ts /** * Shortie for `document.createElement` method * which allows you to create a new `HTMLElement` for a given `tagName` * or based on an object with specific non-readonly attributes with string values: * `id`, `className`, `textContent`, `style`, etc. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement * * @param param `tagName` or object * @return a new `HTMLElement` */ declare const createElement: (param?: string | Partial) => T | undefined; //#endregion //#region src/misc/createElementNS.d.ts /** * Shortie for `document.createElementNS` method * which allows you to create a new `Element` for a given `tagName` * or based on an object with specific non-readonly attributes with string values: * `id`, `className`, `textContent`, `style`, etc. * Note: some elements resulted from this function call may not be compatible with * some attributes. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS * * @param ns `namespaceURI` to associate with the new `Element` * @param param `tagName` or object * @return a new `Element` */ declare const createElementNS: (ns: string, param?: string | Partial) => T | undefined; //#endregion //#region src/misc/dispatchEvent.d.ts /** * Shortcut for the `Element.dispatchEvent(Event)` method. * * @param element is the target * @param event is the `Event` object */ declare const dispatchEvent: (element: EventTarget, event: Event) => boolean; //#endregion //#region src/misc/distinct.d.ts /** * JavaScript `Array` distinct. * * @see https://codeburst.io/javascript-array-distinct-5edc93501dc4 * * @example * ``` * [0,1,1,2].filter(distinct) * // => [0,1,2] * ``` * @param value array item value * @param index array item index * @param arr a clone of the target array * @returns the query result */ declare const distinct: (value: T, index: number, arr: T[]) => boolean; //#endregion //#region src/misc/emulateAnimationEnd.d.ts /** * Utility to make sure callbacks are consistently * called when animation ends. * * @param element target * @param handler `animationend` callback */ declare const emulateAnimationEnd: (element: Element, handler: EventListener) => void; //#endregion //#region src/misc/emulateTransitionEnd.d.ts /** * Utility to make sure callbacks are consistently * called when transition ends. * * @param element element target * @param handler `transitionend` callback */ declare const emulateTransitionEnd: (element: Element, handler: EventListener) => void; //#endregion //#region src/misc/Float32ArrayFrom.d.ts /** * Shortcut for `Float32Array.from()` static method. * * @param arr array-like iterable object * @returns a new Float32Array */ declare const Float32ArrayFrom: (arr: ArrayLike | Iterable) => Float32Array; //#endregion //#region src/misc/Float64ArrayFrom.d.ts /** * Shortcut for `Float64Array.from()` static method. * * @param arr array-like iterable object * @returns a new Float64Array */ declare const Float64ArrayFrom: (arr: ArrayLike | Iterable) => Float64Array; //#endregion //#region src/misc/focus.d.ts /** * Shortie for `HTMLOrSVGElement.focus()` method. * * @param element is the target * @param options allows to pass additional options such as `preventScroll: boolean` */ declare const focus: (element: HTMLOrSVGElement, options?: FocusOptions) => void; //#endregion //#region src/misc/kebabCase.d.ts /** * Transform a string to kebab case. * @param input source string */ declare const kebabCase: (input: string) => string; //#endregion //#region src/misc/noop.d.ts /** A generic function with empty body. */ declare const noop: () => void; //#endregion //#region src/misc/normalizeOptions.d.ts /** * Utility to normalize component options. * * @param element target * @param defaultOps component default options * @param inputOps component instance options * @param ns component namespace * @return normalized component options object */ declare const normalizeOptions: (element: Element, defaultOps: T, inputOps: Partial, ns?: string) => T; //#endregion //#region src/interface/fn.d.ts type Fn = (...args: unknown[]) => unknown; //#endregion //#region src/misc/normalizeValue.d.ts type NormalValue = boolean | number | string | Fn | null; /** * Utility to normalize component options * * @param value the input value * @return the normalized value */ declare const normalizeValue: (value?: unknown) => NormalValue; //#endregion //#region src/misc/ObjectAssign.d.ts /** * Overloads for Object.assign. * * @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/object-assign/index.d.ts */ declare function ObjectAssignTyped(target: T, source: U): T & U; declare function ObjectAssignTyped(target: T, source1: U, source2: V): T & U & V; declare function ObjectAssignTyped(target: T, source1: U, source2: V, source3: W): T & U & V & W; declare function ObjectAssignTyped(target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q; declare function ObjectAssignTyped(target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R; declare function ObjectAssignTyped(target: unknown, ...sources: unknown[]): unknown; /** * Shortcut for `Object.assign()` static method. * * @param obj a target object * @param source source object(s) * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts */ declare const ObjectAssign: typeof ObjectAssignTyped; //#endregion //#region src/misc/ObjectEntries.d.ts /** * Shortcut for `Object.entries()` static method. * * @param obj a target object * @returns the entries of an object in an array format [key, value][] * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts */ declare const ObjectEntries: >(obj: O) => [keyof O, O[keyof O]][]; //#endregion //#region src/misc/ObjectHasOwn.d.ts /** * A shortcut to `Object.hasOwn()` static method to work * with regular `Object` elements. * * @see https://fettblog.eu/typescript-hasownproperty/ * @param obj the target object * @param prop the property to check * @returns the query result */ declare const ObjectHasOwn: (obj: T, prop: K) => obj is T & Record; //#endregion //#region src/misc/ObjectKeys.d.ts /** * Shortcut for `Object.keys()` static method. * * @param obj a target object * @returns an array with object keys * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts */ declare const ObjectKeys: >(obj: O) => (keyof O)[]; //#endregion //#region src/misc/ObjectValues.d.ts /** * Shortcut for `Object.values()` static method. * * @param obj a target object * @returns an array with the object values * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts */ declare const ObjectValues: >(obj: O) => O[keyof O][]; //#endregion //#region src/misc/ObjectFromEntries.d.ts /** * Shortcut for `Object.fromEntries()` static method. * * @param entries a target entries object * @returns a new Object created from the specified entries in array format [key, value][] * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts */ declare const ObjectFromEntries: (entries: [K, V][]) => Record; //#endregion //#region src/interface/originalEvent.d.ts declare interface OriginalEvent extends CustomEvent { readonly type: string; relatedTarget?: EventTarget & HTMLElement; } //#endregion //#region src/misc/createCustomEvent.d.ts /** * Returns a namespaced `CustomEvent` specific to each component. * * @param eventType Event.type * @param config Event.options | Event.properties * @returns a new namespaced event */ declare const createCustomEvent: , T extends OriginalEvent>(eventType: string, config?: O) => T; //#endregion //#region src/misc/passiveHandler.d.ts /** * A global namespace for most scroll event listeners. */ declare const passiveHandler: Partial; //#endregion //#region src/misc/reflow.d.ts /** * Utility to force re-paint of an `HTMLElement` target. * * @param element is the target * @return the `Element.offsetHeight` value */ declare const reflow: (element: HTMLElement) => number; //#endregion //#region src/interface/css4Declaration.d.ts declare interface CSS4Declaration extends Exclude<() => string | symbol, CSSStyleDeclaration> { [key: string]: string; } //#endregion //#region src/misc/setElementStyle.d.ts /** * Shortcut for multiple uses of `HTMLElement.style.propertyName` method. * * @param element target element * @param styles attribute value */ declare const setElementStyle: (element: Element, styles: Partial) => void; //#endregion //#region src/misc/timer.d.ts /** * An interface for one or more `TimerHandler`s per `Element`. * * @see https://github.com/thednp/navbar/ */ declare const Timer: { /** * Sets a new timeout timer for an element, or element -> key association. * * @param element target element * @param callback the callback * @param delay the execution delay * @param key a unique key */ set: (element: Element, callback: TimerHandler, delay: number, key?: string) => void; /** * Returns the timer associated with the target. * * @param element target element * @param key a unique * @returns the timer */ get: (element: Element, key?: string) => number | null; /** * Clears the element's timer. * * @param element target element * @param key a unique key */ clear: (element: Element, key?: string) => void; }; //#endregion //#region src/misc/toLowerCase.d.ts /** * Shortcut for `String.toLowerCase()`. * * @param source input string * @returns lowercase output string */ declare const toLowerCase: (source: string) => string; //#endregion //#region src/misc/toUpperCase.d.ts /** * Shortcut for `String.toUpperCase()`. * * @param source input string * @returns uppercase output string */ declare const toUpperCase: (source: string) => string; //#endregion //#region src/interface/event.d.ts /** * Type definitions addapted from React 18.2 * Project: https://react.dev/ */ type NativeAnimationEvent = AnimationEvent; type NativeClipboardEvent = ClipboardEvent; type NativeCompositionEvent = CompositionEvent; type NativeDragEvent = DragEvent; type NativeFocusEvent = FocusEvent; type NativeKeyboardEvent = KeyboardEvent; type NativeMouseEvent = MouseEvent; type NativeTouchEvent = TouchEvent; type NativePointerEvent = PointerEvent; type NativeTransitionEvent = TransitionEvent; type NativeUIEvent = UIEvent; type NativeWheelEvent = WheelEvent; interface AbstractView { styleMedia: StyleMedia; document: Document; } // // Event System // ---------------------------------------------------------------------- // E = EventObject, C = e.currentTarget, T = e.target interface BaseEvent { nativeEvent: E; currentTarget: C | null; target: T & EventTarget; bubbles: boolean; cancelable: boolean; defaultPrevented: boolean; eventPhase: number; isTrusted: boolean; preventDefault(): void; isDefaultPrevented(): boolean; stopPropagation(): void; isPropagationStopped(): boolean; persist(): void; timeStamp: number; type: string; } /** * currentTarget - a reference to the element on which the event listener is registered. * * target - a reference to the element from which the event was originally dispatched. * This might be a child element to the element on which the event listener is registered. * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682 */ type NativeEvent = BaseEvent; interface ClipboardEvent extends NativeEvent { clipboardData: DataTransfer; } interface CompositionEvent extends NativeEvent { data: string; } interface DragEvent extends MouseEvent { dataTransfer: DataTransfer; } interface PointerEvent extends MouseEvent { pointerId: number; pressure: number; tangentialPressure: number; tiltX: number; tiltY: number; twist: number; width: number; height: number; pointerType: "mouse" | "pen" | "touch"; isPrimary: boolean; } interface FocusEvent extends NativeEvent { relatedTarget: (EventTarget & R) | null; target: EventTarget & T; } type FormControl = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement; type FormEvent = NativeEvent; interface ChangeEvent extends FormEvent { target: EventTarget & T; } type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock"; interface KeyboardEvent extends UIEvent { altKey: boolean; /** @deprecated */ charCode: number; ctrlKey: boolean; code: string; /** * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method. */ getModifierState(key: ModifierKey): boolean; /** * See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values */ key: string; /** @deprecated */ keyCode: number; locale: string; location: number; metaKey: boolean; repeat: boolean; shiftKey: boolean; /** @deprecated */ which: number; } interface MouseEvent extends UIEvent { altKey: boolean; button: number; buttons: number; clientX: number; clientY: number; ctrlKey: boolean; /** * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method. */ getModifierState(key: ModifierKey): boolean; metaKey: boolean; movementX: number; movementY: number; pageX: number; pageY: number; relatedTarget: EventTarget | null; screenX: number; screenY: number; shiftKey: boolean; } interface TouchEvent extends UIEvent { altKey: boolean; changedTouches: TouchList; ctrlKey: boolean; /** * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method. */ getModifierState(key: ModifierKey): boolean; metaKey: boolean; shiftKey: boolean; targetTouches: TouchList; touches: TouchList; } interface UIEvent extends NativeEvent { detail: number; view: AbstractView; } interface WheelEvent extends MouseEvent { deltaMode: number; deltaX: number; deltaY: number; deltaZ: number; } interface AnimationEvent extends NativeEvent { animationName: string; elapsedTime: number; pseudoElement: string; } interface TransitionEvent extends NativeEvent { elapsedTime: number; propertyName: string; pseudoElement: string; } // // Event Handler Types // ---------------------------------------------------------------------- // (this: unknown & EventTarget, event: E): void; type EventHandler> = (event: E) => void; type NativeEventHandler = EventHandler>; type ClipboardEventHandler = EventHandler>; type CompositionEventHandler = EventHandler>; type DragEventHandler = EventHandler>; type FocusEventHandler = EventHandler>; type FormEventHandler = EventHandler>; type ChangeEventHandler = EventHandler>; type KeyboardEventHandler = EventHandler>; type MouseEventHandler = EventHandler>; type TouchEventHandler = EventHandler>; type PointerEventHandler = EventHandler>; type UIEventHandler = EventHandler>; type WheelEventHandler = EventHandler>; type AnimationEventHandler = EventHandler>; type TransitionEventHandler = EventHandler>; type PossibleEventTarget = EventTarget & (Element | Document | Window); //#endregion //#region src/misc/focusTrap.d.ts type FocusableElement = HTMLAnchorElement | HTMLButtonElement | HTMLInputElement | HTMLTextAreaElement | HTMLDataListElement | HTMLDetailsElement | HTMLSelectElement; declare function handleKeyboardNavigation(this: T, event: KeyboardEvent): void; /** * Utility to check if a designated element is affected by focus trap; * @param target */ declare const hasFocusTrap: (target: Element) => boolean; /** * Utility to add focus trap inside a designated target element; * @param target */ declare const addFocusTrap: (target: Element) => void; /** * Utility to remove focus trap inside a designated target element; * @param target */ declare const removeFocusTrap: (target: Element) => void; /** * Utility to toggle focus trap inside a designated target element; * @param target */ declare const toggleFocusTrap: (target: Element) => void; //#endregion //#region src/interface/boundingClientRect.d.ts declare interface BoundingClientRect { width: number; height: number; top: number; left: number; right: number; bottom: number; x: number; y: number; } //#endregion //#region src/get/getBoundingClientRect.d.ts /** * Returns the bounding client rect of a target `Element`. * * @see https://github.com/floating-ui/floating-ui * * @param element event.target * @param includeScale when *true*, the target scale is also computed * @returns the bounding client rect object */ declare const getBoundingClientRect: (element: Element, includeScale?: boolean) => BoundingClientRect; //#endregion //#region src/get/getDocument.d.ts /** * Returns the `document` or the `#document` element. * * @see https://github.com/floating-ui/floating-ui * * @param node the reference node * @returns the parent document of the given node */ declare const getDocument: (node?: Node | Document | Window) => Document; //#endregion //#region src/get/getDocumentBody.d.ts /** * Returns the `document.body` or the `` element. * * @param node the reference node * @returns the parent `` of the specified node */ declare const getDocumentBody: (node?: Node | Document | Window) => HTMLElement; //#endregion //#region src/get/getDocumentElement.d.ts /** * Returns the `document.documentElement` or the `` element. * * @param node the reference node * @returns the parent `` of the node's parent document */ declare const getDocumentElement: (node?: Node | Document | Window) => HTMLElement; //#endregion //#region src/get/getDocumentHead.d.ts /** * Returns the `document.head` or the `` element. * * @param node the reference node * @returns the `` of the node's parent document */ declare const getDocumentHead: (node?: Node | Document | Window) => HTMLHeadElement; //#endregion //#region src/get/getElementAnimationDuration.d.ts /** * Utility to get the computed `animationDuration` * from `Element` in miliseconds. * * @param element target * @return the `animationDuration` value in miliseconds */ declare const getElementAnimationDuration: (element: Element) => number; //#endregion //#region src/get/getElementAnimationDelay.d.ts /** * Utility to get the computed `animationDelay` * from Element in miliseconds. * * @param element target * @return the `animationDelay` value in miliseconds */ declare const getElementAnimationDelay: (element: Element) => number; //#endregion //#region src/get/getElementStyle.d.ts /** * Shortcut for `window.getComputedStyle(element).propertyName` * static method. * * * If `element` parameter is not an `Element`, `getComputedStyle` * throws a `ReferenceError`. * * @param element target `Element` * @param property the css property * @param pseudoElt pseudo-elements * @return the css property value */ declare const getElementStyle: (element: Element, property: string, pseudoElt?: string | null) => string; //#endregion //#region src/get/getElementTransitionDuration.d.ts /** * Utility to get the computed `transitionDuration` * from Element in miliseconds. * * @param element target * @return the `transitionDuration` value in miliseconds */ declare const getElementTransitionDuration: (element: Element) => number; //#endregion //#region src/get/getElementTransitionDelay.d.ts /** * Utility to get the computed `transitionDelay` * from Element in miliseconds. * * @param element target * @return the `transitionDelay` value in miliseconds */ declare const getElementTransitionDelay: (element: Element) => number; //#endregion //#region src/get/getNodeName.d.ts /** * Returns the value of `node.nodeName` for the given node. * @param node target node * @returns the node name */ declare const getNodeName: (node: Node | Window) => string; //#endregion //#region src/get/getNodeScroll.d.ts /** * Returns an `{x, y}` object with the target * `Element` / `Node` scroll position. * * @see https://github.com/floating-ui/floating-ui * * @param element target node / element * @returns the scroll tuple */ declare const getNodeScroll: (element: Element | Window) => { x: number; y: number; }; //#endregion //#region src/get/getOffsetParent.d.ts /** * Returns the `offsetParent` for a given target. * * @see https://github.com/floating-ui/floating-ui * * @param element the target node * @returns the offset parent node */ declare const getOffsetParent: (element: Element) => Element | Window; //#endregion //#region src/get/getParentNode.d.ts /** * Returns the `parentNode` also going through `ShadowRoot`. * * @see https://github.com/floating-ui/floating-ui * * @param node the target node * @returns the apropriate parent node */ declare const getParentNode: (node: Node) => ParentNode; //#endregion //#region src/interface/offsetRect.d.ts declare interface OffsetRect { width: number; height: number; x: number; y: number; } //#endregion //#region src/get/getRectRelativeToOffsetParent.d.ts /** * Returns the rect relative to a given offset parent and its scroll position. * * @see https://github.com/floating-ui/floating-ui * * @param element target * @param offsetParent the container / offset parent * @param scroll the offsetParent scroll position * @returns a DOMRect like object */ declare const getRectRelativeToOffsetParent: (element: Element, offsetParent: Element | Window, scroll: { x: number; y: number; }) => OffsetRect; //#endregion //#region src/get/getUID.d.ts /** * Returns a unique identifier for popover, tooltip, scrollspy. * * @param element target element * @param key optional identifier key * @returns an existing or new unique ID */ declare const getUID: (element: Element, key?: string) => number; //#endregion //#region src/get/getWindow.d.ts /** * Returns the `Window` object of a target node. * * @see https://github.com/floating-ui/floating-ui * * @param node target node * @returns the `Window` object */ declare const getWindow: (node?: Node) => Window; //#endregion //#region src/is/isArray.d.ts /** * Shortie for the `Array.isArray()` static method. * * @param obj array-like iterable object * @returns the query result */ declare const isArray: (obj?: unknown) => obj is unknown[]; //#endregion //#region src/is/isCanvas.d.ts /** * Checks if an element is an `HTMLCanvasElement` or ``. * * @param element the target element * @returns the query result */ declare const isCanvas: (element?: unknown) => element is HTMLCanvasElement; //#endregion //#region src/is/isDocument.d.ts /** * Checks if an object is a `Document`. * * @see https://dom.spec.whatwg.org/#node * * @param obj the target object * @returns the query result */ declare const isDocument: (obj?: unknown) => obj is Document; //#endregion //#region src/interface/customElement.d.ts declare interface CustomElement extends HTMLElement { shadowRoot: ShadowRoot; connectedCallback?: () => void; disconnectedCallback?: () => void; adoptedCallback?: () => void; attributeChangedCallback?: () => void; // [key: PropertyKey]: any; } //#endregion //#region src/is/isCustomElement.d.ts /** * Checks if an object is a `CustomElement`. * * @param element the target object * @returns the query result */ declare const isCustomElement: (element?: unknown) => element is T; //#endregion //#region src/is/isElement.d.ts /** * Checks if an object is an `Element`. * * @param element the target object * @returns the query result */ declare const isElement: (element?: unknown) => element is Element; //#endregion //#region src/is/isElementInScrollRange.d.ts /** * Utility to determine if an `Element` * is partially visible in viewport. * * @param element target * @return the query result */ declare const isElementInScrollRange: (element?: Element) => boolean; //#endregion //#region src/is/isElementInViewport.d.ts /** * Utility to determine if an `Element` * is fully visible in the viewport. * * @param element target * @return the query result */ declare const isElementInViewport: (element?: Element) => boolean; //#endregion //#region src/is/isElementsArray.d.ts /** * Checks if an object is an `Array` in which all items are `Element`. * * @param obj the target object * @returns the query result */ declare const isElementsArray: (obj?: unknown) => obj is Element[]; //#endregion //#region src/is/isFunction.d.ts /** * Checks if an object is a `Function`. * * @param fn the target object * @returns the query result */ declare const isFunction: (fn?: unknown) => fn is Fn; //#endregion //#region src/is/isObject.d.ts /** * Checks if a value is an `Object`. * * @param obj the target object * @returns the query result */ declare const isObject: (obj?: unknown) => obj is object; //#endregion //#region src/is/isHTMLCollection.d.ts /** * Checks if an object is an `HTMLCollection`. * * @param obj the target object * @returns the query result */ declare const isHTMLCollection: (obj?: unknown) => obj is HTMLCollection; //#endregion //#region src/is/isHTMLElement.d.ts /** * Checks if an element is an `HTMLElement`. * * @see https://dom.spec.whatwg.org/#node * * @param element the target object * @returns the query result */ declare const isHTMLElement: (element?: unknown) => element is HTMLElement; //#endregion //#region src/is/isHTMLImageElement.d.ts /** * Check if a target element is an ``. * * @param element the target element * @returns the query result */ declare const isHTMLImageElement: (element?: unknown) => element is HTMLImageElement; //#endregion //#region src/is/isJSON.d.ts /** * Checks if a string is a `JSON` string. * * @param str the target string * @returns the query result */ declare const isJSON: (str?: string) => boolean; //#endregion //#region src/is/isMap.d.ts /** * Checks if an element is a `Map`. * * @param obj the target object * @returns the query result */ declare const isMap: (obj?: unknown) => obj is Map; //#endregion //#region src/is/isWeakMap.d.ts /** * Checks if an element is a `WeakMap`. * * @param obj the target object * @returns the query result */ declare const isWeakMap: (obj?: unknown) => obj is WeakMap; //#endregion //#region src/is/isMedia.d.ts /** * Checks if an element is an `` (or any type of SVG element), * ``, `