import { Container, HostContext, Instance, Props, TextInstance } from './types'; export declare const scheduleTimeout: typeof setTimeout; export declare const cancelTimeout: typeof clearTimeout; export declare const noTimeout = -1; export declare const isPrimaryRenderer = false; export declare const now: () => number; export declare function getRootHostContext(_rootContainerInstance: Container): {}; export declare function getChildHostContext(_parentHostContext: HostContext, _type: string, _rootContainerInstance: Container): HostContext; export declare function getPublicInstance(instance: Instance): Instance; export declare function shouldSetTextContent(_type: string, _props: Props): boolean; export declare function createInstance(type: string, props: Props, _rootContainerInstance: Container, _hostContext: HostContext, _internalInstanceHandle: Record): Instance; export declare function createTextInstance(text: string, _rootContainerInstance: Container, _hostContext: HostContext, _internalInstanceHandle: Record): TextInstance; /** * 将刚刚生成的节点挂载到上一层节点 * * @param parentInstance 父节点(上一层节点) * @param child */ export declare function appendInitialChild(parentInstance: Instance, child: Instance | TextInstance): void; /** * 决定当前节点在commit阶段是否无法完成某些功能,需要在确定节点已经挂载上之后,才能去完成这个功能。比如 DOM 中的 autoFocus * * @param _testElement * @param _type * @param _props * @param _rootContainerInstance * @param _hostContext */ export declare function finalizeInitialChildren(_testElement: Instance, _type: string, _props: Props, _rootContainerInstance: Container, _hostContext: HostContext): boolean; /** * 将生成的节点插入根节点 * * @param parentInstance 父节点 * @param child 子节点 */ export declare function appendChildToContainer(container: Container, child: Instance | TextInstance): void; export declare function prepareUpdate(_testElement: Instance, _type: string, _oldProps: Props, _newProps: Props, _rootContainerInstance: Container, _hostContext: Record): null | {}; export declare function prepareForCommit(_containerInfo: Container): void; /** * 将真实的节点挂载后触发 * * @param container 容器 */ export declare function resetAfterCommit(_container: Container): void; export declare function shouldDeprioritizeSubtree(_type: string, _props: Props): boolean; export declare function scheduleDeferredCallback(..._args: any[]): void; export declare function cancelDeferredCallback(..._args: any[]): void; export declare const supportsMutation = true;