sheetom 0.1.0-rc.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.
@@ -0,0 +1,325 @@
1
+ //#region src/index.d.ts
2
+ /** A structured explanation for an ignored or recovered mutation. */
3
+ interface SheetOMDiagnostic {
4
+ code: string;
5
+ severity: "warning";
6
+ operation: "setProperty";
7
+ message: string;
8
+ property: string;
9
+ input: string;
10
+ location: null;
11
+ }
12
+ /** Options for a constructed SheetOM stylesheet. */
13
+ interface CSSStyleSheetOptions {
14
+ baseURL?: string;
15
+ media?: string;
16
+ disabled?: boolean;
17
+ diagnostics?: boolean;
18
+ }
19
+ /** Options for forgiving parsing of an existing regular stylesheet. */
20
+ interface ParseStyleSheetOptions extends CSSStyleSheetOptions {
21
+ href?: string;
22
+ }
23
+ /** Base class for live stylesheet rules. */
24
+ declare class CSSRule {
25
+ #private;
26
+ static readonly STYLE_RULE = 1;
27
+ static readonly CHARSET_RULE = 2;
28
+ static readonly IMPORT_RULE = 3;
29
+ static readonly MEDIA_RULE = 4;
30
+ static readonly FONT_FACE_RULE = 5;
31
+ static readonly PAGE_RULE = 6;
32
+ static readonly KEYFRAMES_RULE = 7;
33
+ static readonly KEYFRAME_RULE = 8;
34
+ static readonly MARGIN_RULE = 9;
35
+ static readonly NAMESPACE_RULE = 10;
36
+ static readonly COUNTER_STYLE_RULE = 11;
37
+ static readonly SUPPORTS_RULE = 12;
38
+ static readonly FONT_FEATURE_VALUES_RULE = 14;
39
+ readonly STYLE_RULE: 1;
40
+ readonly CHARSET_RULE: 2;
41
+ readonly IMPORT_RULE: 3;
42
+ readonly MEDIA_RULE: 4;
43
+ readonly FONT_FACE_RULE: 5;
44
+ readonly PAGE_RULE: 6;
45
+ readonly KEYFRAMES_RULE: 7;
46
+ readonly KEYFRAME_RULE: 8;
47
+ readonly MARGIN_RULE: 9;
48
+ readonly NAMESPACE_RULE: 10;
49
+ readonly COUNTER_STYLE_RULE: 11;
50
+ readonly SUPPORTS_RULE: 12;
51
+ readonly FONT_FEATURE_VALUES_RULE: 14;
52
+ protected constructor(type: number);
53
+ get parentRule(): CSSRule | null;
54
+ get type(): number;
55
+ get parentStyleSheet(): CSSStyleSheet | null;
56
+ get cssText(): string;
57
+ set cssText(_value: string);
58
+ }
59
+ /** A stable, live, indexed collection of rules. */
60
+ declare class CSSRuleList {
61
+ #private;
62
+ readonly [index: number]: CSSRule | undefined;
63
+ get length(): number;
64
+ item(index: number): CSSRule | null;
65
+ }
66
+ /** A live serialized list of media queries. */
67
+ declare class MediaList {
68
+ #private;
69
+ readonly [index: number]: string | undefined;
70
+ constructor(mediaText?: string);
71
+ get mediaText(): string;
72
+ set mediaText(value: string);
73
+ get length(): number;
74
+ item(index: number): string | null;
75
+ appendMedium(medium: string): void;
76
+ deleteMedium(medium: string): void;
77
+ }
78
+ /** A rule containing a live nested rule list. */
79
+ declare class CSSGroupingRule extends CSSRule {
80
+ readonly cssRules: CSSRuleList;
81
+ protected constructor(type: number);
82
+ insertRule(ruleText: string, index?: number): number;
83
+ deleteRule(index: number): void;
84
+ protected serializeGroup(header: string): string;
85
+ }
86
+ /** A grouping rule controlled by a serialized condition. */
87
+ declare class CSSConditionRule extends CSSGroupingRule {
88
+ #private;
89
+ protected constructor(type: number, conditionText: string);
90
+ get conditionText(): string;
91
+ }
92
+ /** A live `@media` rule. */
93
+ declare class CSSMediaRule extends CSSConditionRule {
94
+ readonly media: MediaList;
95
+ constructor(conditionText: string);
96
+ get conditionText(): string;
97
+ get cssText(): string;
98
+ set cssText(_value: string);
99
+ }
100
+ /** A live `@supports` rule. */
101
+ declare class CSSSupportsRule extends CSSConditionRule {
102
+ constructor(conditionText: string);
103
+ get cssText(): string;
104
+ set cssText(_value: string);
105
+ }
106
+ /** A live `@container` rule. */
107
+ declare class CSSContainerRule extends CSSConditionRule {
108
+ readonly containerName: string;
109
+ readonly containerQuery: string;
110
+ constructor(conditionText: string);
111
+ get cssText(): string;
112
+ set cssText(_value: string);
113
+ }
114
+ /** A live block-form `@layer` rule. */
115
+ declare class CSSLayerBlockRule extends CSSGroupingRule {
116
+ readonly name: string;
117
+ constructor(name: string);
118
+ get cssText(): string;
119
+ set cssText(_value: string);
120
+ }
121
+ /** A live `@scope` rule. */
122
+ declare class CSSScopeRule extends CSSGroupingRule {
123
+ readonly start: string | null;
124
+ readonly end: string | null;
125
+ constructor(start: string | null, end: string | null);
126
+ get cssText(): string;
127
+ set cssText(_value: string);
128
+ }
129
+ /** A live `@starting-style` rule. */
130
+ declare class CSSStartingStyleRule extends CSSGroupingRule {
131
+ constructor();
132
+ get cssText(): string;
133
+ set cssText(_value: string);
134
+ }
135
+ /** A non-loading `@import` rule with mutable media. */
136
+ declare class CSSImportRule extends CSSRule {
137
+ #private;
138
+ readonly media: MediaList;
139
+ readonly styleSheet: null;
140
+ readonly layerName: string | null;
141
+ readonly supportsText: string | null;
142
+ constructor(href: string, mediaText?: string, layerName?: string | null, supportsText?: string | null);
143
+ get href(): string;
144
+ get cssText(): string;
145
+ set cssText(_value: string);
146
+ }
147
+ /** A live declaration block with indexed, named, and method-based access. */
148
+ declare class CSSStyleDeclaration {
149
+ #private;
150
+ readonly [index: number]: string | undefined;
151
+ readonly parentRule: CSSRule;
152
+ constructor(parentRule: CSSRule);
153
+ get cssText(): string;
154
+ set cssText(value: string);
155
+ get length(): number;
156
+ item(index: number): string;
157
+ getPropertyValue(name: string): string;
158
+ getPropertyPriority(name: string): string;
159
+ setProperty(name: string, value: string | null, priority?: string): void;
160
+ removeProperty(name: string): string;
161
+ }
162
+ /** A live `@font-face` descriptor rule. */
163
+ declare class CSSFontFaceRule extends CSSRule {
164
+ readonly style: CSSStyleDeclaration;
165
+ constructor();
166
+ get cssText(): string;
167
+ set cssText(_value: string);
168
+ }
169
+ /** Declarations ordered after a nested style rule. */
170
+ declare class CSSNestedDeclarations extends CSSRule {
171
+ #private;
172
+ constructor();
173
+ get style(): CSSStyleDeclaration;
174
+ set style(cssText: string);
175
+ get cssText(): string;
176
+ set cssText(_value: string);
177
+ }
178
+ /** A page-margin rule nested inside `CSSPageRule`. */
179
+ declare class CSSMarginRule extends CSSRule {
180
+ readonly name: string;
181
+ readonly style: CSSStyleDeclaration;
182
+ constructor(name: string);
183
+ get cssText(): string;
184
+ set cssText(_value: string);
185
+ }
186
+ /** A live `@page` rule with declarations and margin rules. */
187
+ declare class CSSPageRule extends CSSGroupingRule {
188
+ #private;
189
+ readonly style: CSSStyleDeclaration;
190
+ constructor(selectorText: string);
191
+ get selectorText(): string;
192
+ set selectorText(value: string);
193
+ get cssText(): string;
194
+ set cssText(_value: string);
195
+ }
196
+ /** A live `@position-try` declaration rule. */
197
+ declare class CSSPositionTryRule extends CSSRule {
198
+ readonly name: string;
199
+ readonly style: CSSStyleDeclaration;
200
+ constructor(name: string);
201
+ get cssText(): string;
202
+ set cssText(_value: string);
203
+ }
204
+ /** One mutable keyframe selector and declaration block. */
205
+ declare class CSSKeyframeRule extends CSSRule {
206
+ #private;
207
+ readonly style: CSSStyleDeclaration;
208
+ constructor(keyText: string);
209
+ get keyText(): string;
210
+ set keyText(value: string);
211
+ get cssText(): string;
212
+ set cssText(_value: string);
213
+ }
214
+ /** A mutable `@keyframes` rule. */
215
+ declare class CSSKeyframesRule extends CSSRule {
216
+ #private;
217
+ readonly cssRules: CSSRuleList;
218
+ constructor(name: string);
219
+ get name(): string;
220
+ set name(value: string);
221
+ get length(): number;
222
+ appendRule(ruleText: string): void;
223
+ deleteRule(select: string): void;
224
+ findRule(select: string): CSSKeyframeRule | null;
225
+ get cssText(): string;
226
+ set cssText(_value: string);
227
+ }
228
+ /** A mutable `@counter-style` descriptor rule. */
229
+ declare class CSSCounterStyleRule extends CSSRule {
230
+ #private;
231
+ constructor(name: string);
232
+ get name(): string;
233
+ set name(value: string);
234
+ get system(): string;
235
+ set system(value: string);
236
+ get symbols(): string;
237
+ set symbols(value: string);
238
+ get additiveSymbols(): string;
239
+ set additiveSymbols(value: string);
240
+ get negative(): string;
241
+ set negative(value: string);
242
+ get prefix(): string;
243
+ set prefix(value: string);
244
+ get suffix(): string;
245
+ set suffix(value: string);
246
+ get range(): string;
247
+ set range(value: string);
248
+ get pad(): string;
249
+ set pad(value: string);
250
+ get speakAs(): string;
251
+ set speakAs(value: string);
252
+ get fallback(): string;
253
+ set fallback(value: string);
254
+ get cssText(): string;
255
+ set cssText(_value: string);
256
+ }
257
+ /** A live map exposed by one font-feature-values category. */
258
+ declare class CSSFontFeatureValuesMap implements Iterable<[string, number[]]> {
259
+ #private;
260
+ constructor();
261
+ get size(): number;
262
+ set(featureValueName: string, values: number[]): this;
263
+ clear(): void;
264
+ delete(name: string): boolean;
265
+ get(name: string): number[] | undefined;
266
+ has(name: string): boolean;
267
+ entries(): MapIterator<[string, number[]]>;
268
+ keys(): MapIterator<string>;
269
+ values(): MapIterator<number[]>;
270
+ forEach(callback: (value: number[], key: string, map: CSSFontFeatureValuesMap) => void, thisArg?: unknown): void;
271
+ [Symbol.iterator](): MapIterator<[string, number[]]>;
272
+ }
273
+ /** A mutable `@font-feature-values` rule. */
274
+ declare class CSSFontFeatureValuesRule extends CSSRule {
275
+ #private;
276
+ readonly annotation: CSSFontFeatureValuesMap;
277
+ readonly ornaments: CSSFontFeatureValuesMap;
278
+ readonly stylistic: CSSFontFeatureValuesMap;
279
+ readonly swash: CSSFontFeatureValuesMap;
280
+ readonly characterVariant: CSSFontFeatureValuesMap;
281
+ readonly styleset: CSSFontFeatureValuesMap;
282
+ constructor(fontFamily: string);
283
+ get fontFamily(): string;
284
+ set fontFamily(value: string);
285
+ get cssText(): string;
286
+ set cssText(_value: string);
287
+ }
288
+ /** A live style rule with declarations and nested rules. */
289
+ declare class CSSStyleRule extends CSSGroupingRule {
290
+ #private;
291
+ readonly style: CSSStyleDeclaration;
292
+ constructor(selectorText: string);
293
+ get selectorText(): string;
294
+ set selectorText(value: string);
295
+ get cssText(): string;
296
+ set cssText(_value: string);
297
+ }
298
+ /** A mutable, browser-shaped authoring stylesheet. */
299
+ declare class CSSStyleSheet {
300
+ #private;
301
+ readonly cssRules: CSSRuleList;
302
+ readonly media: MediaList;
303
+ readonly ownerNode: null;
304
+ readonly parentStyleSheet: null;
305
+ readonly ownerRule: null;
306
+ readonly title: null;
307
+ readonly type = "text/css";
308
+ disabled: boolean;
309
+ constructor(options?: CSSStyleSheetOptions | null);
310
+ get href(): string | null;
311
+ get baseURL(): string;
312
+ insertRule(ruleText: string, index?: number): number;
313
+ deleteRule(index: number): void;
314
+ replaceSync(cssText: string): void;
315
+ replace(cssText: string): Promise<CSSStyleSheet>;
316
+ /** Serialize current state as reparsable CSS without mutating live objects. */
317
+ serialize(): string;
318
+ /** Drain opt-in mutation diagnostics without affecting CSSOM behavior. */
319
+ takeDiagnostics(): SheetOMDiagnostic[];
320
+ }
321
+ /** Forgivingly parse an existing regular stylesheet without loading imports. */
322
+ declare function parseStyleSheet(cssText: string, options?: ParseStyleSheetOptions): CSSStyleSheet;
323
+ //#endregion
324
+ export { CSSConditionRule, CSSContainerRule, CSSCounterStyleRule, CSSFontFaceRule, CSSFontFeatureValuesMap, CSSFontFeatureValuesRule, CSSGroupingRule, CSSImportRule, CSSKeyframeRule, CSSKeyframesRule, CSSLayerBlockRule, CSSMarginRule, CSSMediaRule, CSSNestedDeclarations, CSSPageRule, CSSPositionTryRule, CSSRule, CSSRuleList, CSSScopeRule, CSSStartingStyleRule, CSSStyleDeclaration, CSSStyleRule, CSSStyleSheet, CSSStyleSheetOptions, CSSSupportsRule, MediaList, ParseStyleSheetOptions, SheetOMDiagnostic, parseStyleSheet };
325
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1,325 @@
1
+ //#region src/index.d.ts
2
+ /** A structured explanation for an ignored or recovered mutation. */
3
+ interface SheetOMDiagnostic {
4
+ code: string;
5
+ severity: "warning";
6
+ operation: "setProperty";
7
+ message: string;
8
+ property: string;
9
+ input: string;
10
+ location: null;
11
+ }
12
+ /** Options for a constructed SheetOM stylesheet. */
13
+ interface CSSStyleSheetOptions {
14
+ baseURL?: string;
15
+ media?: string;
16
+ disabled?: boolean;
17
+ diagnostics?: boolean;
18
+ }
19
+ /** Options for forgiving parsing of an existing regular stylesheet. */
20
+ interface ParseStyleSheetOptions extends CSSStyleSheetOptions {
21
+ href?: string;
22
+ }
23
+ /** Base class for live stylesheet rules. */
24
+ declare class CSSRule {
25
+ #private;
26
+ static readonly STYLE_RULE = 1;
27
+ static readonly CHARSET_RULE = 2;
28
+ static readonly IMPORT_RULE = 3;
29
+ static readonly MEDIA_RULE = 4;
30
+ static readonly FONT_FACE_RULE = 5;
31
+ static readonly PAGE_RULE = 6;
32
+ static readonly KEYFRAMES_RULE = 7;
33
+ static readonly KEYFRAME_RULE = 8;
34
+ static readonly MARGIN_RULE = 9;
35
+ static readonly NAMESPACE_RULE = 10;
36
+ static readonly COUNTER_STYLE_RULE = 11;
37
+ static readonly SUPPORTS_RULE = 12;
38
+ static readonly FONT_FEATURE_VALUES_RULE = 14;
39
+ readonly STYLE_RULE: 1;
40
+ readonly CHARSET_RULE: 2;
41
+ readonly IMPORT_RULE: 3;
42
+ readonly MEDIA_RULE: 4;
43
+ readonly FONT_FACE_RULE: 5;
44
+ readonly PAGE_RULE: 6;
45
+ readonly KEYFRAMES_RULE: 7;
46
+ readonly KEYFRAME_RULE: 8;
47
+ readonly MARGIN_RULE: 9;
48
+ readonly NAMESPACE_RULE: 10;
49
+ readonly COUNTER_STYLE_RULE: 11;
50
+ readonly SUPPORTS_RULE: 12;
51
+ readonly FONT_FEATURE_VALUES_RULE: 14;
52
+ protected constructor(type: number);
53
+ get parentRule(): CSSRule | null;
54
+ get type(): number;
55
+ get parentStyleSheet(): CSSStyleSheet | null;
56
+ get cssText(): string;
57
+ set cssText(_value: string);
58
+ }
59
+ /** A stable, live, indexed collection of rules. */
60
+ declare class CSSRuleList {
61
+ #private;
62
+ readonly [index: number]: CSSRule | undefined;
63
+ get length(): number;
64
+ item(index: number): CSSRule | null;
65
+ }
66
+ /** A live serialized list of media queries. */
67
+ declare class MediaList {
68
+ #private;
69
+ readonly [index: number]: string | undefined;
70
+ constructor(mediaText?: string);
71
+ get mediaText(): string;
72
+ set mediaText(value: string);
73
+ get length(): number;
74
+ item(index: number): string | null;
75
+ appendMedium(medium: string): void;
76
+ deleteMedium(medium: string): void;
77
+ }
78
+ /** A rule containing a live nested rule list. */
79
+ declare class CSSGroupingRule extends CSSRule {
80
+ readonly cssRules: CSSRuleList;
81
+ protected constructor(type: number);
82
+ insertRule(ruleText: string, index?: number): number;
83
+ deleteRule(index: number): void;
84
+ protected serializeGroup(header: string): string;
85
+ }
86
+ /** A grouping rule controlled by a serialized condition. */
87
+ declare class CSSConditionRule extends CSSGroupingRule {
88
+ #private;
89
+ protected constructor(type: number, conditionText: string);
90
+ get conditionText(): string;
91
+ }
92
+ /** A live `@media` rule. */
93
+ declare class CSSMediaRule extends CSSConditionRule {
94
+ readonly media: MediaList;
95
+ constructor(conditionText: string);
96
+ get conditionText(): string;
97
+ get cssText(): string;
98
+ set cssText(_value: string);
99
+ }
100
+ /** A live `@supports` rule. */
101
+ declare class CSSSupportsRule extends CSSConditionRule {
102
+ constructor(conditionText: string);
103
+ get cssText(): string;
104
+ set cssText(_value: string);
105
+ }
106
+ /** A live `@container` rule. */
107
+ declare class CSSContainerRule extends CSSConditionRule {
108
+ readonly containerName: string;
109
+ readonly containerQuery: string;
110
+ constructor(conditionText: string);
111
+ get cssText(): string;
112
+ set cssText(_value: string);
113
+ }
114
+ /** A live block-form `@layer` rule. */
115
+ declare class CSSLayerBlockRule extends CSSGroupingRule {
116
+ readonly name: string;
117
+ constructor(name: string);
118
+ get cssText(): string;
119
+ set cssText(_value: string);
120
+ }
121
+ /** A live `@scope` rule. */
122
+ declare class CSSScopeRule extends CSSGroupingRule {
123
+ readonly start: string | null;
124
+ readonly end: string | null;
125
+ constructor(start: string | null, end: string | null);
126
+ get cssText(): string;
127
+ set cssText(_value: string);
128
+ }
129
+ /** A live `@starting-style` rule. */
130
+ declare class CSSStartingStyleRule extends CSSGroupingRule {
131
+ constructor();
132
+ get cssText(): string;
133
+ set cssText(_value: string);
134
+ }
135
+ /** A non-loading `@import` rule with mutable media. */
136
+ declare class CSSImportRule extends CSSRule {
137
+ #private;
138
+ readonly media: MediaList;
139
+ readonly styleSheet: null;
140
+ readonly layerName: string | null;
141
+ readonly supportsText: string | null;
142
+ constructor(href: string, mediaText?: string, layerName?: string | null, supportsText?: string | null);
143
+ get href(): string;
144
+ get cssText(): string;
145
+ set cssText(_value: string);
146
+ }
147
+ /** A live declaration block with indexed, named, and method-based access. */
148
+ declare class CSSStyleDeclaration {
149
+ #private;
150
+ readonly [index: number]: string | undefined;
151
+ readonly parentRule: CSSRule;
152
+ constructor(parentRule: CSSRule);
153
+ get cssText(): string;
154
+ set cssText(value: string);
155
+ get length(): number;
156
+ item(index: number): string;
157
+ getPropertyValue(name: string): string;
158
+ getPropertyPriority(name: string): string;
159
+ setProperty(name: string, value: string | null, priority?: string): void;
160
+ removeProperty(name: string): string;
161
+ }
162
+ /** A live `@font-face` descriptor rule. */
163
+ declare class CSSFontFaceRule extends CSSRule {
164
+ readonly style: CSSStyleDeclaration;
165
+ constructor();
166
+ get cssText(): string;
167
+ set cssText(_value: string);
168
+ }
169
+ /** Declarations ordered after a nested style rule. */
170
+ declare class CSSNestedDeclarations extends CSSRule {
171
+ #private;
172
+ constructor();
173
+ get style(): CSSStyleDeclaration;
174
+ set style(cssText: string);
175
+ get cssText(): string;
176
+ set cssText(_value: string);
177
+ }
178
+ /** A page-margin rule nested inside `CSSPageRule`. */
179
+ declare class CSSMarginRule extends CSSRule {
180
+ readonly name: string;
181
+ readonly style: CSSStyleDeclaration;
182
+ constructor(name: string);
183
+ get cssText(): string;
184
+ set cssText(_value: string);
185
+ }
186
+ /** A live `@page` rule with declarations and margin rules. */
187
+ declare class CSSPageRule extends CSSGroupingRule {
188
+ #private;
189
+ readonly style: CSSStyleDeclaration;
190
+ constructor(selectorText: string);
191
+ get selectorText(): string;
192
+ set selectorText(value: string);
193
+ get cssText(): string;
194
+ set cssText(_value: string);
195
+ }
196
+ /** A live `@position-try` declaration rule. */
197
+ declare class CSSPositionTryRule extends CSSRule {
198
+ readonly name: string;
199
+ readonly style: CSSStyleDeclaration;
200
+ constructor(name: string);
201
+ get cssText(): string;
202
+ set cssText(_value: string);
203
+ }
204
+ /** One mutable keyframe selector and declaration block. */
205
+ declare class CSSKeyframeRule extends CSSRule {
206
+ #private;
207
+ readonly style: CSSStyleDeclaration;
208
+ constructor(keyText: string);
209
+ get keyText(): string;
210
+ set keyText(value: string);
211
+ get cssText(): string;
212
+ set cssText(_value: string);
213
+ }
214
+ /** A mutable `@keyframes` rule. */
215
+ declare class CSSKeyframesRule extends CSSRule {
216
+ #private;
217
+ readonly cssRules: CSSRuleList;
218
+ constructor(name: string);
219
+ get name(): string;
220
+ set name(value: string);
221
+ get length(): number;
222
+ appendRule(ruleText: string): void;
223
+ deleteRule(select: string): void;
224
+ findRule(select: string): CSSKeyframeRule | null;
225
+ get cssText(): string;
226
+ set cssText(_value: string);
227
+ }
228
+ /** A mutable `@counter-style` descriptor rule. */
229
+ declare class CSSCounterStyleRule extends CSSRule {
230
+ #private;
231
+ constructor(name: string);
232
+ get name(): string;
233
+ set name(value: string);
234
+ get system(): string;
235
+ set system(value: string);
236
+ get symbols(): string;
237
+ set symbols(value: string);
238
+ get additiveSymbols(): string;
239
+ set additiveSymbols(value: string);
240
+ get negative(): string;
241
+ set negative(value: string);
242
+ get prefix(): string;
243
+ set prefix(value: string);
244
+ get suffix(): string;
245
+ set suffix(value: string);
246
+ get range(): string;
247
+ set range(value: string);
248
+ get pad(): string;
249
+ set pad(value: string);
250
+ get speakAs(): string;
251
+ set speakAs(value: string);
252
+ get fallback(): string;
253
+ set fallback(value: string);
254
+ get cssText(): string;
255
+ set cssText(_value: string);
256
+ }
257
+ /** A live map exposed by one font-feature-values category. */
258
+ declare class CSSFontFeatureValuesMap implements Iterable<[string, number[]]> {
259
+ #private;
260
+ constructor();
261
+ get size(): number;
262
+ set(featureValueName: string, values: number[]): this;
263
+ clear(): void;
264
+ delete(name: string): boolean;
265
+ get(name: string): number[] | undefined;
266
+ has(name: string): boolean;
267
+ entries(): MapIterator<[string, number[]]>;
268
+ keys(): MapIterator<string>;
269
+ values(): MapIterator<number[]>;
270
+ forEach(callback: (value: number[], key: string, map: CSSFontFeatureValuesMap) => void, thisArg?: unknown): void;
271
+ [Symbol.iterator](): MapIterator<[string, number[]]>;
272
+ }
273
+ /** A mutable `@font-feature-values` rule. */
274
+ declare class CSSFontFeatureValuesRule extends CSSRule {
275
+ #private;
276
+ readonly annotation: CSSFontFeatureValuesMap;
277
+ readonly ornaments: CSSFontFeatureValuesMap;
278
+ readonly stylistic: CSSFontFeatureValuesMap;
279
+ readonly swash: CSSFontFeatureValuesMap;
280
+ readonly characterVariant: CSSFontFeatureValuesMap;
281
+ readonly styleset: CSSFontFeatureValuesMap;
282
+ constructor(fontFamily: string);
283
+ get fontFamily(): string;
284
+ set fontFamily(value: string);
285
+ get cssText(): string;
286
+ set cssText(_value: string);
287
+ }
288
+ /** A live style rule with declarations and nested rules. */
289
+ declare class CSSStyleRule extends CSSGroupingRule {
290
+ #private;
291
+ readonly style: CSSStyleDeclaration;
292
+ constructor(selectorText: string);
293
+ get selectorText(): string;
294
+ set selectorText(value: string);
295
+ get cssText(): string;
296
+ set cssText(_value: string);
297
+ }
298
+ /** A mutable, browser-shaped authoring stylesheet. */
299
+ declare class CSSStyleSheet {
300
+ #private;
301
+ readonly cssRules: CSSRuleList;
302
+ readonly media: MediaList;
303
+ readonly ownerNode: null;
304
+ readonly parentStyleSheet: null;
305
+ readonly ownerRule: null;
306
+ readonly title: null;
307
+ readonly type = "text/css";
308
+ disabled: boolean;
309
+ constructor(options?: CSSStyleSheetOptions | null);
310
+ get href(): string | null;
311
+ get baseURL(): string;
312
+ insertRule(ruleText: string, index?: number): number;
313
+ deleteRule(index: number): void;
314
+ replaceSync(cssText: string): void;
315
+ replace(cssText: string): Promise<CSSStyleSheet>;
316
+ /** Serialize current state as reparsable CSS without mutating live objects. */
317
+ serialize(): string;
318
+ /** Drain opt-in mutation diagnostics without affecting CSSOM behavior. */
319
+ takeDiagnostics(): SheetOMDiagnostic[];
320
+ }
321
+ /** Forgivingly parse an existing regular stylesheet without loading imports. */
322
+ declare function parseStyleSheet(cssText: string, options?: ParseStyleSheetOptions): CSSStyleSheet;
323
+ //#endregion
324
+ export { CSSConditionRule, CSSContainerRule, CSSCounterStyleRule, CSSFontFaceRule, CSSFontFeatureValuesMap, CSSFontFeatureValuesRule, CSSGroupingRule, CSSImportRule, CSSKeyframeRule, CSSKeyframesRule, CSSLayerBlockRule, CSSMarginRule, CSSMediaRule, CSSNestedDeclarations, CSSPageRule, CSSPositionTryRule, CSSRule, CSSRuleList, CSSScopeRule, CSSStartingStyleRule, CSSStyleDeclaration, CSSStyleRule, CSSStyleSheet, CSSStyleSheetOptions, CSSSupportsRule, MediaList, ParseStyleSheetOptions, SheetOMDiagnostic, parseStyleSheet };
325
+ //# sourceMappingURL=index.d.ts.map