/** * @file Namespace-handling helpers — `extractOptions` normalises the * polymorphic first argument that every `*Ns` function takes, * `getDebugJsInstance` per-namespace caches the underlying `debug-js` * instance with `customLog` patched in, and `isEnabled` / `isDebug` / * `isDebugNs` are the gate predicates every output function consults before * writing. */ import type { DebugOptions, NamespacesOrOptions } from './types.js'; /** * Extract options from namespaces parameter. * * @private */ export declare function extractOptions(namespaces: NamespacesOrOptions): DebugOptions; /** * Get or create a debug instance for a namespace. * * @private */ export declare function getDebugJsInstance(namespace: string): any; /** * Check if debug mode is enabled. */ export declare function isDebug(): boolean; /** * Check if debug mode is enabled. */ export declare function isDebugNs(namespaces: string | undefined): boolean; /** * Check if debug is enabled for given namespaces. * * @private */ export declare function isEnabled(namespaces: string | undefined): boolean; /** * Whether SOCKET_DEBUG enables debug output. A namespace value like `*` or * `socket:foo` enables it (these aren't boolean literals, so `envAsBoolean` * alone would wrongly read them as false); an explicit boolean-false (`0`, * `false`, `no`) or an empty/unset value disables it. */ export declare function isSocketDebugEnabled(): boolean;