/** * @file Browser-safe `Logger` implementation — mirrors the public `success` / * `fail` / `warn` / `error` / `info` / `log` surface of the Node `Logger` * (see `./node`) but backed by the global `console` so it works in Chrome MV3 * service workers, content scripts, popups, and any other browser context * without `node:process` / `node:console` / fs. Consumers should import * `Logger` from `./logger` (auto-routed by the package.json `browser` * condition) or `./default` for the singleton. `./browser` is the * explicit-platform name; useful for tests pinning to one implementation. */ export declare class Logger { log(message: unknown, ...args: unknown[]): this; info(message: unknown, ...args: unknown[]): this; warn(message: unknown, ...args: unknown[]): this; error(message: unknown, ...args: unknown[]): this; success(message: unknown, ...args: unknown[]): this; fail(message: unknown, ...args: unknown[]): this; } /** * The shared browser `Logger` singleton, mirroring `./default` on the Node * side. * * It lives here so the two leaves expose the SAME surface. Without it, * `./logger/default` cannot be given a `browser` condition pointing at this * file: `./default` exports `getDefaultLogger()` and this module would export * only the class, so a consumer's `import { getDefaultLogger }` would resolve * to a module without it - and only in a browser bundle, where it is hardest * to notice. * * Built lazily for the same reason as the Node twin: importing during a * service-worker cold start should not touch `globalThis.console` yet. */ export declare function getDefaultLogger(): Logger;