UNPKG

@teaui/core

Version:

A high-level terminal UI library for Node

20 lines (19 loc) 630 B
import { LogLine } from '../log'; import { Viewport } from '../Viewport'; import { type Props as ViewProps } from '../View'; import { Screen } from '../Screen'; import { Container } from '../Container'; export declare class Log extends Container { #private; constructor(props?: ViewProps); setLogs(logs: LogLine[]): void; appendLog(log: LogLine): void; clear(): void; } export declare class ConsoleLog extends Log { static default: ConsoleLog | undefined; constructor(props?: ViewProps); didMount(screen: Screen): void; didUnmount(screen: Screen): void; render(viewport: Viewport): void; }