UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

96 lines 2.99 kB
//#region src/libs/cli/logger.d.ts declare const symbols: { readonly tick: { readonly icon: "✓"; readonly color: import("picocolors/types.js").Formatter; }; readonly cross: { readonly icon: "×"; readonly color: import("picocolors/types.js").Formatter; }; readonly warning: { readonly icon: "!"; readonly color: import("picocolors/types.js").Formatter; }; readonly info: { readonly icon: "i"; readonly color: import("picocolors/types.js").Formatter; }; readonly bullet: { readonly icon: "•"; readonly color: import("picocolors/types.js").Formatter; }; readonly child: { readonly icon: "↳"; readonly color: import("picocolors/types.js").Formatter; }; readonly line: { readonly icon: "┃"; readonly color: import("picocolors/types.js").Formatter; }; readonly halfCircle: { readonly icon: "◐"; readonly color: import("picocolors/types.js").Formatter; }; }; type SymbolKey = keyof typeof symbols; interface LogConfig { symbol?: SymbolKey | string; indent?: number; spaceBefore?: boolean; spaceAfter?: boolean; silent?: boolean; } declare const logger: { info: (...args: Array<string | LogConfig>) => void; error: (...args: Array<string | LogConfig>) => void; warn: (...args: Array<string | LogConfig>) => void; log: (...args: Array<string | LogConfig>) => void; success: (...args: Array<string | LogConfig>) => void; color: import("picocolors/types.js").Colors & { createColors: (enabled?: boolean) => import("picocolors/types.js").Colors; }; symbols: { readonly tick: { readonly icon: "✓"; readonly color: import("picocolors/types.js").Formatter; }; readonly cross: { readonly icon: "×"; readonly color: import("picocolors/types.js").Formatter; }; readonly warning: { readonly icon: "!"; readonly color: import("picocolors/types.js").Formatter; }; readonly info: { readonly icon: "i"; readonly color: import("picocolors/types.js").Formatter; }; readonly bullet: { readonly icon: "•"; readonly color: import("picocolors/types.js").Formatter; }; readonly child: { readonly icon: "↳"; readonly color: import("picocolors/types.js").Formatter; }; readonly line: { readonly icon: "┃"; readonly color: import("picocolors/types.js").Formatter; }; readonly halfCircle: { readonly icon: "◐"; readonly color: import("picocolors/types.js").Formatter; }; }; formatMilliseconds: (milliseconds: number) => string; startTimer: () => () => number; createBadge: (text: string, backgroundColor?: (str: string) => string, foregroundColor?: (str: string) => string) => string; formatBytes: (bytes: number) => string; errorInstance: (error: Error, heading?: string) => void; }; type CLILogger = typeof logger; //#endregion export { CLILogger, logger as default }; //# sourceMappingURL=logger.d.mts.map