/** * Ink TUI Adapter - Ink implementation of the TUI adapter * * This is a concrete implementation of TUIAdapter using the Ink library. * The interfaces are defined separately to allow for other implementations (blessed, react-blessed, etc.) * * Benefits: * - Implements library-agnostic TUIAdapter interface * - Can be swapped with other implementations without changing consumers * - Provides the familiar Ink API through the adapter */ import type React from 'react'; import type { AppControl, BoxProps, InputHandler, NewlineProps, RenderResult, TextProps, TUIAdapter } from './tui-adapter.interface.js'; /** * Ink Adapter Implementation * * Concrete implementation of TUIAdapter using the Ink library. */ export declare class InkAdapter implements TUIAdapter { /** * Box component for layout */ Box: React.FC; /** * Text component for styled text */ Text: React.FC; /** * Newline component */ Newline: React.FC; /** * Hook for handling keyboard input */ useInput(handler: InputHandler, options?: { isActive?: boolean; }): void; /** * Hook for controlling the app */ useApp(): AppControl; /** * Render a React element to the terminal */ render(element: React.ReactElement): RenderResult; } /** * Default adapter instance factory * This is used by the getTUIAdapter function in the interface */ export declare function createDefaultTUIAdapter(): TUIAdapter; //# sourceMappingURL=tui-adapter.d.ts.map