@tinyshed/tinystore 0.1.0 → 0.1.1

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 (69) hide show
  1. package/dist/blobs.d.ts +1 -1
  2. package/dist/blobs.js +13 -5
  3. package/dist/cancel.d.ts +16 -2
  4. package/dist/cancel.js +36 -2
  5. package/dist/channels.js +20 -6
  6. package/dist/config.d.ts +49 -1
  7. package/dist/config.js +86 -7
  8. package/dist/connection.d.ts +52 -10
  9. package/dist/connection.js +305 -73
  10. package/dist/handles.d.ts +10 -1
  11. package/dist/handles.js +27 -4
  12. package/dist/index.d.ts +4 -4
  13. package/dist/jobs.d.ts +33 -1
  14. package/dist/jobs.js +45 -0
  15. package/dist/logger.d.ts +22 -10
  16. package/dist/logger.js +118 -28
  17. package/dist/metrics.d.ts +19 -0
  18. package/dist/metrics.js +22 -1
  19. package/dist/query.js +33 -9
  20. package/dist/records.d.ts +30 -2
  21. package/dist/records.js +8 -0
  22. package/dist/runtime/addon.js +3 -2
  23. package/dist/runtime/bun.js +33 -12
  24. package/dist/runtime/node.js +30 -8
  25. package/dist/runtime/pipe.d.ts +2 -0
  26. package/dist/runtime/pipe.js +45 -20
  27. package/dist/runtime/shared.d.ts +28 -4
  28. package/dist/runtime/shared.js +125 -13
  29. package/dist/runtime.d.ts +28 -6
  30. package/dist/session.d.ts +9 -5
  31. package/dist/session.js +113 -31
  32. package/dist/sql.d.ts +18 -5
  33. package/dist/sql.js +44 -11
  34. package/dist/store.d.ts +25 -11
  35. package/dist/store.js +67 -9
  36. package/dist/wire/codec.d.ts +5 -0
  37. package/dist/wire/codec.js +10 -0
  38. package/dist/wire/frame.d.ts +2 -0
  39. package/dist/wire/frame.js +4 -0
  40. package/dist/wire/msgpack.d.ts +7 -3
  41. package/dist/wire/msgpack.js +11 -4
  42. package/dist/wire/protocol.d.ts +246 -36
  43. package/dist/wire/protocol.js +387 -101
  44. package/package.json +9 -8
  45. package/src/blobs.ts +13 -5
  46. package/src/cancel.ts +44 -2
  47. package/src/channels.ts +21 -6
  48. package/src/config.ts +138 -12
  49. package/src/connection.ts +377 -77
  50. package/src/handles.ts +32 -4
  51. package/src/index.ts +5 -0
  52. package/src/jobs.ts +63 -0
  53. package/src/logger.ts +158 -40
  54. package/src/metrics.ts +46 -1
  55. package/src/query.ts +33 -13
  56. package/src/records.ts +40 -2
  57. package/src/runtime/addon.ts +3 -2
  58. package/src/runtime/bun.ts +44 -9
  59. package/src/runtime/node.ts +30 -5
  60. package/src/runtime/pipe.ts +49 -19
  61. package/src/runtime/shared.ts +137 -16
  62. package/src/runtime.ts +31 -6
  63. package/src/session.ts +129 -30
  64. package/src/sql.ts +48 -14
  65. package/src/store.ts +81 -14
  66. package/src/wire/codec.ts +11 -0
  67. package/src/wire/frame.ts +5 -0
  68. package/src/wire/msgpack.ts +11 -4
  69. package/src/wire/protocol.ts +404 -103
@@ -96,6 +96,7 @@ export declare const methods: {
96
96
  readonly 'metrics.delete': 1548;
97
97
  readonly 'metrics.flush': 1549;
98
98
  readonly 'metrics.instruments': 1550;
99
+ readonly 'metrics.ingestPrometheus': 1551;
99
100
  readonly 'records.open': 1281;
100
101
  readonly 'records.append': 1282;
101
102
  readonly 'records.list': 1283;
@@ -400,15 +401,25 @@ export declare const ConfigOpen: import("./codec.ts").Message<{
400
401
  readonly strict: readonly [4, import("./codec.ts").Codec<boolean, boolean>];
401
402
  }>;
402
403
  /**
403
- * A setting's line of explain.
404
+ * Where a value came from: its kind, and only the fields that kind names.
404
405
  */
405
- export declare const ConfigLine: import("./codec.ts").Message<{
406
- readonly path: readonly [1, import("./codec.ts").Codec<string, string>];
407
- /** as JSON, a span spelled, a secret as *** */
408
- readonly value: readonly [2, import("./codec.ts").Codec<string, string>];
409
- readonly from: readonly [3, import("./codec.ts").Codec<string, string>];
410
- /** the values it went over, newest first */
411
- readonly over: readonly [4, import("./codec.ts").Codec<string[], readonly string[]>];
406
+ export declare const ConfigOrigin: import("./codec.ts").Message<{
407
+ /** declaration, layer, file, env or change */
408
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
409
+ /** a layer's place in the list, the declaration 1 */
410
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
411
+ /** a file's path */
412
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
413
+ /** an env's variable */
414
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
415
+ /** the .env file that set the variable */
416
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
417
+ /** the file a NAME_FILE variable named */
418
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
419
+ /** a change's version */
420
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
421
+ /** when a change was made */
422
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
412
423
  }>;
413
424
  /**
414
425
  * A change of live settings, made on the version the program's value had.
@@ -507,6 +518,8 @@ export declare const StoreOptions: import("./codec.ts").Message<{
507
518
  readonly selfMetrics: readonly [13, import("./codec.ts").Codec<boolean, boolean>];
508
519
  /** with selfMetrics, leaves out the machine it runs on: its process's memory and processor, the system's */
509
520
  readonly withoutSystem: readonly [14, import("./codec.ts").Codec<boolean, boolean>];
521
+ /** the metrics series the store holds at most; 100,000 when absent */
522
+ readonly maxSeries: readonly [15, import("./codec.ts").Codec<number, number>];
510
523
  }>;
511
524
  /**
512
525
  * The last frame of a connection.
@@ -1500,7 +1513,7 @@ export declare const MetricsAggregates: import("./codec.ts").Message<{
1500
1513
  }>[]>];
1501
1514
  }>;
1502
1515
  export declare const MetricsExceeds: import("./codec.ts").Message<{
1503
- /** series, bytes read or samples decoded */
1516
+ /** series, bytes read, samples decoded or answer */
1504
1517
  readonly limit: readonly [1, import("./codec.ts").Codec<string, string>];
1505
1518
  readonly wanted: readonly [2, import("./codec.ts").Codec<number, number>];
1506
1519
  readonly bound: readonly [3, import("./codec.ts").Codec<number, number>];
@@ -1548,6 +1561,19 @@ export declare const MetricsIngest: import("./codec.ts").Message<{
1548
1561
  readonly keep: readonly [6, import("./codec.ts").Codec<number, number>];
1549
1562
  }>[]>];
1550
1563
  }>;
1564
+ /**
1565
+ * A text an exporter serves, in Prometheus' format or OpenMetrics', whose
1566
+ * series the store writes every one or none, each with labels beside its own.
1567
+ */
1568
+ export declare const MetricsExposition: import("./codec.ts").Message<{
1569
+ /** UTF-8, read a line at a time, so that an error names its line */
1570
+ readonly text: readonly [1, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
1571
+ readonly labels: readonly [2, import("./codec.ts").Codec<Record<string, string>, Record<string, string>>];
1572
+ /** of a sample the text gives no time; now unless given */
1573
+ readonly at: readonly [3, import("./codec.ts").Codec<number, number>];
1574
+ /** how long each name of the text keeps its samples */
1575
+ readonly keep: readonly [4, import("./codec.ts").Codec<number, number>];
1576
+ }>;
1551
1577
  /**
1552
1578
  * A page of names, of a name's labels or of a label's values.
1553
1579
  */
@@ -2407,11 +2433,16 @@ export declare const SqlOpen: import("./codec.ts").Message<{
2407
2433
  readonly durability: readonly [3, import("./codec.ts").Codec<string, string>];
2408
2434
  }>;
2409
2435
  /**
2410
- * A statement's text and the values of its ?s, in order.
2436
+ * A statement's text and the values of its ?s, in order. In a batch it may
2437
+ * be a call of jobs on a queue kept in the database's file instead, jobs.add
2438
+ * with its request in body and no text, which commits with the batch's rows.
2411
2439
  */
2412
2440
  export declare const SqlText: import("./codec.ts").Message<{
2413
2441
  readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
2414
2442
  readonly values: readonly [2, import("./codec.ts").Codec<(boolean | SqlValue)[], readonly import("./codec.ts").SqlArg[]>];
2443
+ /** in a batch, jobs.add: the call in body */
2444
+ readonly method: readonly [3, import("./codec.ts").Codec<number, number>];
2445
+ readonly body: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
2415
2446
  }>;
2416
2447
  /**
2417
2448
  * A statement on a database: a write, or a read answered by its columns.
@@ -2497,18 +2528,29 @@ export declare const SqlDone: import("./codec.ts").Message<{
2497
2528
  readonly lastInsertRowid: readonly [2, import("./codec.ts").Codec<bigint, number | bigint>];
2498
2529
  }>;
2499
2530
  /**
2500
- * Statements known before they run, written as one in a shared commit.
2531
+ * Writes known before they run, written as one in a shared commit: its
2532
+ * statements, and the adds of a queue kept in the database's file.
2501
2533
  */
2502
2534
  export declare const SqlBatch: import("./codec.ts").Message<{
2503
2535
  readonly handle: readonly [1, import("./codec.ts").Codec<number, number>];
2504
2536
  readonly statements: readonly [2, import("./codec.ts").Codec<Read<{
2505
2537
  readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
2506
2538
  readonly values: readonly [2, import("./codec.ts").Codec<(boolean | SqlValue)[], readonly import("./codec.ts").SqlArg[]>];
2539
+ /** in a batch, jobs.add: the call in body */
2540
+ readonly method: readonly [3, import("./codec.ts").Codec<number, number>];
2541
+ readonly body: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
2507
2542
  }>[], readonly import("./codec.ts").Written<{
2508
2543
  readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
2509
2544
  readonly values: readonly [2, import("./codec.ts").Codec<(boolean | SqlValue)[], readonly import("./codec.ts").SqlArg[]>];
2545
+ /** in a batch, jobs.add: the call in body */
2546
+ readonly method: readonly [3, import("./codec.ts").Codec<number, number>];
2547
+ readonly body: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
2510
2548
  }>[]>];
2511
2549
  }>;
2550
+ /**
2551
+ * What each write of a batch did, in their order: a job's add changed one
2552
+ * job, or none when its id was taken.
2553
+ */
2512
2554
  export declare const SqlBatched: import("./codec.ts").Message<{
2513
2555
  readonly done: readonly [1, import("./codec.ts").Codec<Read<{
2514
2556
  readonly changes: readonly [1, import("./codec.ts").Codec<number, number>];
@@ -2581,31 +2623,29 @@ export declare const ChannelsBatch: import("./codec.ts").Message<{
2581
2623
  }>[]>];
2582
2624
  }>;
2583
2625
  /**
2584
- * A config's value at a version of its changes, and where each setting's
2585
- * value came from.
2626
+ * A value a setting was given, and where it came from.
2586
2627
  */
2587
- export declare const ConfigValue: import("./codec.ts").Message<{
2588
- readonly handle: readonly [1, import("./codec.ts").Codec<number, number>];
2589
- readonly version: readonly [2, import("./codec.ts").Codec<number, number>];
2590
- /** the settings, each span its milliseconds, each secret its text */
2591
- readonly value: readonly [3, import("./codec.ts").Codec<string, string>];
2592
- readonly lines: readonly [4, import("./codec.ts").Codec<Read<{
2593
- readonly path: readonly [1, import("./codec.ts").Codec<string, string>];
2594
- /** as JSON, a span spelled, a secret as *** */
2595
- readonly value: readonly [2, import("./codec.ts").Codec<string, string>];
2596
- readonly from: readonly [3, import("./codec.ts").Codec<string, string>];
2597
- /** the values it went over, newest first */
2598
- readonly over: readonly [4, import("./codec.ts").Codec<string[], readonly string[]>];
2599
- }>[], readonly import("./codec.ts").Written<{
2600
- readonly path: readonly [1, import("./codec.ts").Codec<string, string>];
2601
- /** as JSON, a span spelled, a secret as *** */
2602
- readonly value: readonly [2, import("./codec.ts").Codec<string, string>];
2603
- readonly from: readonly [3, import("./codec.ts").Codec<string, string>];
2604
- /** the values it went over, newest first */
2605
- readonly over: readonly [4, import("./codec.ts").Codec<string[], readonly string[]>];
2606
- }>[]>];
2607
- /** what was read and not used, each with why */
2608
- readonly notes: readonly [5, import("./codec.ts").Codec<string[], readonly string[]>];
2628
+ export declare const ConfigGiven: import("./codec.ts").Message<{
2629
+ /** as JSON, a span spelled, a secret as *** */
2630
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2631
+ readonly from: readonly [2, import("./codec.ts").Message<{
2632
+ /** declaration, layer, file, env or change */
2633
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2634
+ /** a layer's place in the list, the declaration 1 */
2635
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2636
+ /** a file's path */
2637
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2638
+ /** an env's variable */
2639
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2640
+ /** the .env file that set the variable */
2641
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2642
+ /** the file a NAME_FILE variable named */
2643
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2644
+ /** a change's version */
2645
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2646
+ /** when a change was made */
2647
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2648
+ }>];
2609
2649
  }>;
2610
2650
  /**
2611
2651
  * What a call would spend of each bound, and the bound it would stop at.
@@ -2615,7 +2655,7 @@ export declare const MetricsPlan: import("./codec.ts").Message<{
2615
2655
  readonly bytes: readonly [2, import("./codec.ts").Codec<number, number>];
2616
2656
  readonly decoded: readonly [3, import("./codec.ts").Codec<number, number>];
2617
2657
  readonly exceeds: readonly [4, import("./codec.ts").Message<{
2618
- /** series, bytes read or samples decoded */
2658
+ /** series, bytes read, samples decoded or answer */
2619
2659
  readonly limit: readonly [1, import("./codec.ts").Codec<string, string>];
2620
2660
  readonly wanted: readonly [2, import("./codec.ts").Codec<number, number>];
2621
2661
  readonly bound: readonly [3, import("./codec.ts").Codec<number, number>];
@@ -2681,3 +2721,173 @@ export declare const SearchSetMany: import("./codec.ts").Message<{
2681
2721
  readonly noVector: readonly [4, import("./codec.ts").Codec<boolean, boolean>];
2682
2722
  }>[]>];
2683
2723
  }>;
2724
+ /**
2725
+ * A setting's line of explain.
2726
+ */
2727
+ export declare const ConfigLine: import("./codec.ts").Message<{
2728
+ readonly path: readonly [1, import("./codec.ts").Codec<string, string>];
2729
+ /** as JSON, a span spelled, a secret as *** */
2730
+ readonly value: readonly [2, import("./codec.ts").Codec<string, string>];
2731
+ readonly from: readonly [3, import("./codec.ts").Codec<string, string>];
2732
+ /** the values it went over, newest first */
2733
+ readonly over: readonly [4, import("./codec.ts").Codec<string[], readonly string[]>];
2734
+ /** every value it was given, newest first: its own, then the ones it went over */
2735
+ readonly given: readonly [5, import("./codec.ts").Codec<Read<{
2736
+ /** as JSON, a span spelled, a secret as *** */
2737
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2738
+ readonly from: readonly [2, import("./codec.ts").Message<{
2739
+ /** declaration, layer, file, env or change */
2740
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2741
+ /** a layer's place in the list, the declaration 1 */
2742
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2743
+ /** a file's path */
2744
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2745
+ /** an env's variable */
2746
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2747
+ /** the .env file that set the variable */
2748
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2749
+ /** the file a NAME_FILE variable named */
2750
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2751
+ /** a change's version */
2752
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2753
+ /** when a change was made */
2754
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2755
+ }>];
2756
+ }>[], readonly import("./codec.ts").Written<{
2757
+ /** as JSON, a span spelled, a secret as *** */
2758
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2759
+ readonly from: readonly [2, import("./codec.ts").Message<{
2760
+ /** declaration, layer, file, env or change */
2761
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2762
+ /** a layer's place in the list, the declaration 1 */
2763
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2764
+ /** a file's path */
2765
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2766
+ /** an env's variable */
2767
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2768
+ /** the .env file that set the variable */
2769
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2770
+ /** the file a NAME_FILE variable named */
2771
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2772
+ /** a change's version */
2773
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2774
+ /** when a change was made */
2775
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2776
+ }>];
2777
+ }>[]>];
2778
+ }>;
2779
+ /**
2780
+ * A config's value at a version of its changes, and where each setting's
2781
+ * value came from.
2782
+ */
2783
+ export declare const ConfigValue: import("./codec.ts").Message<{
2784
+ readonly handle: readonly [1, import("./codec.ts").Codec<number, number>];
2785
+ readonly version: readonly [2, import("./codec.ts").Codec<number, number>];
2786
+ /** the settings, each span its milliseconds, each secret its text */
2787
+ readonly value: readonly [3, import("./codec.ts").Codec<string, string>];
2788
+ readonly lines: readonly [4, import("./codec.ts").Codec<Read<{
2789
+ readonly path: readonly [1, import("./codec.ts").Codec<string, string>];
2790
+ /** as JSON, a span spelled, a secret as *** */
2791
+ readonly value: readonly [2, import("./codec.ts").Codec<string, string>];
2792
+ readonly from: readonly [3, import("./codec.ts").Codec<string, string>];
2793
+ /** the values it went over, newest first */
2794
+ readonly over: readonly [4, import("./codec.ts").Codec<string[], readonly string[]>];
2795
+ /** every value it was given, newest first: its own, then the ones it went over */
2796
+ readonly given: readonly [5, import("./codec.ts").Codec<Read<{
2797
+ /** as JSON, a span spelled, a secret as *** */
2798
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2799
+ readonly from: readonly [2, import("./codec.ts").Message<{
2800
+ /** declaration, layer, file, env or change */
2801
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2802
+ /** a layer's place in the list, the declaration 1 */
2803
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2804
+ /** a file's path */
2805
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2806
+ /** an env's variable */
2807
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2808
+ /** the .env file that set the variable */
2809
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2810
+ /** the file a NAME_FILE variable named */
2811
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2812
+ /** a change's version */
2813
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2814
+ /** when a change was made */
2815
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2816
+ }>];
2817
+ }>[], readonly import("./codec.ts").Written<{
2818
+ /** as JSON, a span spelled, a secret as *** */
2819
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2820
+ readonly from: readonly [2, import("./codec.ts").Message<{
2821
+ /** declaration, layer, file, env or change */
2822
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2823
+ /** a layer's place in the list, the declaration 1 */
2824
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2825
+ /** a file's path */
2826
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2827
+ /** an env's variable */
2828
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2829
+ /** the .env file that set the variable */
2830
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2831
+ /** the file a NAME_FILE variable named */
2832
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2833
+ /** a change's version */
2834
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2835
+ /** when a change was made */
2836
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2837
+ }>];
2838
+ }>[]>];
2839
+ }>[], readonly import("./codec.ts").Written<{
2840
+ readonly path: readonly [1, import("./codec.ts").Codec<string, string>];
2841
+ /** as JSON, a span spelled, a secret as *** */
2842
+ readonly value: readonly [2, import("./codec.ts").Codec<string, string>];
2843
+ readonly from: readonly [3, import("./codec.ts").Codec<string, string>];
2844
+ /** the values it went over, newest first */
2845
+ readonly over: readonly [4, import("./codec.ts").Codec<string[], readonly string[]>];
2846
+ /** every value it was given, newest first: its own, then the ones it went over */
2847
+ readonly given: readonly [5, import("./codec.ts").Codec<Read<{
2848
+ /** as JSON, a span spelled, a secret as *** */
2849
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2850
+ readonly from: readonly [2, import("./codec.ts").Message<{
2851
+ /** declaration, layer, file, env or change */
2852
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2853
+ /** a layer's place in the list, the declaration 1 */
2854
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2855
+ /** a file's path */
2856
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2857
+ /** an env's variable */
2858
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2859
+ /** the .env file that set the variable */
2860
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2861
+ /** the file a NAME_FILE variable named */
2862
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2863
+ /** a change's version */
2864
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2865
+ /** when a change was made */
2866
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2867
+ }>];
2868
+ }>[], readonly import("./codec.ts").Written<{
2869
+ /** as JSON, a span spelled, a secret as *** */
2870
+ readonly value: readonly [1, import("./codec.ts").Codec<string, string>];
2871
+ readonly from: readonly [2, import("./codec.ts").Message<{
2872
+ /** declaration, layer, file, env or change */
2873
+ readonly kind: readonly [1, import("./codec.ts").Codec<string, string>];
2874
+ /** a layer's place in the list, the declaration 1 */
2875
+ readonly place: readonly [2, import("./codec.ts").Codec<number, number>];
2876
+ /** a file's path */
2877
+ readonly path: readonly [3, import("./codec.ts").Codec<string, string>];
2878
+ /** an env's variable */
2879
+ readonly variable: readonly [4, import("./codec.ts").Codec<string, string>];
2880
+ /** the .env file that set the variable */
2881
+ readonly dotenv: readonly [5, import("./codec.ts").Codec<string, string>];
2882
+ /** the file a NAME_FILE variable named */
2883
+ readonly file: readonly [6, import("./codec.ts").Codec<string, string>];
2884
+ /** a change's version */
2885
+ readonly version: readonly [7, import("./codec.ts").Codec<number, number>];
2886
+ /** when a change was made */
2887
+ readonly at: readonly [8, import("./codec.ts").Codec<number, number>];
2888
+ }>];
2889
+ }>[]>];
2890
+ }>[]>];
2891
+ /** what was read and not used, each with why */
2892
+ readonly notes: readonly [5, import("./codec.ts").Codec<string[], readonly string[]>];
2893
+ }>;