@sublang/spex 6.0.0 → 7.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +419 -12
  2. package/dist/cli.js +12 -1
  3. package/dist/commands/add.d.ts +1 -1
  4. package/dist/commands/add.js +2 -2
  5. package/dist/commands/environment.d.ts +3 -3
  6. package/dist/commands/environment.js +5 -7
  7. package/dist/commands/export.js +2 -2
  8. package/dist/commands/home.d.ts +2 -2
  9. package/dist/commands/home.js +3 -3
  10. package/dist/commands/list.js +1 -1
  11. package/dist/commands/login.js +12 -7
  12. package/dist/commands/logout.js +2 -3
  13. package/dist/commands/publish.js +1 -1
  14. package/dist/commands/remove.js +1 -1
  15. package/dist/commands/run.d.ts +1 -1
  16. package/dist/commands/run.js +16 -0
  17. package/dist/commands/settle.d.ts +1 -1
  18. package/dist/commands/settle.js +1 -1
  19. package/dist/guards/approval.d.ts +56 -0
  20. package/dist/guards/approval.js +158 -0
  21. package/dist/guards/checks.d.ts +207 -0
  22. package/dist/guards/checks.js +681 -0
  23. package/dist/guards/commands.d.ts +15 -0
  24. package/dist/guards/commands.js +313 -0
  25. package/dist/guards/copy.d.ts +67 -0
  26. package/dist/guards/copy.js +306 -0
  27. package/dist/guards/declaration.d.ts +45 -0
  28. package/dist/guards/declaration.js +224 -0
  29. package/dist/guards/files.d.ts +137 -0
  30. package/dist/guards/files.js +544 -0
  31. package/dist/guards/harness.d.ts +58 -0
  32. package/dist/guards/harness.js +420 -0
  33. package/dist/guards/items.d.ts +61 -0
  34. package/dist/guards/items.js +161 -0
  35. package/dist/guards/patch.d.ts +55 -0
  36. package/dist/guards/patch.js +258 -0
  37. package/dist/guards/processes.d.ts +49 -0
  38. package/dist/guards/processes.js +233 -0
  39. package/dist/guards/proofs.d.ts +88 -0
  40. package/dist/guards/proofs.js +503 -0
  41. package/dist/guards/records.d.ts +176 -0
  42. package/dist/guards/records.js +513 -0
  43. package/dist/guards/report.d.ts +26 -0
  44. package/dist/guards/report.js +492 -0
  45. package/dist/guards/runner.d.ts +42 -0
  46. package/dist/guards/runner.js +167 -0
  47. package/dist/guards/tla.d.ts +51 -0
  48. package/dist/guards/tla.js +352 -0
  49. package/dist/guards/tlapm.d.ts +81 -0
  50. package/dist/guards/tlapm.js +172 -0
  51. package/dist/guards/tlc.d.ts +191 -0
  52. package/dist/guards/tlc.js +457 -0
  53. package/dist/guards/translation.d.ts +66 -0
  54. package/dist/guards/translation.js +202 -0
  55. package/dist/guards/types.d.ts +185 -0
  56. package/dist/guards/types.js +437 -0
  57. package/dist/guards/verify.d.ts +290 -0
  58. package/dist/guards/verify.js +1191 -0
  59. package/dist/guards/xml.d.ts +18 -0
  60. package/dist/guards/xml.js +105 -0
  61. package/dist/lib/environment/archive.d.ts +2 -2
  62. package/dist/lib/environment/archive.js +1 -1
  63. package/dist/lib/environment/builtins.d.ts +10 -12
  64. package/dist/lib/environment/builtins.js +17 -19
  65. package/dist/lib/environment/exports.d.ts +14 -13
  66. package/dist/lib/environment/exports.js +31 -16
  67. package/dist/lib/environment/format.d.ts +2 -2
  68. package/dist/lib/environment/format.js +3 -3
  69. package/dist/lib/environment/git-source.js +6 -3
  70. package/dist/lib/environment/install.d.ts +14 -16
  71. package/dist/lib/environment/install.js +66 -61
  72. package/dist/lib/environment/lock.d.ts +4 -3
  73. package/dist/lib/environment/lock.js +6 -5
  74. package/dist/lib/environment/marker.js +1 -2
  75. package/dist/lib/environment/own-paths.d.ts +7 -10
  76. package/dist/lib/environment/own-paths.js +10 -13
  77. package/dist/lib/environment/placed-record.d.ts +3 -2
  78. package/dist/lib/environment/placed-record.js +5 -4
  79. package/dist/lib/environment/registry.d.ts +1 -1
  80. package/dist/lib/environment/registry.js +1 -1
  81. package/dist/lib/environment/requests.d.ts +2 -2
  82. package/dist/lib/environment/requests.js +2 -2
  83. package/dist/lib/environment/resolve.d.ts +4 -4
  84. package/dist/lib/environment/resolve.js +3 -4
  85. package/dist/lib/environment/store.d.ts +34 -8
  86. package/dist/lib/environment/store.js +138 -43
  87. package/dist/lib/files.d.ts +72 -12
  88. package/dist/lib/files.js +200 -65
  89. package/dist/lib/git-host.d.ts +52 -258
  90. package/dist/lib/git-host.js +52 -265
  91. package/dist/lib/home-file.d.ts +13 -10
  92. package/dist/lib/home-file.js +28 -18
  93. package/dist/lib/instance.d.ts +1 -1
  94. package/dist/lib/instance.js +1 -1
  95. package/dist/lint.d.ts +22 -0
  96. package/dist/lint.js +36 -0
  97. package/dist/testing/standin-registry.js +1 -1
  98. package/package.json +7 -3
  99. package/scaffold/.file-history.json +14 -7
  100. package/scaffold/i18n/zh/source-pins.json +41 -0
  101. package/scaffold/i18n/zh/specs/decisions/000-spec-structure-format.md +0 -1
  102. package/scaffold/i18n/zh/specs/intents/000-spdx-headers.md +0 -1
  103. package/scaffold/i18n/zh/specs/map.md +0 -1
  104. package/scaffold/i18n/zh/specs/meta.md +18 -35
  105. package/scaffold/i18n/zh/specs/packages/git.md +0 -1
  106. package/scaffold/i18n/zh/specs/packages/licensing.md +0 -1
  107. package/scaffold/specs/meta.md +18 -3
  108. package/scripts/test-exit-guard.mjs +28 -0
@@ -0,0 +1,172 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
3
+ /*
4
+ * Guards package, DR-244 and DR-252: the TLA+ proof system, `tlapm`.
5
+ * This file finds it, says how it is run, with fixed options and
6
+ * nothing from the environment, and reads what it printed: whether
7
+ * it proved every obligation of each module it was given, with no
8
+ * proof omitted or missing. It proves nothing itself.
9
+ */
10
+ import { spawnSync } from "node:child_process";
11
+ import { existsSync, statSync } from "node:fs";
12
+ import { resolve } from "node:path";
13
+ /** The variable that names a proof system to use. */
14
+ export const TLAPM_VARIABLE = "SPEX_TLAPM";
15
+ /**
16
+ * The releases Spex pins, by host (`<platform>-<arch>` as Node names
17
+ * them). None is pinned (DR-252): the proof system's maintainers
18
+ * publish a rolling build, replaced under one name, so a host finds it
19
+ * through the variable alone and a result names the version it reports.
20
+ */
21
+ export const TLAPM_PINS = {};
22
+ /** Why the proofs cannot be checked where no place gave a proof system. */
23
+ const NONE = `no proof system: set ${TLAPM_VARIABLE} to a tlapm executable`;
24
+ /** The environment the proof system runs in: the host's, without
25
+ * the variables through which tlapm takes options (`TLAPM_CACHE_DIR`,
26
+ * `TLAPM_SMT_SOLVER` and the like). */
27
+ export function tlapmEnv(env) {
28
+ const clean = {};
29
+ for (const [name, value] of Object.entries(env))
30
+ if (!/^TLAPM/i.test(name))
31
+ clean[name] = value;
32
+ return clean;
33
+ }
34
+ function isFile(path) {
35
+ return existsSync(path) && statSync(path).isFile();
36
+ }
37
+ function isDir(path) {
38
+ return existsSync(path) && statSync(path).isDirectory();
39
+ }
40
+ /** How a program ended that did not end well: with its status, or,
41
+ * where a signal ended it and it has none, before it finished. */
42
+ export function endedAs(status) {
43
+ return status === null ? "was ended before it finished" : `ended with status ${status}`;
44
+ }
45
+ /** A line of the stack the proof system prints where it ends badly. */
46
+ const STACK_LINE = /^(?:Raised|Re-raised|Called) (?:at|from|by) /;
47
+ /** The first line a program printed for one of its options, or why
48
+ * there is none. */
49
+ function askOf(program, option, env) {
50
+ const ran = spawnSync(program, [option], { env: tlapmEnv(env), encoding: "utf8", timeout: 60_000, windowsHide: true });
51
+ if (ran.error !== undefined)
52
+ return { failed: ran.error.message };
53
+ if (ran.status !== 0) {
54
+ const words = `${ran.stderr ?? ""}`.trim().split("\n").at(-1) ?? "";
55
+ return { failed: `${option} ${endedAs(ran.status)}${words === "" ? "" : `: ${words}`}` };
56
+ }
57
+ const said = `${ran.stdout ?? ""}`.split("\n").map((line) => line.trim()).find((line) => line !== "") ?? "";
58
+ return said === "" ? { failed: `${option} printed nothing` } : { said };
59
+ }
60
+ /**
61
+ * The solvers a proof system would run, read from what `--config`
62
+ * prints: each line `<name> version == "<version>"` in order, without
63
+ * the line of `SMT`, its name for the solver it takes by default,
64
+ * which another line names. None where it prints no such line.
65
+ */
66
+ export function solversOf(printed) {
67
+ const solvers = [];
68
+ for (const line of printed.replace(/\r\n/g, "\n").split("\n")) {
69
+ const found = /^(\S(?:.*\S)?) version == "(.*)"\s*$/.exec(line);
70
+ if (found === null || found[1] === "SMT")
71
+ continue;
72
+ const one = `${found[1]} (${found[2]})`;
73
+ if (!solvers.includes(one))
74
+ solvers.push(one);
75
+ }
76
+ return solvers;
77
+ }
78
+ /** What a proof system says of its solvers; none where it does not say. */
79
+ function askSolvers(program, env) {
80
+ const ran = spawnSync(program, ["--config"], { env: tlapmEnv(env), encoding: "utf8", timeout: 60_000, windowsHide: true });
81
+ return ran.error !== undefined || ran.status !== 0 ? [] : solversOf(`${ran.stdout ?? ""}`);
82
+ }
83
+ /** The proof system a program is, asked for its version, its
84
+ * standard modules and its solvers, or why it is none. */
85
+ function proofSystemAt(program, named, variable, pinned, env) {
86
+ const fix = variable === null ? "" : ` \u2014 set ${variable} to a tlapm executable`;
87
+ const version = askOf(program, "--version", env);
88
+ if ("failed" in version)
89
+ return { kind: "none", cause: `${named} does not run as tlapm: ${version.failed}${fix}` };
90
+ const where = askOf(program, "--where", env);
91
+ if ("failed" in where)
92
+ return { kind: "none", cause: `${named} does not run as tlapm: ${where.failed}${fix}` };
93
+ if (!isDir(where.said)) {
94
+ return { kind: "none", cause: `${named} names ${where.said} as its standard modules, which is no folder${fix}` };
95
+ }
96
+ return { kind: "found", program, version: version.said, stdlib: where.said, solvers: askSolvers(program, env), pinned, variable };
97
+ }
98
+ /** The file the variable names, used as it is, and named in a result
99
+ * as not a pinned copy. */
100
+ const fromVariable = (env) => {
101
+ const named = env[TLAPM_VARIABLE]?.trim();
102
+ if (!named)
103
+ return null;
104
+ const program = resolve(named);
105
+ if (!isFile(program)) {
106
+ return { kind: "none", cause: `${TLAPM_VARIABLE} names ${named}, which is no file \u2014 set it to a tlapm executable` };
107
+ }
108
+ return proofSystemAt(program, `${TLAPM_VARIABLE} (${named})`, TLAPM_VARIABLE, false, env);
109
+ };
110
+ /** Where Spex looks for the proof system (DR-252): the variable alone,
111
+ * since no release is pinned to keep under the Spex home. */
112
+ const PLACES = [fromVariable];
113
+ /** Find the proof system. It never throws: without one the proofs
114
+ * are not accepted, and the rest of a guard is checked all the same. */
115
+ export function findProofSystem(env = process.env) {
116
+ for (const place of PLACES) {
117
+ const found = place(env);
118
+ if (found !== null)
119
+ return found;
120
+ }
121
+ return { kind: "none", cause: NONE };
122
+ }
123
+ /** The words of the command line after the program, for the proof
124
+ * file `<proofs>.tla` and the module of its statements `<proved>.tla`
125
+ * in the folder it runs in. Every path is relative to that folder. */
126
+ export function tlapmArgs(proofs, proved) {
127
+ return ["--strict", "--cache-dir", "cache", `${proofs}.tla`, `${proved}.tla`];
128
+ }
129
+ /** `File "./<module>.tla", line L, character(s) C…` as a place. */
130
+ function placeOf(line) {
131
+ const found = /File "(?:\.\/)?([^"]+?)\.tla", line (\d+), characters? (\d+)/.exec(line);
132
+ return found === null ? null : { module: found[1], line: Number(found[2]), col: Number(found[3]) };
133
+ }
134
+ /**
135
+ * Read what tlapm printed, on both its outputs in order, for the
136
+ * modules it was given. They are proved only where it exited 0 and,
137
+ * for each module, printed the line of the module's span followed by
138
+ * `[INFO]: All K obligation(s) proved.` with K at least 1, and
139
+ * printed no line of an error, of a proof omitted or missing, or of a
140
+ * proof incomplete.
141
+ */
142
+ export function tlapmVerdict(printed, status, modules) {
143
+ const lines = printed.replace(/\r\n/g, "\n").split("\n");
144
+ for (const [at, line] of lines.entries()) {
145
+ if (line.startsWith("[ERROR]: Could not prove or check")) {
146
+ const before = lines.slice(0, at).reverse().find((one) => one.startsWith("File "));
147
+ return { kind: "not proved", what: "failed", place: before === undefined ? null : placeOf(before), words: line.slice(9).trim() };
148
+ }
149
+ }
150
+ for (const line of lines) {
151
+ if (line.startsWith("Omitted proof at "))
152
+ return { kind: "not proved", what: "omitted", place: placeOf(line), words: line };
153
+ if (line.startsWith("Missing proof at "))
154
+ return { kind: "not proved", what: "missing", place: placeOf(line), words: line };
155
+ }
156
+ const bad = lines.find((line) => line.startsWith("[ERROR]:") || line.startsWith("Proof incomplete"));
157
+ if (bad !== undefined)
158
+ return { kind: "not proved", what: "said", place: null, words: bad.replace(/^\[ERROR\]:\s*/, "") };
159
+ if (status !== 0) {
160
+ // Its own words, not a line of the stack it prints under them.
161
+ const words = lines.map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("(*") && !STACK_LINE.test(line)).at(-1) ?? "";
162
+ return { kind: "not proved", what: "said", place: null, words: `it ${endedAs(status)}${words === "" ? "" : `: ${words}`}` };
163
+ }
164
+ for (const module of modules) {
165
+ const span = new RegExp(`^File "\\./${module.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\.tla", line \\d+, character \\d+ to line \\d+, character \\d+:$`);
166
+ const at = lines.findIndex((line, index) => span.test(line) && /^\[INFO\]: All [1-9]\d* obligations? proved\.$/.test(lines[index + 1] ?? ""));
167
+ if (at < 0)
168
+ return { kind: "not proved", what: "said", place: null, words: `it did not report every obligation of ${module} proved` };
169
+ }
170
+ return { kind: "proved" };
171
+ }
172
+ //# sourceMappingURL=tlapm.js.map
@@ -0,0 +1,191 @@
1
+ import { type Tla } from "./tla.js";
2
+ import { type ProofSystem } from "./tlapm.js";
3
+ /** The one TLC that Spex pins. */
4
+ export declare const TLC_PIN: {
5
+ readonly version: "2.19";
6
+ readonly release: "v1.7.4";
7
+ readonly url: "https://github.com/tlaplus/tlaplus/releases/download/v1.7.4/tla2tools.jar";
8
+ readonly sha256: "936a262061c914694dfd669a543be24573c45d5aa0ff20a8b96b23d01e050e88";
9
+ };
10
+ /** What a run needs beside the project. */
11
+ export type Tools = {
12
+ /** The Java program. */
13
+ java: string;
14
+ /** Its version, as it names it. */
15
+ javaVersion: string;
16
+ /** The jar holding TLC, as an absolute path. */
17
+ jar: string;
18
+ /** The jar's bytes are the pinned release's. */
19
+ pinned: boolean;
20
+ /** The proof system, or why there is none: without one a guard is
21
+ * checked all the same, and its proofs are not accepted. */
22
+ proof: ProofSystem;
23
+ };
24
+ /** The environment TLC and `java -version` run in. */
25
+ export declare function javaEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
26
+ /**
27
+ * Find Java: `$JAVA_HOME/bin/java` where that file is there, else
28
+ * `java` on PATH. Throws a GuardError saying what to install or set.
29
+ */
30
+ export declare function findJava(env?: NodeJS.ProcessEnv): {
31
+ java: string;
32
+ javaVersion: string;
33
+ };
34
+ /** Where the home keeps its copy of the pinned jar. */
35
+ export declare function homeJar(env?: NodeJS.ProcessEnv): string;
36
+ /**
37
+ * Download `pin.url` to `dest`, once: the bytes are kept only where
38
+ * their SHA-256 is `pin.sha256`. Throws a GuardError saying what to
39
+ * do where the download fails or gives other bytes; nothing is then
40
+ * left at `dest`.
41
+ */
42
+ export declare function downloadJar(pin: {
43
+ version: string;
44
+ url: string;
45
+ sha256: string;
46
+ }, dest: string, env?: NodeJS.ProcessEnv): Promise<void>;
47
+ /**
48
+ * Find the jar: the one `SPEX_TLC_JAR` names where it is set, else
49
+ * the home's copy of the pinned release, downloaded once and checked
50
+ * where the home has none. Throws a GuardError saying what to set.
51
+ */
52
+ export declare function findJar(env?: NodeJS.ProcessEnv): Promise<{
53
+ jar: string;
54
+ pinned: boolean;
55
+ }>;
56
+ /** Find Java, the jar and the proof system. Throws a GuardError
57
+ * saying what to install or set where Java or the jar is not there;
58
+ * a proof system that is not there is said in `proof`. */
59
+ export declare function findTools(env?: NodeJS.ProcessEnv): Promise<Tools>;
60
+ /** One message of TLC's `-tool` output. */
61
+ export type Message = {
62
+ code: number;
63
+ severity: number;
64
+ text: string;
65
+ };
66
+ /** One run of TLC, as it ended. */
67
+ export type TlcRun = {
68
+ module: string;
69
+ /** Its exit status; null where it was stopped or never started. */
70
+ status: number | null;
71
+ /** It was stopped at the time limit. */
72
+ timedOut: boolean;
73
+ /** Why it could not start, where it could not. */
74
+ failed: string | null;
75
+ /** The end of what the JVM wrote on standard error. */
76
+ errors: string;
77
+ stdout: string;
78
+ messages: Message[];
79
+ /** What the module printed with PrintT. */
80
+ user: string;
81
+ /** The state dump, where one was asked for, the run was not
82
+ * stopped at the time limit and the dump could be read. */
83
+ dump: string | null;
84
+ /** Why the state dump could not be read, where it could not. */
85
+ unread: string | null;
86
+ /** The command as run, the program first; its working folder is
87
+ * the run's own. */
88
+ command: string[];
89
+ };
90
+ /** The words of the command line after the program, for `module` in
91
+ * the folder TLC runs in. Every path but the jar's is relative to
92
+ * that folder, so the same line runs again anywhere. */
93
+ export declare function tlcArgs(jar: string, module: string, dump: boolean): string[];
94
+ /**
95
+ * Run TLC once on `<module>.tla` with `<module>.cfg` in `folder`,
96
+ * which holds them and every module they load and is used by no other
97
+ * run. The run is stopped at `seconds`.
98
+ */
99
+ export declare function runTlc(tools: Tools, folder: string, module: string, options: {
100
+ dump?: boolean;
101
+ seconds: number;
102
+ env?: NodeJS.ProcessEnv;
103
+ }): Promise<TlcRun>;
104
+ /** The messages of `-tool` output, in order. An error's text can hold
105
+ * another message, so the codes are paired. */
106
+ export declare function messagesOf(stdout: string): Message[];
107
+ /** TLC's version, from its version line (message 2262): `2.19`. */
108
+ export declare function versionOf(run: TlcRun): string | null;
109
+ /** Whether TLC got past the model's start: it reports the initial
110
+ * states computed (message 2190). */
111
+ export declare function pastStart(run: TlcRun): boolean;
112
+ /**
113
+ * What the JVM wrote on standard error, on one line: its first two
114
+ * lines that are no line of a stack. Java says why it could not run
115
+ * TLC at the top, before any stack. Empty where it wrote nothing.
116
+ */
117
+ export declare function javaWords(errors: string): string;
118
+ /** The modules TLC reports loading, by name, in its order. */
119
+ export declare function loadedModules(run: TlcRun): string[];
120
+ /** One thing the parser said of a module that does not parse. */
121
+ export type ParseFault = {
122
+ module: string | null;
123
+ line: number | null;
124
+ col: number | null;
125
+ message: string;
126
+ };
127
+ /**
128
+ * What TLC's parser said where the modules did not parse (exit 150):
129
+ * each error with its module, line and column where it names them.
130
+ * Empty where it said nothing this reads.
131
+ */
132
+ export declare function parseFaults(run: TlcRun): ParseFault[];
133
+ /**
134
+ * What TLC's parser said of modules that do not parse or do not
135
+ * mean anything, as it prints it, within TLC or run alone
136
+ * (`tla2sany.SANY`): each error with its module, line and column where
137
+ * it names them. Empty where it said nothing this reads.
138
+ */
139
+ export declare function parserFaults(printed: string): ParseFault[];
140
+ /** A place TLC names in a module. */
141
+ export type Place = {
142
+ module: string;
143
+ line: number;
144
+ col: number;
145
+ };
146
+ /** What TLC said where it could not evaluate an expression. */
147
+ export type EvalFault = {
148
+ /** TLC's own words, on one line. */
149
+ message: string;
150
+ /** The line of the `ASSUME` it was evaluating, where it names one. */
151
+ assume: number | null;
152
+ /** The places it names, the innermost last. */
153
+ places: Place[];
154
+ };
155
+ /**
156
+ * TLC's first error that is not a violated invariant: its message
157
+ * and the places it names. Null where it reported none.
158
+ */
159
+ export declare function evalFault(run: TlcRun): EvalFault | null;
160
+ /**
161
+ * The first assumption TLC found false (message 2104), by its module
162
+ * and the line its body starts on, or null. TLC names the place of
163
+ * the body only, never the assumption's name, and stops at the first.
164
+ */
165
+ export declare function falseAssumption(run: TlcRun): {
166
+ module: string;
167
+ line: number;
168
+ } | null;
169
+ /** The violated invariant's name (message 2110), or null. */
170
+ export declare function violated(run: TlcRun): string | null;
171
+ /** The states of the sequence TLC printed (messages 2217), in order,
172
+ * each with its variables. */
173
+ export declare function traceOf(run: TlcRun): Record<string, Tla>[];
174
+ /** The states TLC left on its queue (message 2199), whether it
175
+ * reported its search complete (2193), and its own estimate of the
176
+ * chance it missed a state. */
177
+ export type Stats = {
178
+ left: number | null;
179
+ complete: boolean;
180
+ collision: string | null;
181
+ };
182
+ export declare function statsOf(run: TlcRun): Stats;
183
+ /** Whether a run of the model checker ended complete: by its exit
184
+ * status and its messages, with no state left. */
185
+ export declare function completed(run: TlcRun): boolean;
186
+ /** What the module printed with PrintT, as values in the order
187
+ * printed. */
188
+ export declare function printed(run: TlcRun): Tla[];
189
+ /** The states of a state dump, in the order TLC found them, each
190
+ * with its variables. */
191
+ export declare function dumpStates(dump: string): Record<string, Tla>[];