/** * @file Constructor-options parsing for the `Logger` class. Pulls the * options-shape inspection (null-prototype clone, original-stdout capture, * theme-name-or-object resolution) out of `./node` so the class constructor * stays a thin shell over `parseLoggerOptions`. Returns a normalized * `ParsedLoggerOptions`; the constructor copies the fields onto its private * slots. */ import type { Theme } from '../term/themes/types.js'; /** * The normalized result of inspecting the first `Logger` constructor argument. */ export interface ParsedLoggerOptions { /** * Null-prototype clone of the options object (empty when no options were * passed). Stored for future extensibility. */ options: Record; /** * The caller-supplied stdout stream, used by `write()` to bypass Console * formatting. `undefined` when not provided. */ originalStdout: NodeJS.WritableStream | undefined; /** * The resolved instance theme: a `THEMES` entry when a theme name was given, * the object itself when a `Theme` was given, or `undefined` otherwise. */ theme: Theme | undefined; } /** * Parse the first `Logger` constructor argument into normalized option slots. * * A `theme` string is resolved against `THEMES`, where an unknown name yields * no theme; a `theme` object is used directly. When the first argument is not * an object, every slot defaults: empty null-prototype options, no stdout, and * no theme. * * @param args - The raw `Logger` constructor arguments. */ export declare function parseLoggerOptions(args: unknown[]): ParsedLoggerOptions;