import { HtmlEscapedString } from "../utils/html.js"; import { ErrorBoundary, ErrorHandler, FallbackRender } from "./components.js"; import { JSX } from "./intrinsic-elements.js"; import { RefObject, createRef, forwardRef, startTransition, startViewTransition, use, useCallback, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition } from "./hooks/index.js"; import { AnimationEvent, CSSProperties, ClipboardEvent, ComponentClass, DragEvent, Event, FocusEvent, InputEvent, KeyboardEvent, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, TouchEvent, TransitionEvent, WheelEvent } from "./types.js"; import { Children } from "./children.js"; import { useActionState, useOptimistic } from "./dom/hooks/index.js"; import { Suspense } from "./streaming.js"; import { Context, createContext, useContext } from "./context.js"; import { Child, DOMAttributes, FC, Fragment, JSX as JSX$1, JSXNode, Props, cloneElement, isValidElement, jsx, memo, reactAPICompatVersion } from "./base.js"; //#region src/jsx/index.d.ts declare const _default: { version: string; memo: (component: FC, propsAreEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean) => FC; Fragment: ({ children }: { key?: string; children?: Child | HtmlEscapedString; }) => HtmlEscapedString; StrictMode: ({ children }: { key?: string; children?: Child | HtmlEscapedString; }) => HtmlEscapedString; isValidElement: (element: unknown) => element is JSXNode; createElement: (tag: string | Function, props: Props | null, ...children: Child[]) => JSXNode; cloneElement: (element: T, props: Partial, ...children: Child[]) => T; ErrorBoundary: FC>; createContext: (defaultValue: T) => Context; useContext: (context: Context) => T; useState: { (initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void]; (): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void]; }; useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; useRef: typeof useRef; useCallback: (callback: T, deps: readonly unknown[]) => T; useReducer: (reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void]; useId: () => string; useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void; use: (promise: Promise) => T; startTransition: (callback: () => void) => void; useTransition: () => [boolean, (callback: () => void | Promise) => void]; useDeferredValue: (value: T, initialValue?: T) => T; startViewTransition: (callback: () => void) => void; useViewTransition: () => [boolean, (callback: () => void) => void]; useMemo: (factory: () => T, deps: readonly unknown[]) => T; useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; createRef: () => RefObject; forwardRef: (Component: (props: P, ref?: RefObject) => JSX$1.Element) => ((props: P & { ref?: RefObject; }) => JSX$1.Element); useImperativeHandle: (ref: RefObject, createHandle: () => T, deps: readonly unknown[]) => void; useSyncExternalStore: (subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T; useActionState: (fn: Function, initialState: T, permalink?: string) => [T, Function]; useOptimistic: (state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void]; Suspense: FC>; Children: { map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[]; forEach: (children: Child[], fn: (child: Child, index: number) => void) => void; count: (children: Child[]) => number; only: (_children: Child[]) => Child; toArray: (children: Child) => Child[]; }; }; //#endregion export { type AnimationEvent, type CSSProperties, type Child, Children, type ClipboardEvent, type ComponentClass, type Context, type DOMAttributes, type DragEvent, ErrorBoundary, type Event, type FC, type FocusEvent, Fragment, Fragment as StrictMode, type InputEvent, type JSX, type JSXNode, type KeyboardEvent, type MouseEvent, type PointerEvent, type PropsWithChildren, type ReactElement, type ReactNode, type RefObject, Suspense, type TouchEvent, type TransitionEvent, type WheelEvent, cloneElement, createContext, jsx as createElement, jsx, createRef, _default as default, forwardRef, isValidElement, memo, startTransition, startViewTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition, reactAPICompatVersion as version }; export {};