import type { Chalk } from "chalk"; import type { Log, LogEntry } from "./log-entry"; import type { LogLevel } from "./logger"; export declare function envSupportsEmoji(): boolean; export declare function overrideTerminalWidth(width: number | undefined): void; export declare function getTerminalWidth(): number; /** * Prints emoji if supported and adds padding to the right (otherwise subsequent text flows over the emoji). */ export declare function printEmoji(emoji: string, log: Log): string; export declare function printHeader(log: Log, command: string, emoji: string): void; export declare function printFooter(log: Log): Log; export declare function printWarningMessage(log: Log, text: string): Log; interface DividerOpts { width?: number; char?: string; titlePadding?: number; color?: Chalk; title?: string; padding?: number; } export declare function getStyle(level: LogLevel): Chalk; export declare function getSection(entry: LogEntry): string | null; export declare function renderDivider({ width, char, titlePadding, color, title, padding, }?: DividerOpts): string; export declare const getTermWidth: () => number; export declare function renderDuration(startTime: Date): string; /** * Render a given log message with a divider at the start and end of the message. * Returns a 'msg' string for printing the message to the terminal and a 'rawMsg' * string which is used for logs displayed in the browser. */ export declare function renderMessageWithDivider({ prefix, msg, isError, color, }: { prefix: string; msg: string; isError: boolean; color?: Chalk; }): { msg: string; rawMsg: string; }; export declare function getLogLevelNumber(level: LogLevel): number; export declare function resolveMsg(logEntry: LogEntry): string | undefined; export declare function shouldEmitLog(level: LogLevel, contextLevel: LogLevel): boolean; export {};