react-curse
Version:
Fastest terminal UI for react (TUI, CLI, curses-like)
22 lines (21 loc) • 751 B
TypeScript
import { type TextProps } from './components/Text';
import Reconciler from 'react-reconciler';
export declare class TextElement {
props: TextProps;
parent: TextElement | null;
children: TextElement[];
constructor(props?: object);
terminate(): void;
appendChild(child: any): void;
commitUpdate(nextProps: any): void;
insertBefore(child: any, beforeChild: any): void;
removeChild(child: any): void;
}
export declare class TextInstance {
value: string;
constructor(value: string);
commitTextUpdate(value: string): void;
toString(): string;
}
declare const _default: (resetAfterCommit: () => void) => Reconciler.Reconciler<unknown, unknown, unknown, unknown, unknown, unknown>;
export default _default;