///
import { Writable } from 'node:stream';
export declare const nodeLogDestination: Writable;
interface LogWritable {
write: (chunk: T) => boolean;
}
export type LoggerLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent';
export type LoggerEvent = 'info' | 'warn' | 'error';
export interface LogOptions {
dest?: LogWritable;
level?: LoggerLevel;
}
export declare const nodeLogOptions: Required;
export interface LogMessage {
type: string | null;
level: LoggerLevel;
message: string;
}
export declare const levels: Record;
/**
* Emit a message only shown in debug mode.
* Astro (along with many of its dependencies) uses the `debug` package for debug logging.
* You can enable these logs with the `DEBUG=astro:*` environment variable.
* More info https://github.com/debug-js/debug#environment-variables
*/
export declare function debug(type: string, ...messages: Array): any;
export declare const logger: {
info: (type: string | null, message: string) => void;
warn: (type: string | null, message: string) => void;
error: (type: string | null, message: string) => void;
};
export declare function enableVerboseLogging(): void;
export {};