UNPKG

dop-stick

Version:

Source control tooling for versionable-upgradeable smart contracts

66 lines 1.99 kB
import { Terminal } from './terminal'; /** * Enhanced logging utility with rich formatting and terminal support */ export declare class Logger { private static spinnerInterval; private static spinnerFrame; /** * Displays a prominent banner with title */ static displayBanner(title: string): Promise<void>; /** * Creates a section with title and content */ static section(title: string, content?: string, options?: { color?: keyof typeof Terminal.colors; style?: 'box' | 'line' | 'clean' | 'round'; }): void; /** * Logs a step in a process */ static step(number: number, total: number, title: string, detail?: string): void; /** * Starts a spinner with message */ static startSpinner(message: string): void; /** * Stops the active spinner */ static stopSpinner(success?: boolean, message?: string): void; /** * Status logging methods with support for multiple arguments */ static success(...messages: any[]): void; static error(...messages: any[]): void; static warning(...messages: any[]): void; static info(...messages: any[]): void; /** * Warning logging with yellow color (alias for warning) */ static warn(...messages: any[]): void; /** * Progress bar display */ static progress(current: number, total: number, options?: { title?: string; width?: number; showPercentage?: boolean; }): void; /** * Group logging with indentation */ static group(title: string, callback: () => void): void; /** * Utility methods */ private static centerText; static write(message: string): void; static writeLine(message: string): void; static clear(): void; /** * Debug logging - only shows when DEBUG environment variable is set */ static debug(message: string, ...args: any[]): void; } //# sourceMappingURL=logger.d.ts.map