/** * Message sink — diverts the logger's output while the interactive screen is * mounted. * * In the alt-screen, any `console.log` fired by an internal module * (tsconfig-updater, theme-loader, package manager…) would tear the frame the * engine just painted. While capturing, messages are held here and re-emitted * into the terminal's history after unmount, alongside the summary. */ export type LogLevel = 'info' | 'warn' | 'error' | 'success' | 'debug'; export interface LogRecord { readonly level: LogLevel; readonly message: string; } /** Starts holding the logger's messages instead of writing them to the terminal. */ export declare function beginCapture(): void; /** Encerra a captura e devolve o que foi retido, na ordem em que chegou. */ export declare function endCapture(): LogRecord[]; export declare function isCapturing(): boolean; /** Holds one message. Returns false when no capture is active. */ export declare function capture(level: LogLevel, message: string): boolean; /** The messages held so far, without ending the capture (for display in the UI). */ export declare function captured(): readonly LogRecord[]; //# sourceMappingURL=log-sink.d.ts.map