import React, { ReactNode } from 'react'; export declare function getParent(el: HTMLElement | null | Element, target?: string | HTMLElement): Element | null; export declare function wrapSpan(children: ReactNode, insertSpace?: boolean): any; export declare function dispatchEvent(form: HTMLFormElement, name: string, detail: any): void; export declare function cssSupport(attr: keyof CSSStyleDeclaration, value: string): boolean; export declare function copyBoundingClientRect(el: HTMLElement): { top: number; right: number; bottom: number; left: number; width: number; height: number; x: number; y: number; } | null; export declare function getCursorOffset(length: number): any; declare function end(element: T): void; declare function select(element: HTMLElement): void; export declare const focusElement: { select: typeof select; end: typeof end; wrapSpan: typeof wrapSpan; copyBoundingClientRect: typeof copyBoundingClientRect; }; export declare const preventPasteFile: (e: React.ClipboardEvent, beforeHandler?: Function | undefined, { noLineBreak, convertBr }?: { noLineBreak?: boolean | undefined; convertBr?: string | Function | undefined; }) => void; export declare const parsePxToNumber: (str: string) => number; interface ResizeOption { direction?: 'x' | 'y' | boolean; timer?: number; } export declare const addResizeObserver: (el: HTMLElement, handler: any, options?: ResizeOption) => () => void; export {};