@labpics/colors 0.9.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,291 +1,272 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- /** The stable theme contract. `-ic` variants apply increased contrast; all four spellings are fully supported. */
5
- export type ThemeName = "light" | "dark" | "light-ic" | "dark-ic";
6
-
7
- /** A solved colour and the contrasts it actually achieves. */
8
- export interface SolvedColor {
9
- readonly kind: "color";
10
- /** The CSS custom-property name for this role, e.g. "--lab-label-primary". */
11
- readonly cssVar: string;
12
- /** The resolved colour as #RRGGBB (data; `css`/`vars` carry oklch). */
13
- readonly hex: string;
14
- /** Ready-to-serve CSS value: "oklch(L% C H)". `vars` carries the same string. */
15
- readonly css: string;
16
- /** Signed perceptual contrast (Lc) against the background. */
17
- readonly lc: number;
18
- /** WCAG 2.1 ratio (1–21) against the background. */
19
- readonly wcagRatio: number;
20
- /** The legal floor squeezed this role onto the smallest step below its senior. */
21
- readonly compressed: boolean;
22
- /**
23
- * `true` when a coloured family label (M1) lost perceptible colour on its
24
- * contract-solved lightness: the colour's M′ fell below the tint perceptibility
25
- * floor, so at the family curve's extremes (near-white / near-black) the hue is
26
- * physically indistinguishable. An honest, flagged outcome — not a silent
27
- * degradation to grey. `false` for neutral labels and coloured labels that kept
28
- * a distinguishable colour.
29
- */
30
- readonly hueVanished: boolean;
31
- /** Честный замер |ΔJ'| на отданном hex для dJ'-ролей; null у контраст-ролей (метрика — lc). */
32
- readonly achievedDj: number | null;
33
- /** The WCAG floor overrode the perceptual target. */
34
- readonly floorOverride: boolean;
35
- /**
36
- * The minimum WCAG ratio this role is legally clamped to (4.5 for AA text,
37
- * 3.0 for AA UI), or `null` for decorative / zero roles. A property of
38
- * the role's contract, not of this solve: a runtime easing between themes
39
- * uses it to hold the floor every frame of the transition.
40
- */
41
- readonly legalFloor: number | null;
4
+ /** Proof-capable V2 site. Empty arrays explicitly mean no admitted evidence. */
5
+ export interface NumericalCapabilitySiteV2 {
6
+ readonly siteId: string;
7
+ readonly stableOutcomes: ReadonlyArray<string>;
8
+ readonly compatibilityReleases: ReadonlyArray<string>;
9
+ readonly evidenceClasses: ReadonlyArray<string>;
10
+ readonly artifactIds: ReadonlyArray<string>;
11
+ readonly boundIds: ReadonlyArray<string>;
12
+ readonly proofIds: ReadonlyArray<string>;
13
+ readonly runtimeAttestations: ReadonlyArray<string>;
42
14
  }
43
15
 
44
- /** The explicit zero token: no colour here, by design (not a failure). */
45
- export interface NoneRole {
46
- readonly kind: "none";
47
- readonly cssVar: string;
16
+ /** Proof-capable numerical capability manifest. */
17
+ export interface NumericalCapabilityManifestV2 {
18
+ readonly schemaVersion: 2;
19
+ readonly coverage: string;
20
+ readonly sites: ReadonlyArray<NumericalCapabilitySiteV2>;
21
+ readonly checksum: string;
48
22
  }
49
23
 
50
- /** No colour can satisfy this role on this background, with the reason. */
51
- export interface UnreachableRole {
52
- readonly kind: "unreachable";
53
- readonly cssVar: string;
54
- /** Stable machine code, e.g. "floor_unreachable". */
55
- readonly code: string;
56
- /** Human-readable explanation. */
57
- readonly message: string;
24
+ export type Wcag22CriterionV1 =
25
+ | "sc-1.4.3-text-default"
26
+ | "sc-1.4.3-text-large-scale"
27
+ | "sc-1.4.11-ui-component-or-state"
28
+ | "sc-1.4.11-graphical-object";
29
+ export type Wcag22DecisionV1 = "pass" | "fail";
30
+ export interface Wcag22Q55BoundsV1 {
31
+ /** Decimal u64 string: Q55 values exceed JavaScript's safe integer range. */
32
+ readonly lower: string;
33
+ readonly upper: string;
58
34
  }
59
-
60
- /** A semi-transparent ladder / alpha-analog emission: the CSS carries oklch(L% C H / A), the browser composites it. */
61
- export interface TranslucentRole {
62
- readonly kind: "translucent";
63
- readonly cssVar: string;
64
- /** The tint as #RRGGBB (data) — the colour the oklch(… / A) carries. */
65
- readonly tintHex: string;
66
- /** The alpha of the emission, (0, 1]. */
67
- readonly alpha: number;
68
- /** The solid the tint composites to on the resolve background. */
69
- readonly compositeHex: string;
70
- /** Signed perceptual contrast (Lc) of the composite. */
71
- readonly compositeLc: number;
72
- /** WCAG 2.1 ratio of the composite. */
73
- readonly compositeWcag: number;
74
- /**
75
- * `true` when the requested alpha was raised to the smallest resolvable value
76
- * (α_min) because the requested transparency is not reproducible in gamut — an
77
- * honest, flagged contract degradation (mirrors `SolvedColor.compressed` /
78
- * `GlowRole.degraded`). The colour never lies: the composite still equals the
79
- * target solid byte-for-byte; only `alpha` differs from what was asked. Always
80
- * `false` for a direct ladder emission.
81
- */
82
- readonly alphaCoerced: boolean;
83
- /**
84
- * `true` when a solid family border (`border-<family>-strong`, M2) was darkened
85
- * along the family curve to meet the AA UI floor (3:1), because the raw family
86
- * tint did not clear it on this background — an honest, flagged minimal legal
87
- * shift (family hue/chroma preserved, only lightness moved). `false` for a
88
- * direct ladder emission and for legal family solids.
89
- */
90
- readonly floorCoerced: boolean;
91
- /** Ready-to-serve CSS value: "oklch(L% C H / A)". `vars` carries the same string. */
92
- readonly css: string;
35
+ export interface Wcag22AssessmentV1 {
36
+ readonly kind: "evaluated";
37
+ readonly profileId: "wcag22-srgb8-contrast-v1";
38
+ readonly criterion: Wcag22CriterionV1;
39
+ readonly foreground: string;
40
+ readonly background: string;
41
+ readonly foregroundLuminanceQ55: Wcag22Q55BoundsV1;
42
+ readonly backgroundLuminanceQ55: Wcag22Q55BoundsV1;
43
+ readonly q55Scale: string;
44
+ readonly decision: Wcag22DecisionV1;
45
+ readonly evidence: {
46
+ readonly kind: "canonical-finite-bounded";
47
+ readonly artifactId: "wcag22-srgb8-luminance-q55-v1";
48
+ readonly artifactSha256: string;
49
+ readonly boundId: "wcag22-srgb8-outward-q55-v1";
50
+ readonly proofId: "wcag22-srgb8-full-domain-q55-v1";
51
+ readonly proofSha256: string;
52
+ readonly proofPayloadSha256: string;
53
+ readonly generatorSha256: string;
54
+ readonly verifierSha256: string;
55
+ readonly profileChecksum: string;
56
+ readonly profileSha256: string;
57
+ };
93
58
  }
94
59
 
95
- /** Свечение (kind glow, labui ADR-0002 §5): screen-слои + решённая интенсивность.
96
- * Потребитель красит слои с mix-blend-mode: screen; `vars` несёт
97
- * --lab-<role> (halo, oklch), --lab-<role>-core и --lab-<role>-alpha. */
98
- export interface GlowRole {
99
- readonly kind: "glow";
100
- readonly cssVar: string;
101
- /** Слой пересвета (малый радиус), #RRGGBB. */
102
- readonly coreHex: string;
103
- /** Слой ореола — источник, #RRGGBB. */
104
- readonly haloHex: string;
105
- /** Интенсивность screen-слоя, (0, 1]. */
106
- readonly alpha: number;
107
- /** Фактический |ΔJ'| композита от фона. */
108
- readonly achievedDj: number;
109
- /** Цель недостижима — ближайший достижимый шаг (ADR-0002, закон 2). */
110
- readonly degraded: boolean;
111
- /** Ready-to-serve CSS value халo: "oklch(L% C H)". */
112
- readonly css: string;
113
- }
114
60
 
115
- export type RoleResult = SolvedColor | TranslucentRole | GlowRole | NoneRole | UnreachableRole;
116
61
 
117
- /** Пер-темная четвёрка якорных hex (light / dark / light-ic / dark-ic). */
118
- export interface ThemeAnchors {
119
- readonly light: string;
120
- readonly dark: string;
121
- readonly light_ic: string;
122
- readonly dark_ic: string;
62
+ export class AttachedMaterializationAuthority {
63
+ private constructor();
64
+ free(): void;
65
+ [Symbol.dispose](): void;
66
+ bindingEpoch(): bigint;
67
+ contentIdentity(): Uint8Array;
68
+ contextIdentity(): Uint8Array;
69
+ occurrence(): number;
70
+ outputOpacity(): number;
71
+ outputRgb(): Uint8Array;
72
+ outputSlot(): number;
73
+ physicalIdentity(): string;
74
+ presentationRoot(): number;
75
+ rendererProvenance(): string;
76
+ revision(): bigint;
77
+ sinkSequence(): bigint;
78
+ terminalCompositeRgb(): Uint8Array;
123
79
  }
124
80
 
125
- /** Источник тинта лестницы/альфа-аналога. */
126
- export type LadderSource =
127
- | { kind: "brand" }
128
- | { kind: "family"; key: string }
129
- | { kind: "sentiment"; name: string }
130
- | { kind: "neutral"; pick: "mid" | "edge" | "inverted" | "light" | "dark" };
131
-
132
- /** Рецепт роли из физического меню движка. */
133
- export type RoleRecipe =
134
- | { kind: "text-anchor"; fraction: number; floor: "aa-text" | "aa-ui" | "none" }
135
- | { kind: "dj-anchor"; light: number; dark: number }
136
- | { kind: "decorative-lc"; magnitude: number }
137
- | { kind: "ladder"; source: LadderSource; position: string }
138
- | { kind: "glow"; source: LadderSource; step: "subtle" | "base" | "bloom" }
139
- | { kind: "pair-fill"; source: LadderSource }
140
- | { kind: "pair-label"; source: LadderSource; fraction: number; floor: "aa-text" | "aa-ui" | "none" }
141
- | { kind: "alpha-analog"; of: LadderSource; alpha: number }
142
- | { kind: "zero" };
143
-
144
- /** Полный конфиг дизайн-системы клиента — вход loadConfig (JSON.stringify(config)). */
145
- export interface ThemeConfig {
146
- readonly brand: ThemeAnchors;
147
- readonly neutral: {
148
- readonly anchors: { light: string; mid: string; dark: string };
149
- readonly tint: {
150
- ratio: number;
151
- target_mp: number;
152
- hue_stiffness: number;
153
- hue_override_deg?: number;
154
- };
155
- readonly edge?: ThemeAnchors;
156
- readonly inverted?: ThemeAnchors;
157
- };
158
- readonly palette: ReadonlyArray<{ key: string; anchors: ThemeAnchors }>;
159
- readonly sentiments: {
160
- readonly categories: ReadonlyArray<{
161
- name: string;
162
- family: string;
163
- hue_floor_deg?: number;
164
- preferred_side?: -1 | 1;
165
- }>;
166
- readonly hardness: number;
167
- readonly chroma_fraction: number;
168
- };
169
- readonly themes: ReadonlyArray<{ name: string; preset: "srgb" | "dim" | "srgb-ic" | "dim-ic" }>;
170
- /** Словарь ролей дизайн-системы. Конфиг обязан нести собственные роли; пустой
171
- * контракт (без `roles` и `aliases`) отклоняется на загрузке. */
172
- readonly roles?: ReadonlyArray<{ name: string; recipe: RoleRecipe }>;
173
- readonly aliases?: ReadonlyArray<{ alias: string; target: string }>;
81
+ export class ProgramAttachedRender {
82
+ private constructor();
83
+ free(): void;
84
+ [Symbol.dispose](): void;
85
+ bindingEpoch(): bigint;
86
+ contentIdentity(): Uint8Array;
87
+ contextIdentity(): Uint8Array;
88
+ occurrence(): number;
89
+ outputOpacity(): number;
90
+ outputRgb(): Uint8Array;
91
+ outputSlot(): number;
92
+ physicalIdentity(): string;
93
+ presentationRoot(): number;
94
+ revision(): bigint;
95
+ sinkOutput(): number;
96
+ sinkSequence(): bigint;
97
+ terminalCompositeRgb(): Uint8Array | undefined;
174
98
  }
175
99
 
176
- /** The full result of resolving one background under one theme. */
177
- export interface ResolvedTheme {
178
- readonly theme: ThemeName;
179
- readonly background: string;
180
- /**
181
- * Reachable roles only. Values are ready-to-serve CSS in ONE form:
182
- * "oklch(L% C H)" for solid roles, "oklch(L% C H / A)" for semi-transparent
183
- * ladder/alpha-analog roles. Solved in the sRGB gamut (oklch is the
184
- * notation, not a gamut extension); byte-exact vs `SolvedColor.hex` and
185
- * `TranslucentRole.tintHex` (`compositeHex` is the background-specific
186
- * composite, not the emitted token).
187
- * Scope: this is resolveTheme's contract (applyTheme/watchTheme inject it
188
- * verbatim); adaptTheme's per-frame easing writes concrete interpolated
189
- * colours and is not bound by the emission form.
190
- */
191
- readonly vars: Record<string, string>;
192
- /** Every role, keyed by its stable role key (without the --lab- prefix). */
193
- readonly roles: Record<string, RoleResult>;
100
+ export class ProgramAttachedSnapshot {
101
+ private constructor();
102
+ free(): void;
103
+ [Symbol.dispose](): void;
104
+ hasRender(): boolean;
105
+ outputCount(): number;
106
+ outputOpacity(index: number): number;
107
+ outputRgb(index: number): Uint8Array;
108
+ outputSlot(index: number): number;
109
+ render(): ProgramAttachedRender | undefined;
110
+ readonly state: string;
194
111
  }
195
112
 
196
-
197
-
198
- /**
199
- * A contrast engine over a consumer-supplied design system. Construct with
200
- * [`LabColors::new`], load a config with [`loadConfig`](LabColors::load_config),
201
- * then call [`resolve_theme`](LabColors::resolve_theme) many times; identical
202
- * calls are served from the contract cache.
203
- */
204
- export class LabColors {
113
+ export class ProgramAttachment {
114
+ private constructor();
205
115
  free(): void;
206
116
  [Symbol.dispose](): void;
207
117
  /**
208
- * PROTOTYPE — NOT part of the public API (unlisted, `_`-prefixed; may change
209
- * or be removed without notice). Recheck one foreground set against MANY
210
- * background samples in a single call. The reactive controller's worst-case
211
- * loop rechecks the same foregrounds against every sample of a varying
212
- * backdrop; the dominant per-foreground CAM16 forward is background-
213
- * independent, so this shares it across all samples instead of recomputing it
214
- * per `recheckContrast` call.
215
- *
216
- * Returns a flat, background-major `Float64Array`: sample `s`, foreground `i`
217
- * is at `(s * fgHexes.length + i) * 2` (`lc`) and `+1` (`wcagRatio`). The
218
- * values are byte-identical to calling `recheckContrast(bgHexes[s], fgHexes,
219
- * theme)` for each `s`. Wiring the runtime to it is an OWNER decision (it
220
- * changes the controller↔engine call shape); it is measured, not adopted.
118
+ * Потребляет attachment только после подтверждения внешнего revoke caller-ом.
119
+ */
120
+ dispose(confirmed: boolean): void;
121
+ /**
122
+ * Допускает authority только из текущего committed head attachment.
221
123
  */
222
- _recheckContrastMulti(bg_hexes: string[], fg_hexes: string[], theme: string): Float64Array;
124
+ materializationAuthority(): AttachedMaterializationAuthority;
223
125
  /**
224
- * Загрузить конфиг дизайн-системы (JSON по типу `ThemeConfig` из `.d.ts`).
225
- *
226
- * Полный preflight движка: невалидный конфиг отклоняется структурной
227
- * ошибкой `invalid_config: …` и НЕ меняет состояние. После успешной
228
- * загрузки `resolveTheme` эмитит роли конфига (включая полупрозрачные
229
- * роли лестницы — эмиссия `oklch(L% C H / α)`). Возвращает отпечаток
230
- * конфига — 16 hex-символов;
231
- * разные конфиги дают разные отпечатки (и разные кэш-пространства).
126
+ * Проверяет переданные caller-ом revision, identity и epoch против current head.
232
127
  */
233
- loadConfig(json: string): string;
128
+ materializationAuthorityFor(revision: bigint, content_identity: Uint8Array, binding_epoch: bigint): AttachedMaterializationAuthority;
234
129
  /**
235
- * Calculate the muddiness score (0 to 1) of an sRGB hex colour.
130
+ * Атомарно применяет observed revision через host sink.
236
131
  */
237
- muddiness(hex: string): number;
132
+ updateObserved(revision: bigint, scenario_ids: Uint32Array, surfaces: Uint8Array, surface_count: number): ProgramAttachedSnapshot;
238
133
  /**
239
- * Create an engine with no design system loaded.
240
- *
241
- * The engine is agnostic (ADR-0001): it carries no built-in role table, so
242
- * [`resolveTheme`](LabColors::resolve_theme) rejects with `config_required`
243
- * until [`loadConfig`](LabColors::load_config) supplies a design system.
134
+ * Атомарно отзывает owned sink для недоступной revision.
244
135
  */
245
- constructor();
136
+ updateUnknown(revision: bigint, reason_id: number): ProgramAttachedSnapshot;
137
+ }
138
+
139
+ /**
140
+ * Публичный runtime одного скомпилированного Program.
141
+ */
142
+ export class ProgramRuntime {
143
+ private constructor();
144
+ free(): void;
145
+ [Symbol.dispose](): void;
246
146
  /**
247
- * Recheck the contrasts `fgHexes` achieve against `bgHex` under `theme` —
248
- * the cheap per-frame primitive a reactive runtime uses to decide whether
249
- * already-resolved colours still pass against a changed background (re-solve
250
- * only when they stably do not). No full solve: one perceptual-model forward
251
- * for the background plus one per foreground.
252
- *
253
- * Returns a `Float64Array` of `[lc, wcagRatio]` pairs, interleaved and in the
254
- * order of `fgHexes`: index `2*i` is foreground `i`'s signed `Lc`, `2*i+1`
255
- * its WCAG ratio. Rejects (structured `{code, message}`) on an invalid hex or
256
- * an unknown theme.
147
+ * Атомарный observed update. `surfaces` — row-major
148
+ * `scenario_ids.len() × surface_count × 3` bytes.
257
149
  */
258
- recheckContrast(bg_hex: string, fg_hexes: string[], theme: string): Float64Array;
150
+ updateObserved(revision: bigint, scenario_ids: Uint32Array, surfaces: Uint8Array, surface_count: number): ProgramSnapshot;
151
+ updateUnknown(revision: bigint, reason_id: number): ProgramSnapshot;
152
+ }
153
+
154
+ /**
155
+ * Owned snapshot одного Program update.
156
+ */
157
+ export class ProgramSnapshot {
158
+ private constructor();
159
+ free(): void;
160
+ [Symbol.dispose](): void;
161
+ outputCount(): number;
162
+ outputOpacity(index: number): number;
163
+ outputRgb(index: number): Uint8Array;
164
+ outputSlot(index: number): number;
259
165
  /**
260
- * Resolve every role for `bgHex` under `theme` (`"light" | "dark" |
261
- * "light-ic" | "dark-ic"`).
262
- *
263
- * Returns a `ResolvedTheme` object. Per-role unreachability is part of a
264
- * successful result (each role carries its own `kind`); only whole-call
265
- * failures reject (no config loaded yet as `config_required`, invalid hex,
266
- * unknown theme, and the by-construction-unreachable oklch serialisation
267
- * failure as `internal_error`) — as a structured `"<code>: <message>"`
268
- * error, never an unwound panic.
166
+ * Stable lifecycle key: waiting|ready|stale|failed.
269
167
  */
270
- resolveTheme(bg_hex: string, theme: string): ResolvedTheme;
168
+ readonly state: string;
271
169
  }
272
170
 
171
+ /**
172
+ * Создаёт один публичный attachment и передаёт все внешние эффекты в `host`.
173
+ */
174
+ export function attachProgramWire(bytes: Uint8Array, stream_id: number, output_slot: number, sink_output: number, presentation_root: number, occurrence: number, host: Function): ProgramAttachment;
175
+
176
+ /**
177
+ * Компилирует canonical Program wire bytes и создаёт одну runtime Session.
178
+ */
179
+ export function compileProgramWire(bytes: Uint8Array, stream_id: number): ProgramRuntime;
180
+
181
+ /**
182
+ * Decodes untrusted certificate bytes into immutable metadata for inspection
183
+ * only. The opaque body, producer capability, and admission state stay in
184
+ * Core and are not projected to JavaScript.
185
+ */
186
+ export function decodeCertificateEnvelope(bytes: Uint8Array): any;
187
+
188
+ /**
189
+ * Точная оценка WCAG 2.2 одной финальной пары sRGB8.
190
+ */
191
+ export function evaluateWcag22(foreground_hex: string, background_hex: string, criterion: string): Wcag22AssessmentV1;
192
+
193
+ /**
194
+ * Выдаёт собственную копию байтов сертификата встроенного дескриптора исходников Core.
195
+ * Идентичность и маркер создаёт Core; capability и состояние приёма остаются внутри.
196
+ */
197
+ export function issueSourceCertificateEnvelope(): Uint8Array;
198
+
199
+ /**
200
+ * Единственный публичный манифест численных возможностей.
201
+ */
202
+ export function numericalCapabilityManifest(): NumericalCapabilityManifestV2;
203
+
273
204
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
274
205
 
275
206
  export interface InitOutput {
276
207
  readonly memory: WebAssembly.Memory;
277
- readonly __wbg_labcolors_free: (a: number, b: number) => void;
278
- readonly labcolors__recheckContrastMulti: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
279
- readonly labcolors_loadConfig: (a: number, b: number, c: number, d: number) => void;
280
- readonly labcolors_muddiness: (a: number, b: number, c: number, d: number) => void;
281
- readonly labcolors_new: () => number;
282
- readonly labcolors_recheckContrast: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
283
- readonly labcolors_resolveTheme: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
284
- readonly __wbindgen_export: (a: number, b: number) => number;
285
- readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
286
- readonly __wbindgen_export3: (a: number) => void;
208
+ readonly __wbg_attachedmaterializationauthority_free: (a: number, b: number) => void;
209
+ readonly __wbg_programattachedrender_free: (a: number, b: number) => void;
210
+ readonly __wbg_programattachedsnapshot_free: (a: number, b: number) => void;
211
+ readonly __wbg_programattachment_free: (a: number, b: number) => void;
212
+ readonly __wbg_programruntime_free: (a: number, b: number) => void;
213
+ readonly __wbg_programsnapshot_free: (a: number, b: number) => void;
214
+ readonly attachProgramWire: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
215
+ readonly attachedmaterializationauthority_bindingEpoch: (a: number) => bigint;
216
+ readonly attachedmaterializationauthority_contentIdentity: (a: number, b: number) => void;
217
+ readonly attachedmaterializationauthority_contextIdentity: (a: number, b: number) => void;
218
+ readonly attachedmaterializationauthority_occurrence: (a: number) => number;
219
+ readonly attachedmaterializationauthority_outputOpacity: (a: number) => number;
220
+ readonly attachedmaterializationauthority_outputRgb: (a: number, b: number) => void;
221
+ readonly attachedmaterializationauthority_outputSlot: (a: number) => number;
222
+ readonly attachedmaterializationauthority_physicalIdentity: (a: number, b: number) => void;
223
+ readonly attachedmaterializationauthority_presentationRoot: (a: number) => number;
224
+ readonly attachedmaterializationauthority_rendererProvenance: (a: number, b: number) => void;
225
+ readonly attachedmaterializationauthority_revision: (a: number) => bigint;
226
+ readonly attachedmaterializationauthority_sinkSequence: (a: number) => bigint;
227
+ readonly attachedmaterializationauthority_terminalCompositeRgb: (a: number, b: number) => void;
228
+ readonly compileProgramWire: (a: number, b: number, c: number, d: number) => void;
229
+ readonly decodeCertificateEnvelope: (a: number, b: number, c: number) => void;
230
+ readonly evaluateWcag22: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
231
+ readonly issueSourceCertificateEnvelope: (a: number) => void;
232
+ readonly numericalCapabilityManifest: (a: number) => void;
233
+ readonly programattachedrender_bindingEpoch: (a: number) => bigint;
234
+ readonly programattachedrender_contentIdentity: (a: number, b: number) => void;
235
+ readonly programattachedrender_contextIdentity: (a: number, b: number) => void;
236
+ readonly programattachedrender_occurrence: (a: number) => number;
237
+ readonly programattachedrender_outputOpacity: (a: number) => number;
238
+ readonly programattachedrender_outputRgb: (a: number, b: number) => void;
239
+ readonly programattachedrender_outputSlot: (a: number) => number;
240
+ readonly programattachedrender_physicalIdentity: (a: number, b: number) => void;
241
+ readonly programattachedrender_presentationRoot: (a: number) => number;
242
+ readonly programattachedrender_revision: (a: number) => bigint;
243
+ readonly programattachedrender_sinkOutput: (a: number) => number;
244
+ readonly programattachedrender_sinkSequence: (a: number) => bigint;
245
+ readonly programattachedrender_terminalCompositeRgb: (a: number, b: number) => void;
246
+ readonly programattachedsnapshot_hasRender: (a: number) => number;
247
+ readonly programattachedsnapshot_outputCount: (a: number) => number;
248
+ readonly programattachedsnapshot_outputOpacity: (a: number, b: number, c: number) => void;
249
+ readonly programattachedsnapshot_outputRgb: (a: number, b: number, c: number) => void;
250
+ readonly programattachedsnapshot_outputSlot: (a: number, b: number, c: number) => void;
251
+ readonly programattachedsnapshot_render: (a: number) => number;
252
+ readonly programattachedsnapshot_state: (a: number, b: number) => void;
253
+ readonly programattachment_dispose: (a: number, b: number, c: number) => void;
254
+ readonly programattachment_materializationAuthority: (a: number, b: number) => void;
255
+ readonly programattachment_materializationAuthorityFor: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
256
+ readonly programattachment_updateObserved: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
257
+ readonly programattachment_updateUnknown: (a: number, b: number, c: number, d: number) => void;
258
+ readonly programruntime_updateObserved: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
259
+ readonly programruntime_updateUnknown: (a: number, b: number, c: number, d: number) => void;
260
+ readonly programsnapshot_outputCount: (a: number) => number;
261
+ readonly programsnapshot_outputOpacity: (a: number, b: number, c: number) => void;
262
+ readonly programsnapshot_outputRgb: (a: number, b: number, c: number) => void;
263
+ readonly programsnapshot_outputSlot: (a: number, b: number, c: number) => void;
264
+ readonly programsnapshot_state: (a: number, b: number) => void;
265
+ readonly __wbindgen_export: (a: number) => void;
287
266
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
288
- readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
267
+ readonly __wbindgen_export2: (a: number, b: number) => number;
268
+ readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
269
+ readonly __wbindgen_export4: (a: number, b: number, c: number, d: number) => number;
289
270
  }
290
271
 
291
272
  export type SyncInitInput = BufferSource | WebAssembly.Module;