/** * Checks if the given element is editable. * Returns `true` for text-based input types, textareas, and contenteditable elements. */ export declare const is_editable: (el: any) => boolean; /** * Returns `true` if the element is within a `contenteditable` ancestor. */ export declare const inside_editable: (el: Element) => boolean; /** * Checks if the element is interactive (clickable, focusable, or otherwise accepts user input). * Returns `true` for buttons, links, form controls, * and elements with interactive attributes and ARIA roles. */ export declare const is_interactive: (el: any) => boolean; /** * Stops an event from bubbling and doing default behavior. * @param immediate - defaults to `true` to use `stopImmediatePropagation` over `stopPropagation` * @param preventDefault - defaults to `true` * @mutates event - calls `preventDefault()`, `stopPropagation()`, or `stopImmediatePropagation()` */ export declare const swallow: >(event: T, immediate?: boolean, preventDefault?: boolean) => T; /** * Handles the value of an event's target and invokes a callback. * Defaults to swallowing the event to prevent default actions and propagation. * @mutates event - calls `swallow()` which mutates the event if `swallow_event` is true */ export declare const handle_target_value: (cb: (value: any, event: any) => void, swallow_event?: boolean) => (e: any) => void; /** * Returns a boolean indicating if the current browser window, if any, is iframed inside of another. */ export declare const is_iframed: () => boolean; //# sourceMappingURL=dom.d.ts.map