Files
wdi-dashboard/node_modules/@chakra-ui/dom-utils/dist/dom.d.ts
2024-08-16 15:06:52 +05:30

11 lines
648 B
TypeScript

declare function isElement(el: any): el is Element;
declare function isHTMLElement(el: any): el is HTMLElement;
declare function getOwnerWindow(node?: Element | null): typeof globalThis;
declare function getOwnerDocument(node?: Element | null): Document;
declare function getEventWindow(event: Event): Window & typeof globalThis;
declare function isBrowser(): boolean;
declare function getActiveElement(node?: HTMLElement): HTMLElement;
declare function contains(parent: HTMLElement | null, child: HTMLElement): boolean;
export { contains, getActiveElement, getEventWindow, getOwnerDocument, getOwnerWindow, isBrowser, isElement, isHTMLElement };