/** * Client-side deterministic net builder. * * Converts a circuit's wire list into a list of nets using union-find. * Runs entirely in the worker, with no network round-trips. */ export type PinKey = [string, string]; export interface Net { id: string; pins: PinKey[]; } interface MinCircuit { components: Array<{ id: string; kind: string; /** Exact model identity when available; omitted by legacy/minimal callers. */ catalogUid?: string; pins: Array<{ id: string; }>; }>; wires: Array<{ from_component: string; from_pin: string; to_component: string; to_pin: string; }>; } /** * The return terminal of an independent source, which is where a section's * voltage reference goes: buildNets puts the circuit's ground there, and * SimEngine anchors an electrically isolated section there. */ export declare function sourceReturnPinId(c: { kind: string; pins: Array<{ id: string; }>; }): string | undefined; export declare function buildNets(circuit: MinCircuit): Net[]; export {};