import { Widget, BarChartOptions, Command, DiffViewOptions, JSONViewOptions, ToolCallOptions, TreeNode, BarGroup, ChatMessageOptions, CommandPaletteOptions, DiffLine, ProgressItem, MultiProgressOptions, StreamingTextOptions } from '@termuijs/widgets'; export { BarChartOptions, BarGroup, DiffLine, ToolCallStatus, TreeNode } from '@termuijs/widgets'; import { Style, Color } from '@termuijs/core'; export { batch } from '@termuijs/store'; export { AsyncState, KeyBinding, MotionPreferences, useAsync, useKeymap, useMotion } from '@termuijs/jsx'; export { Notification, useNotifications } from '@termuijs/ui'; export { useTheme } from '@termuijs/tss'; export { CpuMetrics, DiskMetrics, MemoryMetrics, NetworkMetrics, SystemInfo, useCpu, useDisk, useHttpHealth, useMemory, useNetwork, useSystemInfo, useTopProcesses } from '@termuijs/data'; /** * A reactive value — either a static value or a function that returns one. * Functions are re-evaluated on each refresh tick. */ type Reactive = T | (() => T); /** * Resolve a reactive value — calls the function if it is one, * otherwise returns the static value. */ declare function resolve(value: Reactive): T; /** * Check if a value is a reactive function. */ declare function isReactive(value: Reactive): value is () => T; /** Anything that can go into a layout slot */ type LayoutChild = Widget | string | Reactive; /** * Convert a loose child value into a proper Widget. * - Widget → pass through * - string → wrap in Text * - () => string → wrap in reactive Text (updated externally) */ declare function toWidget(child: LayoutChild, style?: Partial