import { AnyType } from '../types.js'; export { Debugger } from 'debug'; export declare const customInspectSymbol: unique symbol; export declare enum LogLevel { ERROR = "error", WARN = "warn", INFO = "info", DEBUG = "debug", TRACE = "trace" } /** * Check if the namespace is enabled by log level * @param namespace - Debug namespace * @returns */ export declare function isLogEnabled(namespace: string): boolean; export declare function setLogLevel(level: LogLevel): string | null | undefined; export declare function getLogLevel(): LogLevel; /** * Get the highest log level for the given namespace * @param namespace - Debug namespace * @returns */ export declare function getLogLevelForNamespace(namespace: string): LogLevel; /** * React arguments to hide secrets * @param args - Args * @returns */ export declare function redactData(args: AnyType, secretKeys?: string[], secretVals?: string[]): any; /** * Enable debug for the given namespaces * @param namespaces - Namespace list */ export declare function enableDebug(namespaces: string): void; /** * Check if a debug namespace is enabled * @param namespace - Debug namespace */ export declare function isDebugEnabled(namespace: string): boolean; /** * Set debug flags * @param settings - Debug settings */ export declare function setDebugSettings(settings: Record): void; /** * Use `util.inspect` to print out the value * @param value - Value * @param depth - Depth, default to 8 * @returns */ export declare function inspectJson(value: unknown, depth?: number): string; /** * Stringify the value with 2-space indentation * @param value - Value * @returns */ export declare function stringify(value: unknown): string;