/** * Parse ngspice batch-mode stdout produced by the `print` control command (see * `buildSpiceDeck`). Two shapes are handled: * * - Operating point (`.op`), where `print` emits one `name = value` line per vector. * - Transient (`.tran`), where `print` emits an `Index time v(a) v(b) ...` header * followed by one numeric row per timepoint. * * This has been validated against the primary mocked-runner test suite documenting the * exact expected format, but **not against a live ngspice installation** (none is * available in this development environment) — see `docs/simulation.md`. Both parsers are * intentionally lenient about whitespace and are safe no-ops (return no data) on * unrecognized output rather than throwing, so a live-format mismatch degrades to an * empty/partial result instead of crashing the caller. * * @module */ import type { OperatingPointResult, TransientResult } from './types.js'; export declare function parseOperatingPointOutput(stdout: string): OperatingPointResult; export declare function parseTransientOutput(stdout: string): TransientResult;