UNPKG

ink

Version:
20 lines (19 loc) 670 B
import { type Writable } from 'node:stream'; import { type CursorPosition } from './cursor-helpers.js'; export type { CursorPosition } from './cursor-helpers.js'; export type LogUpdate = { clear: () => void; done: () => void; sync: (str: string) => void; setCursorPosition: (position: CursorPosition | undefined) => void; isCursorDirty: () => boolean; willRender: (str: string) => boolean; (str: string): boolean; }; declare const logUpdate: { create: (stream: Writable, { showCursor, incremental }?: { showCursor?: boolean | undefined; incremental?: boolean | undefined; }) => LogUpdate; }; export default logUpdate;