import { LoggerType } from "./internal.js"; export { LoggerType }; /** * A string representing a single space (one space-ish character). Note that * space-ish characters will not be `trim()`'d. */ export declare const SINGLE_SPACE = "\u2800"; /** * A string of spaces representing a short CLI "tab" (two space-ish characters). * Note that space-ish characters will not be `trim()`'d. */ export declare const SHORT_TAB: string; /** * A string of spaces representing a CLI "tab" (four space-ish characters). Note * that space-ish characters will not be `trim()`'d. */ export declare const TAB: string; /** * Create and return new set of logger instances. */ export declare function createGenericLogger({ namespace }: { /** * The namespace of the logger. The namespace must be a valid [`debug` * namespace](https://npm.im/debug#namespace-colors). * * @see https://npm.im/debug#namespace-colors */ namespace: string; }): import("./internal.js").ExtendedLogger; /** * Create a new debug logger instance. */ export declare function createDebugLogger({ namespace }: { /** * The namespace of the logger. The namespace must be a valid [`debug` * namespace](https://npm.im/debug#namespace-colors). * * @see https://npm.im/debug#namespace-colors */ namespace: string; }): import("@-xun/debug").ExtendedDebugger; /** * Return an array of all known loggers of a specific type: either `stdout`, * `debug`, or both (`all`). Pre-extended loggers (e.g. `::message`, `::warn`, * and `::error`) are excluded unless `includeInternal` is `true`. * * Note: to get all currently-enabled or currently-disabled loggers, provide * `type=all` and filter the results by their ::enabled property. */ export declare function getLoggersByType({ type, includeInternal }: { /** * The type of loggers to return. Valid values are one of: * * - `stdout` returns loggers created via `createGenericLogger` * * - `debug` returns loggers created via `createDebugLogger` * * - `all` returns all loggers */ type: LoggerType; /** * Whether to include unextendable/internal/pre-extended loggers like * `::message` and `::warn` in output. * * @default true */ includeInternal?: boolean; }): (import("./internal.js").ExtendedLogger | import("@-xun/debug").UnextendableInternalDebugger | import("@-xun/debug").ExtendedDebugger)[]; /** * Disable all logger instances (coarse-grain). */ export declare function disableLoggers({ type, filter }: { /** * The type of logging to disable. Valid values are one of: * * - `stdout` disables loggers created via `createGenericLogger` * * - `debug` disables loggers created via `createDebugLogger` * * - `all` disables all loggers */ type: LoggerType; /** * Optionally filter the loggers to be disabled. If `filter` is a string, only * loggers with namespaces equal to `filter` will be disabled. If `filter` is * a regular expression, only loggers with namespaces matching the expression * will be disabled. */ filter?: string | RegExp; }): void; /** * Enable all logger instances (coarse-grain). */ export declare function enableLoggers({ type, filter }: { /** * The type of logging to enable. Valid values are one of: * * - `stdout` enables loggers created via `createGenericLogger` * * - `debug` enables loggers created via `createDebugLogger` * * - `all` enables all loggers */ type: LoggerType; /** * Optionally filter the loggers to be enabled. If `filter` is a string, only * loggers with namespaces equal to `filter` will be enabled. If `filter` is a * regular expression, only loggers with namespaces matching the expression * will be enabled. */ filter?: string | RegExp; }): void; /** * Prevents logs with the specified tags from being sent to output. */ export declare function disableLoggingByTag({ tags }: { /** * The tags of messages that will no longer be sent to output. If `tags` is * empty`, calling this function is effectively a noop. */ tags: string[]; }): void; /** * Allows logs with the specified tags to resume being sent to output. Only relevant as the inverse function of {@link disableLoggingByTag}. */ export declare function enableLoggingByTag({ tags }: { /** * The tags of messages that will resume being sent to output. If `tags` is * empty`, calling this function is effectively a noop. */ tags: string[]; }): void; /** * Returns an array of the tags disabled via {@link disableLoggingByTag}. */ export declare function getDisabledTags(): string[]; export type { ExtendedLogger } from "./internal.js"; export type { ExtendedDebugger } from '@-xun/debug';