import { Sticky } from './Sticky.js'; /** Update interval in milliseconds. This is throttled for better performance. */ export declare const stickyUpdateIntervalMs = 250; export declare class Writer { private _stickies; private _lastStickyLineCount; private _totalLines; private _reprintTimer; private _logFileStream; /** * Set stickies. If there are no stickies, it will clear immediately. * Otherwise it will wait until the next throttled reprint to update. */ setStickies(newStickies: (Sticky | string)[]): void; /** * Write the text to the terminal. If there are stickies, will clear them first then re-print. * Also writes to a log file if enabled. */ write(text: string): void; /** Print the stickies and schedule a throttled update */ private _printStickies; /** * Clear any previous stickies from the terminal. * Note that to cancel future updates, you must call `cancelPendingReprint()` separately. */ private _clearPreviousStickies; private _clearLines; /** * Clear all output and remove all stickies. */ clear(): void; /** Schedule a sticky reprint if not already scheduled */ private _reprintStickiesThrottled; /** * Reprint stickies immediately, bypassing any throttling (and reschedule the next throttled update) */ private _reprintStickiesNow; /** Cancel any pending throttled repaint. */ cancelPendingReprint(): void; /** Remove a sticky and trigger a reprint */ removeSticky(sticky: Sticky): void; enableLogFile(cwd?: string): void; dispose(): Promise; } //# sourceMappingURL=Writer.d.ts.map