@effected/yaml 0.12.0 → 0.13.0

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 (2) hide show
  1. package/index.d.ts +64 -64
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -5,75 +5,75 @@ import { Data, Effect, Option, Result, Schema, Stream } from "effect";
5
5
  *
6
6
  * @public
7
7
  */
8
- declare const YamlLexErrorCode: Schema.Literals<readonly ["UnexpectedCharacter", "UnterminatedString", "InvalidEscapeSequence", "InvalidUnicode", "UnterminatedBlockScalar", "UnterminatedFlowCollection", "InvalidDirective", "InvalidTagHandle", "InvalidAnchorName", "UnexpectedByteOrderMark"]>;
8
+ export declare const YamlLexErrorCode: Schema.Literals<readonly ["UnexpectedCharacter", "UnterminatedString", "InvalidEscapeSequence", "InvalidUnicode", "UnterminatedBlockScalar", "UnterminatedFlowCollection", "InvalidDirective", "InvalidTagHandle", "InvalidAnchorName", "UnexpectedByteOrderMark"]>;
9
9
  /**
10
10
  * The union of all lexer-stage error code string literals.
11
11
  *
12
12
  * @public
13
13
  */
14
- type YamlLexErrorCode = typeof YamlLexErrorCode.Type;
14
+ export type YamlLexErrorCode = typeof YamlLexErrorCode.Type;
15
15
  /**
16
16
  * Error codes emitted by the CST-parser stage.
17
17
  *
18
18
  * @public
19
19
  */
20
- declare const YamlParseErrorCode: Schema.Literals<readonly ["InvalidIndentation", "DuplicateKey", "UnexpectedToken", "MissingValue", "MissingKey", "TabIndentation", "InvalidBlockStructure", "MalformedFlowCollection", "NestingDepthExceeded"]>;
20
+ export declare const YamlParseErrorCode: Schema.Literals<readonly ["InvalidIndentation", "DuplicateKey", "UnexpectedToken", "MissingValue", "MissingKey", "TabIndentation", "InvalidBlockStructure", "MalformedFlowCollection", "NestingDepthExceeded"]>;
21
21
  /**
22
22
  * The union of all parser-stage error code string literals.
23
23
  *
24
24
  * @public
25
25
  */
26
- type YamlParseErrorCode = typeof YamlParseErrorCode.Type;
26
+ export type YamlParseErrorCode = typeof YamlParseErrorCode.Type;
27
27
  /**
28
28
  * Error codes emitted by the composer stage.
29
29
  *
30
30
  * @public
31
31
  */
32
- declare const YamlComposerErrorCode: Schema.Literals<readonly ["UndefinedAlias", "DuplicateAnchor", "CircularAlias", "UnresolvedTag", "InvalidTagValue", "AliasCountExceeded", "InvalidDirective"]>;
32
+ export declare const YamlComposerErrorCode: Schema.Literals<readonly ["UndefinedAlias", "DuplicateAnchor", "CircularAlias", "UnresolvedTag", "InvalidTagValue", "AliasCountExceeded", "InvalidDirective"]>;
33
33
  /**
34
34
  * The union of all composer-stage error code string literals.
35
35
  *
36
36
  * @public
37
37
  */
38
- type YamlComposerErrorCode = typeof YamlComposerErrorCode.Type;
38
+ export type YamlComposerErrorCode = typeof YamlComposerErrorCode.Type;
39
39
  /**
40
40
  * Error codes emitted by the stringifier (the circular-reference guard).
41
41
  *
42
42
  * @public
43
43
  */
44
- declare const YamlStringifyErrorCode: Schema.Literals<readonly ["CircularReference"]>;
44
+ export declare const YamlStringifyErrorCode: Schema.Literals<readonly ["CircularReference"]>;
45
45
  /**
46
46
  * The union of all stringifier-stage error code string literals.
47
47
  *
48
48
  * @public
49
49
  */
50
- type YamlStringifyErrorCode = typeof YamlStringifyErrorCode.Type;
50
+ export type YamlStringifyErrorCode = typeof YamlStringifyErrorCode.Type;
51
51
  /**
52
52
  * Error codes emitted by `YamlFormat.modify`'s path navigation against an
53
53
  * already-composed AST — not raised by the parser/composer/stringifier.
54
54
  *
55
55
  * @public
56
56
  */
57
- declare const YamlModifyErrorCode: Schema.Literals<readonly ["EmptyDocument", "PathNotFound", "InvalidIndex", "NotNavigable", "MultiDocumentStream", "DirectiveCarryingDocument"]>;
57
+ export declare const YamlModifyErrorCode: Schema.Literals<readonly ["EmptyDocument", "PathNotFound", "InvalidIndex", "NotNavigable", "MultiDocumentStream", "DirectiveCarryingDocument"]>;
58
58
  /**
59
59
  * The union of all modify-stage error code string literals.
60
60
  *
61
61
  * @public
62
62
  */
63
- type YamlModifyErrorCode = typeof YamlModifyErrorCode.Type;
63
+ export type YamlModifyErrorCode = typeof YamlModifyErrorCode.Type;
64
64
  /**
65
65
  * Union of all YAML error codes across all pipeline stages. Stage
66
66
  * discrimination lives here (in the code), not in separate error classes.
67
67
  *
68
68
  * @public
69
69
  */
70
- declare const YamlErrorCode: Schema.Union<readonly [Schema.Literals<readonly ["UnexpectedCharacter", "UnterminatedString", "InvalidEscapeSequence", "InvalidUnicode", "UnterminatedBlockScalar", "UnterminatedFlowCollection", "InvalidDirective", "InvalidTagHandle", "InvalidAnchorName", "UnexpectedByteOrderMark"]>, Schema.Literals<readonly ["InvalidIndentation", "DuplicateKey", "UnexpectedToken", "MissingValue", "MissingKey", "TabIndentation", "InvalidBlockStructure", "MalformedFlowCollection", "NestingDepthExceeded"]>, Schema.Literals<readonly ["UndefinedAlias", "DuplicateAnchor", "CircularAlias", "UnresolvedTag", "InvalidTagValue", "AliasCountExceeded", "InvalidDirective"]>, Schema.Literals<readonly ["CircularReference"]>, Schema.Literals<readonly ["EmptyDocument", "PathNotFound", "InvalidIndex", "NotNavigable", "MultiDocumentStream", "DirectiveCarryingDocument"]>]>;
70
+ export declare const YamlErrorCode: Schema.Union<readonly [Schema.Literals<readonly ["UnexpectedCharacter", "UnterminatedString", "InvalidEscapeSequence", "InvalidUnicode", "UnterminatedBlockScalar", "UnterminatedFlowCollection", "InvalidDirective", "InvalidTagHandle", "InvalidAnchorName", "UnexpectedByteOrderMark"]>, Schema.Literals<readonly ["InvalidIndentation", "DuplicateKey", "UnexpectedToken", "MissingValue", "MissingKey", "TabIndentation", "InvalidBlockStructure", "MalformedFlowCollection", "NestingDepthExceeded"]>, Schema.Literals<readonly ["UndefinedAlias", "DuplicateAnchor", "CircularAlias", "UnresolvedTag", "InvalidTagValue", "AliasCountExceeded", "InvalidDirective"]>, Schema.Literals<readonly ["CircularReference"]>, Schema.Literals<readonly ["EmptyDocument", "PathNotFound", "InvalidIndex", "NotNavigable", "MultiDocumentStream", "DirectiveCarryingDocument"]>]>;
71
71
  /**
72
72
  * The union of all YAML error code string literals.
73
73
  *
74
74
  * @public
75
75
  */
76
- type YamlErrorCode = typeof YamlErrorCode.Type;
76
+ export type YamlErrorCode = typeof YamlErrorCode.Type;
77
77
  declare const YamlDiagnostic_base: Schema.Class<YamlDiagnostic, Schema.Struct<{
78
78
  readonly code: Schema.Union<readonly [Schema.Literals<readonly ["UnexpectedCharacter", "UnterminatedString", "InvalidEscapeSequence", "InvalidUnicode", "UnterminatedBlockScalar", "UnterminatedFlowCollection", "InvalidDirective", "InvalidTagHandle", "InvalidAnchorName", "UnexpectedByteOrderMark"]>, Schema.Literals<readonly ["InvalidIndentation", "DuplicateKey", "UnexpectedToken", "MissingValue", "MissingKey", "TabIndentation", "InvalidBlockStructure", "MalformedFlowCollection", "NestingDepthExceeded"]>, Schema.Literals<readonly ["UndefinedAlias", "DuplicateAnchor", "CircularAlias", "UnresolvedTag", "InvalidTagValue", "AliasCountExceeded", "InvalidDirective"]>, Schema.Literals<readonly ["CircularReference"]>, Schema.Literals<readonly ["EmptyDocument", "PathNotFound", "InvalidIndex", "NotNavigable", "MultiDocumentStream", "DirectiveCarryingDocument"]>]>;
79
79
  readonly message: Schema.String;
@@ -95,7 +95,7 @@ declare const YamlDiagnostic_base: Schema.Class<YamlDiagnostic, Schema.Struct<{
95
95
  *
96
96
  * @public
97
97
  */
98
- declare class YamlDiagnostic extends YamlDiagnostic_base {
98
+ export declare class YamlDiagnostic extends YamlDiagnostic_base {
99
99
  /**
100
100
  * The single fatal-code predicate: whether diagnostics with this code
101
101
  * abort a parse (vs. being recoverable warnings-as-data). Declared once,
@@ -142,7 +142,7 @@ declare const YamlParseOptions_base: Schema.Class<YamlParseOptions, Schema.Struc
142
142
  *
143
143
  * @public
144
144
  */
145
- declare class YamlParseOptions extends YamlParseOptions_base {}
145
+ export declare class YamlParseOptions extends YamlParseOptions_base {}
146
146
  declare const YamlStringifyOptions_base: Schema.Class<YamlStringifyOptions, Schema.Struct<{
147
147
  readonly indent: Schema.optionalKey<Schema.Number>;
148
148
  /**
@@ -257,7 +257,7 @@ declare const YamlStringifyOptions_base: Schema.Class<YamlStringifyOptions, Sche
257
257
  *
258
258
  * @public
259
259
  */
260
- declare class YamlStringifyOptions extends YamlStringifyOptions_base {}
260
+ export declare class YamlStringifyOptions extends YamlStringifyOptions_base {}
261
261
  declare const YamlParseError_base: Schema.Class<YamlParseError, Schema.TaggedStruct<"YamlParseError", {
262
262
  readonly diagnostics: Schema.$Array<typeof YamlDiagnostic>;
263
263
  readonly input: Schema.String;
@@ -272,7 +272,7 @@ declare const YamlParseError_base: Schema.Class<YamlParseError, Schema.TaggedStr
272
272
  *
273
273
  * @public
274
274
  */
275
- declare class YamlParseError extends YamlParseError_base {
275
+ export declare class YamlParseError extends YamlParseError_base {
276
276
  get message(): string;
277
277
  }
278
278
  declare const YamlStringifyError_base: Schema.Class<YamlStringifyError, Schema.TaggedStruct<"YamlStringifyError", {
@@ -288,7 +288,7 @@ declare const YamlStringifyError_base: Schema.Class<YamlStringifyError, Schema.T
288
288
  *
289
289
  * @public
290
290
  */
291
- declare class YamlStringifyError extends YamlStringifyError_base {
291
+ export declare class YamlStringifyError extends YamlStringifyError_base {
292
292
  get message(): string;
293
293
  }
294
294
  /**
@@ -331,7 +331,7 @@ interface YamlBoundCodec<T, RD = never, RE = never> {
331
331
  *
332
332
  * @public
333
333
  */
334
- declare class Yaml {
334
+ export declare class Yaml {
335
335
  private constructor();
336
336
  /**
337
337
  * Parse a single YAML document into a plain JavaScript value, resolving
@@ -601,7 +601,7 @@ declare const YamlRange_base: Schema.Class<YamlRange, Schema.Struct<{
601
601
  *
602
602
  * @public
603
603
  */
604
- declare class YamlRange extends YamlRange_base {}
604
+ export declare class YamlRange extends YamlRange_base {}
605
605
  declare const YamlEdit_base: Schema.Class<YamlEdit, Schema.Struct<{
606
606
  readonly offset: Schema.Number;
607
607
  readonly length: Schema.Number;
@@ -618,7 +618,7 @@ declare const YamlEdit_base: Schema.Class<YamlEdit, Schema.Struct<{
618
618
  *
619
619
  * @public
620
620
  */
621
- declare class YamlEdit extends YamlEdit_base {
621
+ export declare class YamlEdit extends YamlEdit_base {
622
622
  /**
623
623
  * Apply `edits` to `text`, producing a new string. Edits are applied in
624
624
  * reverse-offset order so earlier offsets stay valid; the input `edits`
@@ -634,25 +634,25 @@ declare class YamlEdit extends YamlEdit_base {
634
634
  *
635
635
  * @public
636
636
  */
637
- declare const ScalarStyle: Schema.Literals<readonly ["plain", "single-quoted", "double-quoted", "block-literal", "block-folded"]>;
637
+ export declare const ScalarStyle: Schema.Literals<readonly ["plain", "single-quoted", "double-quoted", "block-literal", "block-folded"]>;
638
638
  /**
639
639
  * The union of all scalar style string literals.
640
640
  *
641
641
  * @public
642
642
  */
643
- type ScalarStyle = typeof ScalarStyle.Type;
643
+ export type ScalarStyle = typeof ScalarStyle.Type;
644
644
  /**
645
645
  * YAML collection presentation styles.
646
646
  *
647
647
  * @public
648
648
  */
649
- declare const CollectionStyle: Schema.Literals<readonly ["block", "flow"]>;
649
+ export declare const CollectionStyle: Schema.Literals<readonly ["block", "flow"]>;
650
650
  /**
651
651
  * The union of all collection style string literals.
652
652
  *
653
653
  * @public
654
654
  */
655
- type CollectionStyle = typeof CollectionStyle.Type;
655
+ export type CollectionStyle = typeof CollectionStyle.Type;
656
656
  /**
657
657
  * Quote characters available to the stringifier's plain-scalar fallback: the
658
658
  * style a `plain`-styled scalar is rendered in when it turns out to require
@@ -662,13 +662,13 @@ type CollectionStyle = typeof CollectionStyle.Type;
662
662
  *
663
663
  * @public
664
664
  */
665
- declare const QuoteStyle: Schema.Literals<readonly ["single", "double"]>;
665
+ export declare const QuoteStyle: Schema.Literals<readonly ["single", "double"]>;
666
666
  /**
667
667
  * The union of all fallback quote style string literals.
668
668
  *
669
669
  * @public
670
670
  */
671
- type QuoteStyle = typeof QuoteStyle.Type;
671
+ export type QuoteStyle = typeof QuoteStyle.Type;
672
672
  /**
673
673
  * Foreign resolution dialects the stringifier's plain-scalar fallback can
674
674
  * defend against: setting the `quoteCompat` field of `YamlStringifyOptions`
@@ -683,26 +683,26 @@ type QuoteStyle = typeof QuoteStyle.Type;
683
683
  *
684
684
  * @public
685
685
  */
686
- declare const QuoteCompat: Schema.Literals<readonly ["yaml-1.1"]>;
686
+ export declare const QuoteCompat: Schema.Literals<readonly ["yaml-1.1"]>;
687
687
  /**
688
688
  * The union of all quote-compat dialect string literals.
689
689
  *
690
690
  * @public
691
691
  */
692
- type QuoteCompat = typeof QuoteCompat.Type;
692
+ export type QuoteCompat = typeof QuoteCompat.Type;
693
693
  /**
694
694
  * Block-scalar chomping indicators (`-` strip, default clip, `+` keep).
695
695
  * Referenced by the {@link YamlScalar} `chomp` field schema.
696
696
  *
697
697
  * @public
698
698
  */
699
- declare const ScalarChomp: Schema.Literals<readonly ["strip", "clip", "keep"]>;
699
+ export declare const ScalarChomp: Schema.Literals<readonly ["strip", "clip", "keep"]>;
700
700
  /**
701
701
  * The union of all block-scalar chomping indicator string literals.
702
702
  *
703
703
  * @public
704
704
  */
705
- type ScalarChomp = typeof ScalarChomp.Type;
705
+ export type ScalarChomp = typeof ScalarChomp.Type;
706
706
  declare const YamlScalar_base: Schema.Class<YamlScalar, Schema.TaggedStruct<"YamlScalar", {
707
707
  readonly value: Schema.Unknown;
708
708
  readonly tag: Schema.optionalKey<Schema.String>;
@@ -746,7 +746,7 @@ declare const YamlScalar_base: Schema.Class<YamlScalar, Schema.TaggedStruct<"Yam
746
746
  *
747
747
  * @public
748
748
  */
749
- declare class YamlScalar extends YamlScalar_base {
749
+ export declare class YamlScalar extends YamlScalar_base {
750
750
  /**
751
751
  * Navigate to a descendant by path (string segments for mapping keys,
752
752
  * numbers for sequence indices). `Option.none()` when any segment cannot
@@ -790,7 +790,7 @@ declare const YamlAlias_base: Schema.Class<YamlAlias, Schema.TaggedStruct<"YamlA
790
790
  *
791
791
  * @public
792
792
  */
793
- declare class YamlAlias extends YamlAlias_base {
793
+ export declare class YamlAlias extends YamlAlias_base {
794
794
  /** See `YamlScalar.find`. Pure. */
795
795
  find(path: YamlPath): Option.Option<YamlNode>;
796
796
  /** See `YamlScalar.findAtOffset`. Pure. */
@@ -843,13 +843,13 @@ interface YamlAliasEncoded extends Schema.Codec.Encoded<typeof YamlAlias> {}
843
843
  *
844
844
  * @public
845
845
  */
846
- declare const YamlNode: Schema.Codec<YamlScalar | YamlMap | YamlSeq | YamlAlias, YamlScalarEncoded | YamlMapEncoded | YamlSeqEncoded | YamlAliasEncoded>;
846
+ export declare const YamlNode: Schema.Codec<YamlScalar | YamlMap | YamlSeq | YamlAlias, YamlScalarEncoded | YamlMapEncoded | YamlSeqEncoded | YamlAliasEncoded>;
847
847
  /**
848
848
  * The union of all YAML AST value node types.
849
849
  *
850
850
  * @public
851
851
  */
852
- type YamlNode = YamlScalar | YamlMap | YamlSeq | YamlAlias;
852
+ export type YamlNode = YamlScalar | YamlMap | YamlSeq | YamlAlias;
853
853
  declare const YamlPair_base: Schema.Class<YamlPair, Schema.TaggedStruct<"YamlPair", {
854
854
  readonly key: Schema.suspend<Schema.Codec<YamlAlias | YamlMap | YamlScalar | YamlSeq, YamlAliasEncoded | YamlMapEncoded | YamlScalarEncoded | YamlSeqEncoded, never, never>>;
855
855
  readonly value: Schema.NullOr<Schema.suspend<Schema.Codec<YamlAlias | YamlMap | YamlScalar | YamlSeq, YamlAliasEncoded | YamlMapEncoded | YamlScalarEncoded | YamlSeqEncoded, never, never>>>;
@@ -867,7 +867,7 @@ declare const YamlPair_base: Schema.Class<YamlPair, Schema.TaggedStruct<"YamlPai
867
867
  *
868
868
  * @public
869
869
  */
870
- declare class YamlPair extends YamlPair_base {}
870
+ export declare class YamlPair extends YamlPair_base {}
871
871
  declare const YamlMap_base: Schema.Class<YamlMap, Schema.TaggedStruct<"YamlMap", {
872
872
  readonly items: Schema.$Array<Schema.suspend<typeof YamlPair>>;
873
873
  readonly tag: Schema.optionalKey<Schema.String>;
@@ -895,7 +895,7 @@ declare const YamlMap_base: Schema.Class<YamlMap, Schema.TaggedStruct<"YamlMap",
895
895
  *
896
896
  * @public
897
897
  */
898
- declare class YamlMap extends YamlMap_base {
898
+ export declare class YamlMap extends YamlMap_base {
899
899
  /** See `YamlScalar.find`. Pure. */
900
900
  find(path: YamlPath): Option.Option<YamlNode>;
901
901
  /** See `YamlScalar.findAtOffset`. Pure. */
@@ -929,7 +929,7 @@ declare const YamlSeq_base: Schema.Class<YamlSeq, Schema.TaggedStruct<"YamlSeq",
929
929
  *
930
930
  * @public
931
931
  */
932
- declare class YamlSeq extends YamlSeq_base {
932
+ export declare class YamlSeq extends YamlSeq_base {
933
933
  /** See `YamlScalar.find`. Pure. */
934
934
  find(path: YamlPath): Option.Option<YamlNode>;
935
935
  /** See `YamlScalar.findAtOffset`. Pure. */
@@ -953,7 +953,7 @@ declare const YamlDirective_base: Schema.Class<YamlDirective, Schema.Struct<{
953
953
  *
954
954
  * @public
955
955
  */
956
- declare class YamlDirective extends YamlDirective_base {}
956
+ export declare class YamlDirective extends YamlDirective_base {}
957
957
  declare const YamlDocument_base: Schema.Class<YamlDocument, Schema.Struct<{
958
958
  readonly contents: Schema.NullOr<Schema.suspend<Schema.Schema<YamlNode>>>;
959
959
  readonly errors: Schema.$Array<typeof YamlDiagnostic>;
@@ -982,7 +982,7 @@ declare const YamlDocument_base: Schema.Class<YamlDocument, Schema.Struct<{
982
982
  *
983
983
  * @public
984
984
  */
985
- declare class YamlDocument extends YamlDocument_base {
985
+ export declare class YamlDocument extends YamlDocument_base {
986
986
  /**
987
987
  * Parse a single YAML document, keeping the full AST, directives and
988
988
  * recovered diagnostics. Fails with the aggregate {@link YamlParseError}
@@ -1102,7 +1102,7 @@ declare const YamlFormattingOptions_base: Schema.Class<YamlFormattingOptions, Sc
1102
1102
  *
1103
1103
  * @public
1104
1104
  */
1105
- declare class YamlFormattingOptions extends YamlFormattingOptions_base {}
1105
+ export declare class YamlFormattingOptions extends YamlFormattingOptions_base {}
1106
1106
  declare const YamlModificationError_base: Schema.Class<YamlModificationError, Schema.TaggedStruct<"YamlModificationError", {
1107
1107
  readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>;
1108
1108
  readonly diagnostics: Schema.$Array<typeof YamlDiagnostic>;
@@ -1122,7 +1122,7 @@ declare const YamlModificationError_base: Schema.Class<YamlModificationError, Sc
1122
1122
  *
1123
1123
  * @public
1124
1124
  */
1125
- declare class YamlModificationError extends YamlModificationError_base {
1125
+ export declare class YamlModificationError extends YamlModificationError_base {
1126
1126
  get message(): string;
1127
1127
  }
1128
1128
  /**
@@ -1157,7 +1157,7 @@ declare class YamlModificationError extends YamlModificationError_base {
1157
1157
  *
1158
1158
  * @public
1159
1159
  */
1160
- declare class YamlFormat {
1160
+ export declare class YamlFormat {
1161
1161
  private constructor();
1162
1162
  /**
1163
1163
  * Compute formatting edits for a YAML document. Non-mutating — apply the
@@ -1264,13 +1264,13 @@ declare class YamlFormat {
1264
1264
  *
1265
1265
  * @public
1266
1266
  */
1267
- declare const YamlTokenKind: Schema.Literals<readonly ["document-start", "document-end", "directive", "tag", "anchor", "alias", "scalar", "block-map-start", "block-map-key", "block-map-value", "block-seq-start", "block-seq-entry", "flow-map-start", "flow-map-end", "flow-seq-start", "flow-seq-end", "flow-separator", "newline", "whitespace", "comment", "byte-order-mark", "error"]>;
1267
+ export declare const YamlTokenKind: Schema.Literals<readonly ["document-start", "document-end", "directive", "tag", "anchor", "alias", "scalar", "block-map-start", "block-map-key", "block-map-value", "block-seq-start", "block-seq-entry", "flow-map-start", "flow-map-end", "flow-seq-start", "flow-seq-end", "flow-separator", "newline", "whitespace", "comment", "byte-order-mark", "error"]>;
1268
1268
  /**
1269
1269
  * The union of all lexical token kind string literals.
1270
1270
  *
1271
1271
  * @public
1272
1272
  */
1273
- type YamlTokenKind = typeof YamlTokenKind.Type;
1273
+ export type YamlTokenKind = typeof YamlTokenKind.Type;
1274
1274
  declare const YamlToken_base: Schema.Class<YamlToken, Schema.Struct<{
1275
1275
  readonly kind: Schema.Literals<readonly ["document-start", "document-end", "directive", "tag", "anchor", "alias", "scalar", "block-map-start", "block-map-key", "block-map-value", "block-seq-start", "block-seq-entry", "flow-map-start", "flow-map-end", "flow-seq-start", "flow-seq-end", "flow-separator", "newline", "whitespace", "comment", "byte-order-mark", "error"]>;
1276
1276
  readonly text: Schema.String;
@@ -1291,13 +1291,13 @@ declare const YamlToken_base: Schema.Class<YamlToken, Schema.Struct<{
1291
1291
  *
1292
1292
  * @public
1293
1293
  */
1294
- declare class YamlToken extends YamlToken_base {}
1294
+ export declare class YamlToken extends YamlToken_base {}
1295
1295
  /**
1296
1296
  * Tokenizer statics. Not instantiable.
1297
1297
  *
1298
1298
  * @public
1299
1299
  */
1300
- declare class YamlTokens {
1300
+ export declare class YamlTokens {
1301
1301
  private constructor();
1302
1302
  /**
1303
1303
  * Tokenize YAML text into the full positioned token array — the sync
@@ -1346,13 +1346,13 @@ declare class YamlTokens {
1346
1346
  *
1347
1347
  * @public
1348
1348
  */
1349
- declare const YamlLintSeverity: Schema.Literals<readonly ["error", "warning"]>;
1349
+ export declare const YamlLintSeverity: Schema.Literals<readonly ["error", "warning"]>;
1350
1350
  /**
1351
1351
  * The union of lint severity string literals.
1352
1352
  *
1353
1353
  * @public
1354
1354
  */
1355
- type YamlLintSeverity = typeof YamlLintSeverity.Type;
1355
+ export type YamlLintSeverity = typeof YamlLintSeverity.Type;
1356
1356
  declare const YamlLintDiagnostic_base: Schema.Class<YamlLintDiagnostic, Schema.Struct<{
1357
1357
  readonly rule: Schema.String;
1358
1358
  readonly severity: Schema.Literals<readonly ["error", "warning"]>;
@@ -1375,7 +1375,7 @@ declare const YamlLintDiagnostic_base: Schema.Class<YamlLintDiagnostic, Schema.S
1375
1375
  *
1376
1376
  * @public
1377
1377
  */
1378
- declare class YamlLintDiagnostic extends YamlLintDiagnostic_base {}
1378
+ export declare class YamlLintDiagnostic extends YamlLintDiagnostic_base {}
1379
1379
  /**
1380
1380
  * One source line of the linted document: its text (without the line
1381
1381
  * terminator — the `\n`, and for CRLF input the `\r\n` pair), the offset of
@@ -1438,7 +1438,7 @@ declare const StyleVote_base: Schema.Class<StyleVote, Schema.TaggedStruct<"Style
1438
1438
  *
1439
1439
  * @public
1440
1440
  */
1441
- declare class StyleVote extends StyleVote_base {}
1441
+ export declare class StyleVote extends StyleVote_base {}
1442
1442
  declare const StyleFloor_base: Schema.Class<StyleFloor, Schema.TaggedStruct<"StyleFloor", {
1443
1443
  readonly dimension: Schema.String;
1444
1444
  readonly value: Schema.Number;
@@ -1456,7 +1456,7 @@ declare const StyleFloor_base: Schema.Class<StyleFloor, Schema.TaggedStruct<"Sty
1456
1456
  *
1457
1457
  * @public
1458
1458
  */
1459
- declare class StyleFloor extends StyleFloor_base {}
1459
+ export declare class StyleFloor extends StyleFloor_base {}
1460
1460
  /**
1461
1461
  * What a rule's `infer` hook yields per occurrence: a categorical
1462
1462
  * {@link StyleVote} or a measured {@link StyleFloor}.
@@ -1497,13 +1497,13 @@ interface YamlRule {
1497
1497
  *
1498
1498
  * @public
1499
1499
  */
1500
- declare const YamlLintRuleSetting: Schema.Union<readonly [Schema.Literals<readonly ["error", "warning", "off"]>, Schema.$Record<Schema.String, Schema.Unknown>]>;
1500
+ export declare const YamlLintRuleSetting: Schema.Union<readonly [Schema.Literals<readonly ["error", "warning", "off"]>, Schema.$Record<Schema.String, Schema.Unknown>]>;
1501
1501
  /**
1502
1502
  * The union type of one `rules`-map entry.
1503
1503
  *
1504
1504
  * @public
1505
1505
  */
1506
- type YamlLintRuleSetting = typeof YamlLintRuleSetting.Type;
1506
+ export type YamlLintRuleSetting = typeof YamlLintRuleSetting.Type;
1507
1507
  declare const YamlLintConfig_base: Schema.Class<YamlLintConfig, Schema.Struct<{
1508
1508
  readonly rules: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Literals<readonly ["error", "warning", "off"]>, Schema.$Record<Schema.String, Schema.Unknown>]>>;
1509
1509
  }>, {}>;
@@ -1524,7 +1524,7 @@ declare const YamlLintConfig_base: Schema.Class<YamlLintConfig, Schema.Struct<{
1524
1524
  *
1525
1525
  * @public
1526
1526
  */
1527
- declare class YamlLintConfig extends YamlLintConfig_base {
1527
+ export declare class YamlLintConfig extends YamlLintConfig_base {
1528
1528
  /**
1529
1529
  * The default preset. Rule entries accrete as built-ins land; the
1530
1530
  * `quoted-strings` rule defaults to DOUBLE quotes here (the one taste
@@ -1552,7 +1552,7 @@ declare const StyleVoteTally_base: Schema.Class<StyleVoteTally, Schema.Struct<{
1552
1552
  *
1553
1553
  * @public
1554
1554
  */
1555
- declare class StyleVoteTally extends StyleVoteTally_base {}
1555
+ export declare class StyleVoteTally extends StyleVoteTally_base {}
1556
1556
  declare const StyleFloorTally_base: Schema.Class<StyleFloorTally, Schema.Struct<{
1557
1557
  readonly rule: Schema.String;
1558
1558
  readonly dimension: Schema.String;
@@ -1566,7 +1566,7 @@ declare const StyleFloorTally_base: Schema.Class<StyleFloorTally, Schema.Struct<
1566
1566
  *
1567
1567
  * @public
1568
1568
  */
1569
- declare class StyleFloorTally extends StyleFloorTally_base {}
1569
+ export declare class StyleFloorTally extends StyleFloorTally_base {}
1570
1570
  declare const StyleEvidence_base: Schema.Class<StyleEvidence, Schema.Struct<{
1571
1571
  readonly votes: Schema.$Array<typeof StyleVoteTally>;
1572
1572
  readonly floors: Schema.$Array<typeof StyleFloorTally>;
@@ -1587,7 +1587,7 @@ declare const StyleEvidence_base: Schema.Class<StyleEvidence, Schema.Struct<{
1587
1587
  *
1588
1588
  * @public
1589
1589
  */
1590
- declare class StyleEvidence extends StyleEvidence_base {
1590
+ export declare class StyleEvidence extends StyleEvidence_base {
1591
1591
  /** The monoid identity: no observations. */
1592
1592
  static readonly empty: StyleEvidence;
1593
1593
  /**
@@ -1618,7 +1618,7 @@ declare const StyleConflict_base: Schema.Class<StyleConflict, Schema.Struct<{
1618
1618
  *
1619
1619
  * @public
1620
1620
  */
1621
- declare class StyleConflict extends StyleConflict_base {}
1621
+ export declare class StyleConflict extends StyleConflict_base {}
1622
1622
  declare const YamlStyleConflictError_base: Schema.Class<YamlStyleConflictError, Schema.TaggedStruct<"YamlStyleConflictError", {
1623
1623
  readonly conflicts: Schema.$Array<typeof StyleConflict>;
1624
1624
  }>, import("effect/Cause").YieldableError>;
@@ -1632,7 +1632,7 @@ declare const YamlStyleConflictError_base: Schema.Class<YamlStyleConflictError,
1632
1632
  *
1633
1633
  * @public
1634
1634
  */
1635
- declare class YamlStyleConflictError extends YamlStyleConflictError_base {
1635
+ export declare class YamlStyleConflictError extends YamlStyleConflictError_base {
1636
1636
  get message(): string;
1637
1637
  }
1638
1638
  /**
@@ -1656,7 +1656,7 @@ interface YamlLintInference {
1656
1656
  *
1657
1657
  * @public
1658
1658
  */
1659
- declare class YamlLint {
1659
+ export declare class YamlLint {
1660
1660
  private constructor();
1661
1661
  /**
1662
1662
  * The built-in rule catalog. Custom usage is array concatenation:
@@ -1752,7 +1752,7 @@ declare class YamlLint {
1752
1752
  *
1753
1753
  * @public
1754
1754
  */
1755
- type YamlVisitorEvent = Data.TaggedEnum<{
1755
+ export type YamlVisitorEvent = Data.TaggedEnum<{
1756
1756
  DocumentStart: {
1757
1757
  readonly path: YamlPath;
1758
1758
  readonly depth: number;
@@ -1832,7 +1832,7 @@ type YamlVisitorEvent = Data.TaggedEnum<{
1832
1832
  *
1833
1833
  * @public
1834
1834
  */
1835
- declare const YamlVisitorEvent: {
1835
+ export declare const YamlVisitorEvent: {
1836
1836
  readonly $is: <Tag extends "Alias" | "Comment" | "Directive" | "DocumentEnd" | "DocumentStart" | "Error" | "MapEnd" | "MapStart" | "Pair" | "Scalar" | "SeqEnd" | "SeqStart">(tag: Tag) => (u: unknown) => u is Extract<{
1837
1837
  readonly _tag: "Alias";
1838
1838
  readonly path: YamlPath;
@@ -2326,7 +2326,7 @@ declare const YamlVisitorEvent: {
2326
2326
  *
2327
2327
  * @public
2328
2328
  */
2329
- declare class YamlVisitor {
2329
+ export declare class YamlVisitor {
2330
2330
  private constructor();
2331
2331
  /**
2332
2332
  * Create a lazy `Stream` of `YamlVisitorEvent` from YAML text, in document
@@ -2344,5 +2344,5 @@ declare class YamlVisitor {
2344
2344
  static visit(text: string, options?: YamlParseOptions): Stream.Stream<YamlVisitorEvent>;
2345
2345
  }
2346
2346
  //#endregion
2347
- export { CollectionStyle, type LintContext, type LintLine, QuoteCompat, QuoteStyle, ScalarChomp, ScalarStyle, StyleConflict, StyleEvidence, StyleFloor, StyleFloorTally, type StyleObservation, StyleVote, StyleVoteTally, Yaml, YamlAlias, type YamlAliasEncoded, type YamlBoundCodec, YamlComposerErrorCode, YamlDiagnostic, YamlDirective, YamlDocument, YamlEdit, YamlErrorCode, YamlFormat, YamlFormattingOptions, YamlLexErrorCode, YamlLint, YamlLintConfig, YamlLintDiagnostic, type YamlLintInference, YamlLintRuleSetting, YamlLintSeverity, YamlMap, type YamlMapEncoded, YamlModificationError, YamlModifyErrorCode, YamlNode, YamlPair, YamlParseError, YamlParseErrorCode, YamlParseOptions, type YamlPath, YamlRange, type YamlRangeLike, type YamlRule, YamlScalar, type YamlScalarEncoded, type YamlSegment, YamlSeq, type YamlSeqEncoded, YamlStringifyError, YamlStringifyErrorCode, YamlStringifyOptions, YamlStyleConflictError, YamlToken, YamlTokenKind, YamlTokens, YamlVisitor, YamlVisitorEvent };
2347
+ export type { LintContext, LintLine, StyleObservation, YamlAliasEncoded, YamlBoundCodec, YamlLintInference, YamlMapEncoded, YamlPath, YamlRangeLike, YamlRule, YamlScalarEncoded, YamlSegment, YamlSeqEncoded };
2348
2348
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/yaml",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "private": false,
5
5
  "description": "Zero-dependency YAML parsing, editing, formatting and linting as Effect schemas.",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  "./package.json": "./package.json"
42
42
  },
43
43
  "peerDependencies": {
44
- "effect": "4.0.0-rc.109"
44
+ "effect": "4.0.0-rc.112"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=24.11.0"