import type { ComponentPublicInstanceConstructor } from 'vue/types/v3-component-public-instance'; import type { Kotti } from './types'; /** * Takes a Vue Component and assigns a meta object which * describes various properties of the component */ export declare const attachMeta: (component: C, meta: Kotti.Meta, other?: T) => C & { meta: Kotti.Meta & T; }; /** * Checks if the given HTML element, or any of its children, is in focus * @param element The HTML element */ export declare const isInFocus: (element: HTMLElement | null) => boolean; /** * Triggers blur() on the given HTML element if it, or any of its children, is in focus * @param element The HTML element */ export declare const blurElement: (element: HTMLElement | null) => void; /** * Checks if the given HTML element or Vue component is/contains the specified event target * @param component The HTML element or Vue component * @param eventTarget The target of the event being checked * * This function doesn't work if the event target is (inside) an SVG Element * {@link https://web.archive.org/web/20231208174614/https://gomakethings.com/detecting-click-events-on-svgs-with-vanilla-js-event-delegation/} */ export declare const isOrContainsEventTarget: (component: HTMLElement | { $el: HTMLElement; } | null, eventTarget: EventTarget | null) => boolean; /** * Takes a Vue Component and assigns an install function to it * this makes sure that it can be used with Vue.use(component) */ export declare const makeInstallable: (component: C) => C & { install: Vue.PluginFunction>; }; export declare const isNumberInRange: ({ maximum, minimum, value, }: { maximum: number | null; minimum: number | null; value: number | null; }) => boolean; /** * RegExp character set for use within other regular expressions */ export declare const DECIMAL_SEPARATORS_CHARACTER_SET: string;