/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { RunEventSink } from "./runEventChannel"; /** * Installs run reporting when a parent process asked for it, once per process. * * This lives here rather than in one CLI's boot because the claim it supports — * that every command in every CLI built on this package is reportable — is only * true if a downstream binary gets it too. `sec` has its own entry point and * never ran libs' boot, so `sec web` spawned children that reported nothing and * the console showed a run with no tasks in it. * * Idempotent, so a caller that installs early (the web command) and the lazy * call on the first run cannot install twice. */ export declare function ensureRunReporting(): RunEventSink | undefined; /** Test seam: forget that the environment was already read. */ export declare function resetRunReportingForTesting(): void;