UNPKG

@es-react/react

Version:

Hippy react framework

16 lines (15 loc) 1.18 kB
import { Fiber } from '@hippy/react-reconciler'; import { findNodeById } from '../utils/node'; import Element from '../dom/element-node'; import { HippyTypes } from '../types'; declare const createNode: any, updateNode: any, deleteNode: any, flushBatch: any, endBatch: any, sendRenderError: any; declare const getNodeById: typeof findNodeById; declare function getElementFromFiberRef(ref: Fiber | Element): any; declare function getNodeIdByRef(ref: string | Fiber | Element): number; declare function callUIFunction(ref: Element | Fiber, funcName: string, ...options: any[]): void; declare function measureInWindow(ref: Fiber, callback?: (layout: HippyTypes.LayoutEvent | string) => void): Promise<unknown>; declare function measureInAppWindow(ref: Fiber, callback?: (layout: HippyTypes.LayoutEvent | string) => void): Promise<unknown>; declare function getBoundingClientRect(ref: Fiber, options: { relToContainer?: boolean; }): Promise<HippyTypes.DOMRect>; export { createNode, updateNode, deleteNode, flushBatch, endBatch, sendRenderError, getNodeById, getNodeIdByRef, getElementFromFiberRef, callUIFunction, getBoundingClientRect, measureInWindow, measureInAppWindow, };