export * from "preact/hooks"; declare namespace _default { export { useState }; export { useReducer }; export { useEffect }; export { useLayoutEffect }; export { useRef }; export { useImperativeHandle }; export { useMemo }; export { useCallback }; export { useContext }; export { useDebugValue }; export { version }; export { Children }; export { render }; export { render as hydrate }; export { unmountComponentAtNode }; export { createPortal }; export { createElement }; export { createContext }; export { createFactory }; export { cloneElement }; export { createRef }; export { Fragment }; export { isValidElement }; export { findDOMNode }; export { Component }; export { PureComponent }; export { memo }; export { forwardRef }; export { unstable_batchedUpdates }; export { Suspense }; export { SuspenseList }; export { lazy }; } export default _default; export const version: "16.8.0"; import { Children } from './Children'; import { render } from './render'; import { hydrate } from './render'; /** * Remove a component tree from the DOM, including state and event handlers. * @param {import('./internal').PreactElement} container * @returns {boolean} */ export function unmountComponentAtNode(container: import('./internal').PreactElement): boolean; import { createPortal } from './portals'; import { createElement } from 'preact'; import { createContext } from 'preact'; /** * Legacy version of createElement. * @param {import('./internal').VNode["type"]} type The node name or Component constructor */ export function createFactory(type: import('./internal').VNode["type"]): (props: import("preact").Attributes | null, ...children: import("preact").ComponentChildren[]) => import("preact").VNode; /** * Wrap `cloneElement` to abort if the passed element is not a valid element and apply * all vnode normalizations. * @param {import('./internal').VNode} element The vnode to clone * @param {object} props Props to add when cloning * @param {Array} rest Optional component children */ export function cloneElement(element: import('./internal').VNode, ...args: any[]): import("./internal").VNode | import("preact").VNode; import { createRef } from 'preact'; import { Fragment } from 'preact'; /** * Check if the passed element is a valid (p)react node. * @param {*} element The element to check * @returns {boolean} */ export function isValidElement(element: any): boolean; /** * Get the matching DOM node for a component * @param {import('./internal').Component} component * @returns {import('./internal').PreactElement | null} */ export function findDOMNode(component: import('./internal').Component): import('./internal').PreactElement | null; import { Component } from 'preact'; import { PureComponent } from './PureComponent'; import { memo } from './memo'; import { forwardRef } from './forwardRef'; /** * Deprecated way to control batched rendering inside the reconciler, but we * already schedule in batches inside our rendering code * @template Arg * @param {(arg: Arg) => void} callback function that triggers the updated * @param {Arg} [arg] Optional argument that can be passed to the callback */ export function unstable_batchedUpdates(callback: (arg: Arg) => void, arg?: Arg | undefined): void; import { Suspense } from './suspense'; import { SuspenseList } from './suspense-list'; import { lazy } from './suspense'; import { useState } from 'preact/hooks'; import { useReducer } from 'preact/hooks'; import { useEffect } from 'preact/hooks'; import { useLayoutEffect } from 'preact/hooks'; import { useRef } from 'preact/hooks'; import { useImperativeHandle } from 'preact/hooks'; import { useMemo } from 'preact/hooks'; import { useCallback } from 'preact/hooks'; import { useContext } from 'preact/hooks'; import { useDebugValue } from 'preact/hooks'; export { Children, render, hydrate, createPortal, createElement, createContext, createRef, Fragment, Component, PureComponent, memo, forwardRef, Suspense, SuspenseList, lazy };