UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

21 lines (20 loc) • 838 B
import type { Vector } from '../../utils/vector.js'; import type { Bounds } from '../../utils/bounds.js'; /** Search a list of elements around a position within bounds */ export declare function getClosestElement(elements: HTMLElement[], position: Vector, options: { cacheClientRectangles?: number; searchBounds?: Bounds; }): HTMLElement | undefined; export interface SuspensionObserver { on: (event: string, callback: (detail?: any) => void) => () => void; suspend: (node: HTMLElement) => void; } export declare function getSuspensionObserver(): SuspensionObserver; /** filters out non valid attributes */ export declare function propsToAttributes(props: { [key: string]: any; }): { [key: string]: any; }; /** tests if passed name is a void tag */ export declare function isVoidElementTag(name: string): boolean;