@visulima/vis 4.1.8 → 4.1.9

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.
package/index.d.ts CHANGED
@@ -7,43 +7,43 @@
7
7
  * the bitset.
8
8
  */
9
9
  export declare class OsvBloomHandle {
10
- /**
11
- * `n` field from the filter header — entry count the upstream
12
- * builder inserted. Exposed for `vis advisories bloom status`.
13
- */
14
- get entriesInserted(): number;
15
- /**
16
- * `m` field — bit count. Returned as a decimal string so the full
17
- * u64 round-trips without JS-Number precision loss; today's filter
18
- * is ~3.1M bits but the wire format reserves 64-bit headroom.
19
- */
20
- get bitCountString(): string;
21
- /** `k` field — hash-function count per probe. */
22
- get hashCount(): number;
23
- /**
24
- * `built_at_unix_seconds` — UNIX seconds the upstream builder
25
- * recorded, as a decimal string. JS reconstructs via
26
- * `new Date(Number(s) * 1000)`. Use this in status output rather
27
- * than the local fetch time.
28
- */
29
- get builtAtUnixSecondsString(): string;
30
- /**
31
- * `format_version` — currently 1. Surfaced so JS can flag a
32
- * version-mismatch warning without re-decoding.
33
- */
34
- get formatVersion(): number;
10
+ /**
11
+ * `n` field from the filter header — entry count the upstream
12
+ * builder inserted. Exposed for `vis advisories bloom status`.
13
+ */
14
+ get entriesInserted(): number
15
+ /**
16
+ * `m` field — bit count. Returned as a decimal string so the full
17
+ * u64 round-trips without JS-Number precision loss; today's filter
18
+ * is ~3.1M bits but the wire format reserves 64-bit headroom.
19
+ */
20
+ get bitCountString(): string
21
+ /** `k` field — hash-function count per probe. */
22
+ get hashCount(): number
23
+ /**
24
+ * `built_at_unix_seconds` — UNIX seconds the upstream builder
25
+ * recorded, as a decimal string. JS reconstructs via
26
+ * `new Date(Number(s) * 1000)`. Use this in status output rather
27
+ * than the local fetch time.
28
+ */
29
+ get builtAtUnixSecondsString(): string
30
+ /**
31
+ * `format_version` — currently 1. Surfaced so JS can flag a
32
+ * version-mismatch warning without re-decoding.
33
+ */
34
+ get formatVersion(): number
35
35
  }
36
36
 
37
37
  export interface AddOptions {
38
- packages: Array<string>;
39
- saveDev: boolean;
40
- exact: boolean;
41
- peer: boolean;
42
- optional: boolean;
43
- global: boolean;
44
- workspace: boolean;
45
- workspaceRoot: boolean;
46
- filter: Array<string>;
38
+ packages: Array<string>
39
+ saveDev: boolean
40
+ exact: boolean
41
+ peer: boolean
42
+ optional: boolean
43
+ global: boolean
44
+ workspace: boolean
45
+ workspaceRoot: boolean
46
+ filter: Array<string>
47
47
  }
48
48
 
49
49
  /**
@@ -51,57 +51,57 @@ export interface AddOptions {
51
51
  * zip → JSON → INSERT pipeline can take seconds; we run it on a libuv worker
52
52
  * so the main JS thread is free.
53
53
  */
54
- export declare function advisoriesIngest(options: AdvisoryIngestOptions, onProgress: (current: number, total: number) => void): Promise<AdvisoryIngestResult>;
54
+ export declare function advisoriesIngest(options: AdvisoryIngestOptions, onProgress: (current: number, total: number) => void): Promise<AdvisoryIngestResult>
55
55
 
56
56
  /**
57
57
  * Synchronous query path. Returns one `AdvisoryQueryResult` per input,
58
58
  * preserving order, so callers can zip back to their lockfile rows by index.
59
59
  */
60
- export declare function advisoriesQuery(dbPath: string, queries: Array<AdvisoryQuery>): Array<AdvisoryQueryResult>;
60
+ export declare function advisoriesQuery(dbPath: string, queries: Array<AdvisoryQuery>): Array<AdvisoryQueryResult>
61
61
 
62
- export declare function advisoriesStatus(dbPath: string): AdvisoryDbStatus;
62
+ export declare function advisoriesStatus(dbPath: string): AdvisoryDbStatus
63
63
 
64
64
  export interface AdvisoryDbStatus {
65
- exists: boolean;
66
- ecosystems: Array<AdvisoryEcosystemStatus>;
67
- sizeBytes: number;
68
- schemaVersion: number;
65
+ exists: boolean
66
+ ecosystems: Array<AdvisoryEcosystemStatus>
67
+ sizeBytes: number
68
+ schemaVersion: number
69
69
  }
70
70
 
71
71
  export interface AdvisoryEcosystemStatus {
72
- name: string;
73
- advisoryCount: number;
74
- lastSyncIso: string;
75
- manifestEtag?: string;
72
+ name: string
73
+ advisoryCount: number
74
+ lastSyncIso: string
75
+ manifestEtag?: string
76
76
  }
77
77
 
78
78
  export interface AdvisoryIngestOptions {
79
- /** Path to a previously-downloaded OSV dump zip on disk. */
80
- zipPath: string;
81
- dbPath: string;
82
- ecosystem: string;
83
- /**
84
- * HTTP ETag header to write into the `manifest_etag` meta row for this
85
- * ecosystem. `null` when the server didn't send one.
86
- */
87
- manifestEtag?: string;
79
+ /** Path to a previously-downloaded OSV dump zip on disk. */
80
+ zipPath: string
81
+ dbPath: string
82
+ ecosystem: string
83
+ /**
84
+ * HTTP ETag header to write into the `manifest_etag` meta row for this
85
+ * ecosystem. `null` when the server didn't send one.
86
+ */
87
+ manifestEtag?: string
88
88
  }
89
89
 
90
90
  export interface AdvisoryIngestResult {
91
- advisoriesIngested: number;
92
- durationMs: number;
91
+ advisoriesIngested: number
92
+ durationMs: number
93
93
  }
94
94
 
95
95
  export interface AdvisoryQuery {
96
- ecosystem: string;
97
- name: string;
98
- version: string;
96
+ ecosystem: string
97
+ name: string
98
+ version: string
99
99
  }
100
100
 
101
101
  export interface AdvisoryQueryResult {
102
- name: string;
103
- version: string;
104
- vulnerabilities: Array<NativeVulnerabilityJs>;
102
+ name: string
103
+ version: string
104
+ vulnerabilities: Array<NativeVulnerabilityJs>
105
105
  }
106
106
 
107
107
  /**
@@ -110,15 +110,15 @@ export interface AdvisoryQueryResult {
110
110
  * migrated `.pre-commit-config.yaml` files — anything outside this set
111
111
  * (and outside the vis-specific overlay) is surfaced as a warning.
112
112
  */
113
- export declare function allKnownTags(): Array<string>;
113
+ export declare function allKnownTags(): Array<string>
114
114
 
115
115
  export interface CleanResult {
116
- /** Directories that were removed */
117
- removed: Array<string>;
118
- /** Directories that failed to remove (with error messages) */
119
- errors: Array<string>;
120
- /** Lockfiles that were removed (when --lockfile flag used) */
121
- lockfilesRemoved: Array<string>;
116
+ /** Directories that were removed */
117
+ removed: Array<string>
118
+ /** Directories that failed to remove (with error messages) */
119
+ errors: Array<string>
120
+ /** Lockfiles that were removed (when --lockfile flag used) */
121
+ lockfilesRemoved: Array<string>
122
122
  }
123
123
 
124
124
  /**
@@ -129,21 +129,21 @@ export interface CleanResult {
129
129
  *
130
130
  * When `remove_lockfile` is true, also removes lockfiles from the root.
131
131
  */
132
- export declare function cleanWorkspace(root: string, removeLockfile: boolean): CleanResult;
132
+ export declare function cleanWorkspace(root: string, removeLockfile: boolean): CleanResult
133
133
 
134
134
  export interface DetectedPackageManager {
135
- /** The package manager name: "pnpm", "npm", "yarn", "bun", or "deno" */
136
- name: string;
137
- /** The version string from packageManager field, or None if unknown */
138
- version?: string;
139
- /**
140
- * Build metadata (sha256 hash) appended to packageManager field by
141
- * corepack. `parts[1].split('+').next()` strips it from `version`;
142
- * this field preserves it for callers that want to verify the pin.
143
- */
144
- buildMeta?: string;
145
- /** Whether this is a monorepo/workspace */
146
- isWorkspace: boolean;
135
+ /** The package manager name: "pnpm", "npm", "yarn", "bun", or "deno" */
136
+ name: string
137
+ /** The version string from packageManager field, or None if unknown */
138
+ version?: string
139
+ /**
140
+ * Build metadata (sha256 hash) appended to packageManager field by
141
+ * corepack. `parts[1].split('+').next()` strips it from `version`;
142
+ * this field preserves it for callers that want to verify the pin.
143
+ */
144
+ buildMeta?: string
145
+ /** Whether this is a monorepo/workspace */
146
+ isWorkspace: boolean
147
147
  }
148
148
 
149
149
  /**
@@ -156,7 +156,7 @@ export interface DetectedPackageManager {
156
156
  *
157
157
  * Returns `napi::Result` so any I/O errors surface as JS exceptions.
158
158
  */
159
- export declare function detectPackageManager(cwd: string, opts?: DetectPackageManagerOptions | undefined | null): DetectedPackageManager;
159
+ export declare function detectPackageManager(cwd: string, opts?: DetectPackageManagerOptions | undefined | null): DetectedPackageManager
160
160
 
161
161
  /**
162
162
  * Options controlling which detection sources to consult.
@@ -167,40 +167,40 @@ export declare function detectPackageManager(cwd: string, opts?: DetectPackageMa
167
167
  * `{}` enables every source.
168
168
  */
169
169
  export interface DetectPackageManagerOptions {
170
- /** Skip reading the `packageManager` field in package.json. */
171
- ignorePackageJson?: boolean;
172
- /** Skip lockfile walk (pnpm-lock.yaml, yarn.lock, …). */
173
- ignoreLockFile?: boolean;
174
- /**
175
- * Skip the `npm_config_user_agent` env-var fallback. Set by every
176
- * PM when running scripts; lets a tool spawned from `pnpm run x`
177
- * know it's pnpm even without a lockfile.
178
- */
179
- ignoreArgv?: boolean;
170
+ /** Skip reading the `packageManager` field in package.json. */
171
+ ignorePackageJson?: boolean
172
+ /** Skip lockfile walk (pnpm-lock.yaml, yarn.lock, …). */
173
+ ignoreLockFile?: boolean
174
+ /**
175
+ * Skip the `npm_config_user_agent` env-var fallback. Set by every
176
+ * PM when running scripts; lets a tool spawned from `pnpm run x`
177
+ * know it's pnpm even without a lockfile.
178
+ */
179
+ ignoreArgv?: boolean
180
180
  }
181
181
 
182
182
  export interface DlxOptions {
183
- package: string;
184
- args: Array<string>;
185
- additionalPackages: Array<string>;
186
- shellMode: boolean;
187
- silent: boolean;
183
+ package: string
184
+ args: Array<string>
185
+ additionalPackages: Array<string>
186
+ shellMode: boolean
187
+ silent: boolean
188
188
  }
189
189
 
190
190
  export interface EditorconfigDefaults {
191
- indent?: string;
192
- lineEnding?: string;
191
+ indent?: string
192
+ lineEnding?: string
193
193
  }
194
194
 
195
195
  export interface ExecOptions {
196
- command: string;
197
- args: Array<string>;
198
- shellMode: boolean;
199
- recursive: boolean;
200
- workspaceRoot: boolean;
201
- parallel: boolean;
202
- reverse: boolean;
203
- filter: Array<string>;
196
+ command: string
197
+ args: Array<string>
198
+ shellMode: boolean
199
+ recursive: boolean
200
+ workspaceRoot: boolean
201
+ parallel: boolean
202
+ reverse: boolean
203
+ filter: Array<string>
204
204
  }
205
205
 
206
206
  /**
@@ -211,33 +211,33 @@ export interface ExecOptions {
211
211
  * Returns `napi::Result<ExecResult>` -- throws a JS error for disallowed
212
212
  * binaries or spawn failures, returns ExecResult with exit code otherwise.
213
213
  */
214
- export declare function execPmCommand(bin: string, args: Array<string>, cwd: string): ExecResult;
214
+ export declare function execPmCommand(bin: string, args: Array<string>, cwd: string): ExecResult
215
215
 
216
216
  /**
217
217
  * Executes a package manager command with inherited stdio (interactive).
218
218
  * Returns exit code. Throws JS error for disallowed binaries or spawn failures.
219
219
  */
220
- export declare function execPmCommandInteractive(bin: string, args: Array<string>, cwd: string): number;
220
+ export declare function execPmCommandInteractive(bin: string, args: Array<string>, cwd: string): number
221
221
 
222
222
  export interface ExecResult {
223
- code: number;
224
- stdout: string;
225
- stderr: string;
223
+ code: number
224
+ stdout: string
225
+ stderr: string
226
226
  }
227
227
 
228
228
  export interface InstallOptions {
229
- frozenLockfile: boolean;
230
- prod: boolean;
231
- dev: boolean;
232
- noOptional: boolean;
233
- force: boolean;
234
- ignoreScripts: boolean;
235
- lockfileOnly: boolean;
236
- offline: boolean;
237
- silent: boolean;
238
- recursive: boolean;
239
- workspaceRoot: boolean;
240
- filter: Array<string>;
229
+ frozenLockfile: boolean
230
+ prod: boolean
231
+ dev: boolean
232
+ noOptional: boolean
233
+ force: boolean
234
+ ignoreScripts: boolean
235
+ lockfileOnly: boolean
236
+ offline: boolean
237
+ silent: boolean
238
+ recursive: boolean
239
+ workspaceRoot: boolean
240
+ filter: Array<string>
241
241
  }
242
242
 
243
243
  /**
@@ -258,38 +258,38 @@ export interface InstallOptions {
258
258
  * 6 — added `transform_ts`: oxc-based TS/JSX → JS transpile for the runtime
259
259
  * loader (config / generators / `vis x`), replacing the `jiti` dependency.
260
260
  */
261
- export const NATIVE_BINDING_VERSION: number;
261
+ export const NATIVE_BINDING_VERSION: number
262
262
 
263
263
  export interface NativeSortPackageJsonOptions {
264
- /** Enable formatted output with newlines (default: true) */
265
- pretty?: boolean;
266
- /** Alphabetize script commands (default: false) */
267
- sortScripts?: boolean;
264
+ /** Enable formatted output with newlines (default: true) */
265
+ pretty?: boolean
266
+ /** Alphabetize script commands (default: false) */
267
+ sortScripts?: boolean
268
268
  }
269
269
 
270
270
  export interface NativeVulnerabilityJs {
271
- id: string;
272
- aliases: Array<string>;
273
- /** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
274
- severity: string;
275
- summary: string;
276
- fixedVersions: Array<string>;
277
- cvssScore?: number;
271
+ id: string
272
+ aliases: Array<string>
273
+ /** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
274
+ severity: string
275
+ summary: string
276
+ fixedVersions: Array<string>
277
+ cvssScore?: number
278
278
  }
279
279
 
280
280
  export interface OsvBloomBatchHit {
281
- /**
282
- * Index into the input batch array. Lets JS reconstruct which
283
- * lockfile row triggered the hit without re-walking the inputs.
284
- */
285
- index: number;
286
- name: string;
287
- version: string;
281
+ /**
282
+ * Index into the input batch array. Lets JS reconstruct which
283
+ * lockfile row triggered the hit without re-walking the inputs.
284
+ */
285
+ index: number
286
+ name: string
287
+ version: string
288
288
  }
289
289
 
290
290
  export interface OsvBloomBatchQuery {
291
- name: string;
292
- version: string;
291
+ name: string
292
+ version: string
293
293
  }
294
294
 
295
295
  /**
@@ -297,7 +297,7 @@ export interface OsvBloomBatchQuery {
297
297
  * Returns an opaque handle; reuse it for every probe call until the
298
298
  * JS-side cache invalidates.
299
299
  */
300
- export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
300
+ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
301
301
 
302
302
  /**
303
303
  * Probe a single `(name, version)` pair. Returns `true` when the pair
@@ -309,7 +309,7 @@ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
309
309
  * unbounded ranges still match. Unparseable versions probe only the
310
310
  * wildcard bucket.
311
311
  */
312
- export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean;
312
+ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean
313
313
 
314
314
  /**
315
315
  * Batch variant. Returns only the hits, with their original index — the
@@ -317,20 +317,20 @@ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, vers
317
317
  * (`Vec<bool>` of length N) would dominate the cost. Order of returned
318
318
  * hits matches input order.
319
319
  */
320
- export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>;
320
+ export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>
321
321
 
322
322
  export interface OutdatedOptions {
323
- packages: Array<string>;
324
- long: boolean;
325
- format: string;
326
- recursive: boolean;
327
- filter: Array<string>;
328
- workspaceRoot: boolean;
329
- prod: boolean;
330
- dev: boolean;
331
- noOptional: boolean;
332
- compatible: boolean;
333
- global: boolean;
323
+ packages: Array<string>
324
+ long: boolean
325
+ format: string
326
+ recursive: boolean
327
+ filter: Array<string>
328
+ workspaceRoot: boolean
329
+ prod: boolean
330
+ dev: boolean
331
+ noOptional: boolean
332
+ compatible: boolean
333
+ global: boolean
334
334
  }
335
335
 
336
336
  /**
@@ -340,33 +340,33 @@ export interface OutdatedOptions {
340
340
  * pre-commit's behavior of treating "no shebang" as "no interpreter
341
341
  * tags" rather than as an error.
342
342
  */
343
- export declare function parseShebang(path: string): Array<string>;
343
+ export declare function parseShebang(path: string): Array<string>
344
344
 
345
345
  export interface ProgressPayload {
346
- current: number;
347
- total: number;
346
+ current: number
347
+ total: number
348
348
  }
349
349
 
350
350
  export interface RemoveOptions {
351
- packages: Array<string>;
352
- saveDev: boolean;
353
- global: boolean;
354
- recursive: boolean;
355
- workspaceRoot: boolean;
356
- filter: Array<string>;
351
+ packages: Array<string>
352
+ saveDev: boolean
353
+ global: boolean
354
+ recursive: boolean
355
+ workspaceRoot: boolean
356
+ filter: Array<string>
357
357
  }
358
358
 
359
- export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand;
359
+ export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand
360
360
 
361
361
  export interface ResolvedCommand {
362
- bin: string;
363
- args: Array<string>;
364
- warnings: Array<string>;
362
+ bin: string
363
+ args: Array<string>
364
+ warnings: Array<string>
365
365
  }
366
366
 
367
- export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand;
367
+ export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand
368
368
 
369
- export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand;
369
+ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand
370
370
 
371
371
  /**
372
372
  * Resolves `.editorconfig` defaults for `file_path` using the spec-compliant
@@ -376,27 +376,27 @@ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions
376
376
  * configured. Parse / IO failures collapse to an empty result so callers can
377
377
  * fall back to content sniffing without try/catch noise.
378
378
  */
379
- export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults;
379
+ export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults
380
380
 
381
- export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand;
381
+ export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand
382
382
 
383
- export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand;
383
+ export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand
384
384
 
385
- export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand;
385
+ export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand
386
386
 
387
- export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand;
387
+ export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand
388
388
 
389
- export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand;
389
+ export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand
390
390
 
391
- export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand;
391
+ export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand
392
392
 
393
- export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand;
393
+ export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand
394
394
 
395
- export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand;
395
+ export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand
396
396
 
397
- export declare function sortPackageJsonString(contents: string): string;
397
+ export declare function sortPackageJsonString(contents: string): string
398
398
 
399
- export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string;
399
+ export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string
400
400
 
401
401
  /**
402
402
  * Classifies a single file path using `prek-identify`. Returns the set of
@@ -405,7 +405,7 @@ export declare function sortPackageJsonStringWithOptions(contents: string, optio
405
405
  * don't need try/catch — the vis hook runtime treats "unclassified" and
406
406
  * "no tags" identically.
407
407
  */
408
- export declare function tagsFromPath(path: string): Array<string>;
408
+ export declare function tagsFromPath(path: string): Array<string>
409
409
 
410
410
  /**
411
411
  * Batch variant of [`tags_from_path`]. Returns one tag list per input
@@ -414,11 +414,11 @@ export declare function tagsFromPath(path: string): Array<string>;
414
414
  * (the same behavior pre-commit applies when stat-ing a deleted staged
415
415
  * file mid-run).
416
416
  */
417
- export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>;
417
+ export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>
418
418
 
419
419
  export interface TransformResult {
420
- /** Transpiled JavaScript source. */
421
- code: string;
420
+ /** Transpiled JavaScript source. */
421
+ code: string
422
422
  }
423
423
 
424
424
  /**
@@ -426,25 +426,25 @@ export interface TransformResult {
426
426
  * source dialect by extension (`.ts`/`.tsx`/`.mts`/`.cts`/`.js`/...). Returns the
427
427
  * emitted JS; throws on a fatal parse failure.
428
428
  */
429
- export declare function transformTs(filename: string, source: string): TransformResult;
429
+ export declare function transformTs(filename: string, source: string): TransformResult
430
430
 
431
431
  /**
432
432
  * Finds the full path to a binary using `which`-style lookup.
433
433
  * Returns None if not found.
434
434
  */
435
- export declare function whichBin(name: string): string | null;
435
+ export declare function whichBin(name: string): string | null
436
436
 
437
437
  export interface WhyOptions {
438
- packages: Array<string>;
439
- json: boolean;
440
- long: boolean;
441
- parseable: boolean;
442
- recursive: boolean;
443
- dev: boolean;
444
- prod: boolean;
445
- noOptional: boolean;
446
- global: boolean;
447
- /** Depth limit. Uses Option<i32> directly (napi supports it). */
448
- depth?: number;
449
- filter: Array<string>;
438
+ packages: Array<string>
439
+ json: boolean
440
+ long: boolean
441
+ parseable: boolean
442
+ recursive: boolean
443
+ dev: boolean
444
+ prod: boolean
445
+ noOptional: boolean
446
+ global: boolean
447
+ /** Depth limit. Uses Option<i32> directly (napi supports it). */
448
+ depth?: number
449
+ filter: Array<string>
450
450
  }