// generated by diplomat-tool import type { NucleationError } from "./NucleationError.mjs" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * An extracted redstone logic graph. Wraps * {@link crate::simulation::graph::RedstoneGraph}. */ export class RedstoneGraph { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Number of nodes in the graph. */ nodeCount(): number; /** * Total number of directed edges in the graph. */ edgeCount(): number; /** * The nodes as a JSON array string. */ nodesJson(): string; /** * The directed edges as a JSON array string. */ edgesJson(): string; /** * Computed graph features as a JSON object string. */ featuresJson(): string; /** * Fingerprint (hex string) for `preset` ("structural" | "functional" | * "exact"; empty defaults to "structural"). */ fingerprint(preset: string): string; /** * Serialize the whole graph to JSON. */ toJson(): string; /** * Deserialize a graph from a JSON string. */ static fromJson(json: string): RedstoneGraph; }