/** * @file Output entrypoints — `debug` / `debugCache` / `debugDir` / `debugLog` * and their `*Ns` namespace variants, plus `debuglog` (node-util-compatible) * and `debugtime` (start/end timers). Each output function gates through * `isEnabled`, prefixes the caller name from `getCallerInfo`, pauses any * active spinner across the write, and uses the lazy `pointingTriangle` glyph * for the divider. */ import type { SpinnerInstance } from '../spinner/types.js'; import type { InspectOptions, NamespacesOrOptions } from './types.js'; /** * Debug output with caller info (wrapper for debugNs with default namespace). */ export declare function debug(...args: unknown[]): void; /** * Cache debug function with caller info. * * @example * ;```typescript * debugCache('hit', 'socket-sdk:scans:abc123') * debugCache('miss', 'socket-sdk:scans:xyz', { ttl: 60000 }) * ``` */ export declare function debugCache(operation: string, key: string, meta?: unknown | undefined): void; /** * Debug output for cache operations with caller info. First argument is the * operation type (hit/miss/set/clear). Second argument is the cache key or * message. Optional third argument is metadata object. */ export declare function debugCacheNs(namespacesOrOpts: NamespacesOrOptions, operation: string, key: string, meta?: unknown | undefined): void; /** * Debug output for object inspection (wrapper for debugDirNs with default * namespace). */ export declare function debugDir(obj: unknown, inspectOpts?: InspectOptions | undefined): void; /** * Debug output for object inspection with caller info. */ export declare function debugDirNs(namespacesOrOpts: NamespacesOrOptions, obj: unknown, inspectOpts?: InspectOptions | undefined): void; /** * Debug logging function (wrapper for debugLogNs with default namespace). */ export declare function debugLog(...args: unknown[]): void; /** * Create a Node.js util.debuglog compatible function. Returns a function that * conditionally writes debug messages to stderr. */ export declare function debuglog(section: string): import("node:util").DebugLogger; /** * Debug logging function with caller info. */ export declare function debugLogNs(namespacesOrOpts: NamespacesOrOptions, ...args: unknown[]): void; /** * Debug output with caller info. */ export declare function debugNs(namespacesOrOpts: NamespacesOrOptions, ...args: unknown[]): void; /** * Create timing functions for measuring code execution time. Returns an object * with start() and end() methods, plus a callable function. */ export declare function debugtime(label: string): { (): void; start: () => void; end: () => void; }; /** * Read the existing default spinner on Node; in a browser bundle off Node * there is no spinner. This function never constructs the spinner. * * @private */ export declare function getSpinner(): SpinnerInstance | undefined;