/** * Advance an analysis engine by one accepted step. * * `SimEngine.step()` deliberately reports Newton/MNA failure through * `lastConverged` instead of throwing because the live worker can retry with a * smaller timestep. Analysis runners use a fixed, reproducible timestep, so * accepting that failed iterate would silently contaminate every later sample. * * Keep this policy in one place: snapshot, attempt, restore on either a thrown * exception or non-convergence, then reject the analysis point with enough * diagnostics for the UI to explain what happened. */ import type { SimEngine } from "../sim/engine/sim-engine.js"; export declare class AnalysisConvergenceError extends Error { constructor(message: string); } export declare function stepAnalysisEngine(engine: SimEngine, h: number, context: string): void;