import type { Box } from "../types.js"; type ElementGetter = () => HTMLElement | null; export declare class DOMContext { readonly element: Box; readonly root: Document | ShadowRoot; constructor(element: Box | ElementGetter); getDocument: () => Document; getWindow: () => Window & typeof globalThis; getActiveElement: () => HTMLElement | null; isActiveElement: (node: HTMLElement | null) => boolean; getElementById(id: string): T | null; querySelector: (selector: string) => Element | null; querySelectorAll: (selector: string) => NodeListOf; setTimeout: (callback: () => void, delay: number) => number; clearTimeout: (timeoutId: number) => void; } export {};