import { State, hook, Hook, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from 'haunted'; import { createContext, useDomContext, useHost, useComponent, useDomContextState } from './stencil-context'; export { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, State, hook, Hook }; export { createContext, useDomContext, useHost, useComponent, useDomContextState }; /** * Set up a Stencil component's internal state so that it can use hooks. * * This will re-render the component when hook state changes. * * This is still compatible with external state. * * @param component */ export declare function withHooks(component: any): void;