import { ComponentClass, RefObject, NonNullableRefObject, Ref } from './types'; export declare function isRef(o: any): o is RefObject; export declare function createRef(): RefObject; export declare function createRef(defaultValue: T): NonNullableRefObject; /** * We must mount ref after all operations completed, because when we patch children, * one child will be mounted before being removed. e.g. * patchTest( * h('div', null, [h('div'), h('div', {ref})]), * h('div', null, [h('div', {ref})]), * ); */ export declare function mountRef(ref: Ref | Ref | Ref | null | undefined, value: any, mountedQueue: Function[] & { i?: number; }): void; export declare function unmountRef(ref?: Ref | Ref | Ref | null): void;