/** * @file Private internals for `debug/*` modules — the lazy debug-js accessor, * the `debugByNamespace` cache that `namespace.getDebugJsInstance` fills, * the lazy `pointingTriangle` glyph used by every output function, and * `customLog` (the `debug-js` log-writer override). Node-bound pieces are * deferred to first use — the vendored debug-js bundle is required lazily * (its module top-level reads env / requires tty), the default `Logger` is * resolved on first use through `getDefaultLogger`, and * `node:util` loads through the `getNodeUtil` accessor. Every call site * sits behind the SOCKET_DEBUG / DEBUG env gates, so importing a `debug/*` * leaf stays browser-load-safe and V8-snapshot-safe. Co-located so the * namespace / output / caller-info leaves don't fragment ownership of this * shared module state. */ import type debugJs from '../external/debug.js'; export declare const debugByNamespace: Map; /** * Custom log function for debug output. * * @private */ export declare function customLog(...args: unknown[]): void; /** * Lazily require the vendored `debug-js` bundle. Deferred to first use so * importing a `debug/*` leaf never evaluates debug-js's node-bound module * top-level (tty/util requires, process.env reads); every caller sits behind * the env gates, so browser bundles load this leaf without executing it. * * @private */ export declare function getDebugJs(): typeof debugJs; /** * Lazily resolve the "pointing triangle" glyph — `▸` on terminals with unicode * support, `>` everywhere else. Initialised on first call by the output * functions. * * @private */ export declare function getPointingTriangle(): string;