@teaui/core
Version:
A high-level terminal UI library for Node
21 lines (20 loc) • 675 B
TypeScript
import { LogLine } from '../log.js';
import { Viewport } from '../Viewport.js';
import { type Props as ViewProps } from '../View.js';
import { Screen } from '../Screen.js';
import { Container } from '../Container.js';
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);
logDidChange: () => void;
didMount(screen: Screen): void;
didUnmount(screen: Screen): void;
render(viewport: Viewport): void;
}