import type { DebugLogger } from "../debug.js"; export declare const NOOP: DebugLogger; interface ParsedPatterns { include: RegExp[]; exclude: RegExp[]; } /** * Parses a `DEBUG`-style pattern string into include/exclude regex lists. * Patterns prefixed with `-` go into `exclude`; everything else into `include`. * * Results are memoized against the last-seen `env` string, since * `process.env.DEBUG` is effectively constant within a process and * `createDebug` is called many times at startup. */ export declare function parsePatterns(env: string): ParsedPatterns; /** * Checks whether a namespace is enabled under the given `DEBUG` pattern string. */ export declare function isEnabled(namespace: string, env: string): boolean; export declare const COLORS: readonly number[]; /** * Picks an ANSI 256-colour code for a namespace, deterministic from its * characters. * * Uses a 32-bit FNV-1a hash followed by an xorshift finalizer. The finalizer * improves bit avalanche so the low bits used by `% COLORS.length` * distribute Hardhat's namespaces more evenly across the palette. */ export declare function selectColor(namespace: string): number; /** * Reports whether ANSI colours should be used, honouring `DEBUG_COLORS` and TTY. */ export declare function useColors(): boolean; export {}; //# sourceMappingURL=debug.d.ts.map