/** * @file Free-function helpers for per-instance log-symbol construction + symbol * stripping. Extracted from `logger/node.ts` (the `Logger` class) so the * class stays under the 1000-line hard cap and so other callers (alt loggers, * format helpers) can reuse the same logic without instantiating a `Logger`. * * - `buildLoggerSymbols` — theme + unicode-detection → `LogSymbols` map * - `stripLoggerSymbols` — strip leading status emoji from a string */ import type { LogSymbols } from './types.js'; import type { Theme } from '../term/themes/types.js'; /** * Build a `LogSymbols` map for the given theme. * * On unicode-supporting terminals returns the canonical icons (`✔`, `✖`, `⚠`, * `ⓘ`, `→`, `∴`, `↻`); otherwise returns ASCII fallbacks (`√`, `×`, `‼`, `i`, * `>`, `:.`, `@`). Colors are pulled from the supplied theme via `applyColor`. */ export declare function buildLoggerSymbols(theme: Theme): LogSymbols; /** * Strip leading log-status symbols and variation selectors from a string. * Matches both unicode forms (`✖`, `⚠`, `✔`, `ⓘ`, `ℹ`, `→`, `∴`, `↻`) and the * unambiguous ASCII fallback `:.`. Does not strip lone ASCII letters (`i`, `>`, * `@`) since those would mangle real words. * * Handles the trailing variation-selector U+FE0F + whitespace so a `'✔ Done'` * input becomes `'Done'`. */ export declare function stripLoggerSymbols(text: string): string;