@mica-js/editor 0.3.3 → 0.4.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,3 @@
1
+ import { c as toWireFailure, i as isFusedBridgeError, n as FusedBridgeError, o as mapWireFailure, r as fromWireFailure, t as FUSED_WIRE_FAILURE } from "./wire-BDHL5Aj9.js";
2
+ import { _ as fusedModelSinkService, a as createFusedRuntime, c as createModelEventRouter, d as createHostPackageGateway, f as packageLockKey, g as fusedModelChannelService, h as fusedHostResourceService, i as startFusedSimulationGuest, l as createFusedDisplay, m as fusedHostPackageService, n as startFusedDisplayGuest, o as createHostModelRouter, p as fusedDisplayService, r as createViewSession, s as channelKey, t as loadFusedWorkerFactories, u as connectFusedWorkbench, v as fusedSimulationService } from "./runtime-CXYJzbbj.js";
3
+ export { FUSED_WIRE_FAILURE, FusedBridgeError, channelKey, connectFusedWorkbench, createFusedDisplay, createFusedRuntime, createHostModelRouter, createHostPackageGateway, createModelEventRouter, createViewSession, fromWireFailure, fusedDisplayService, fusedHostPackageService, fusedHostResourceService, fusedModelChannelService, fusedModelSinkService, fusedSimulationService, isFusedBridgeError, loadFusedWorkerFactories, mapWireFailure, packageLockKey, startFusedDisplayGuest, startFusedSimulationGuest, toWireFailure };
@@ -0,0 +1,537 @@
1
+ import { DeviceLock } from '@mica-js/document/fused';
2
+ import { Disposable } from '@mica-js/core/lifecycle';
3
+ import { Endpoint } from '@mica-js/document/fused';
4
+ import { Event as Event_2 } from '@mica-js/core/lifecycle';
5
+ import { WidgetAudioState as FusedAudioState } from '@mica-js/widget/audio-guest';
6
+ import { FusedDocument } from '@mica-js/document/fused';
7
+ import { DeviceRegistry as IDeviceProvider } from '@mica-js/document/fused';
8
+ import { IDisposable } from '@mica-js/core/lifecycle';
9
+ import { WidgetAudioControls as IFusedAudioControls } from '@mica-js/widget/audio-host';
10
+ import { WidgetAudioOptions as IFusedAudioOptions } from '@mica-js/widget/audio-host';
11
+ import { WidgetAudioStreamOptions as IFusedAudioStreamOptions } from '@mica-js/widget/audio-guest';
12
+ import { WidgetAudioTone as IFusedAudioTone } from '@mica-js/widget/audio-guest';
13
+ import { WidgetAudioToneOptions as IFusedAudioToneOptions } from '@mica-js/widget/audio-guest';
14
+ import { InstanceViewLayout } from '@mica-js/document/fused';
15
+ import { Placement2D } from '@mica-js/document/fused';
16
+ import { Point2D } from '@mica-js/document/fused';
17
+ import { ProgramSources } from '@mica-js/sdk/fused';
18
+ import { PropertyValue } from '@mica-js/document/fused';
19
+ import { TimePs } from '@mica-js/core';
20
+ import { WidgetAudioApi } from '@mica-js/widget/audio-guest';
21
+ import { WidgetAudioStream } from '@mica-js/widget/audio-guest';
22
+ import { WidgetAudioStreamStatus } from '@mica-js/widget/audio-guest';
23
+
24
+ export declare type AccessDecision = {
25
+ readonly allowed: true;
26
+ } | {
27
+ readonly allowed: false;
28
+ readonly code: string;
29
+ readonly message: string;
30
+ };
31
+
32
+ /** Raised for malformed expressions; `position` is the character offset of the problem. */
33
+ export declare class ConditionError extends Error {
34
+ readonly expression: string;
35
+ readonly position: number;
36
+ constructor(message: string, expression: string, position: number);
37
+ }
38
+
39
+ /**
40
+ * Who owns a key. `workbench` is the editor itself and is the only owner allowed to claim the
41
+ * namespaces in {@link BUILT_IN_CONTEXT_PREFIXES}; `host` covers every contributed view,
42
+ * container and device package.
43
+ */
44
+ declare type ContextKeyOwner = 'workbench' | 'host';
45
+
46
+ /**
47
+ * Reads a key by name. Unknown names return `undefined`, so independently contributed views may
48
+ * reference keys that are registered later without an error.
49
+ */
50
+ declare type ContextLookup = (id: string) => ContextValue | undefined;
51
+
52
+ /** Raised when a key, a value or a scope operation violates the context registry contract. */
53
+ export declare class ContextRegistrationError extends Error {
54
+ readonly reason: ContextRegistrationErrorReason;
55
+ readonly keyName: string | undefined;
56
+ constructor(message: string, reason: ContextRegistrationErrorReason, keyName: string | undefined);
57
+ }
58
+
59
+ /** Why a context key or scope operation was rejected. */
60
+ declare type ContextRegistrationErrorReason = 'duplicate-key' | 'invalid-key' | 'reserved-prefix' | 'owner-escalation' | 'type-mismatch' | 'disposed';
61
+
62
+ /** Scalar value a context key carries; a key that nobody registered reads as `undefined`. */
63
+ export declare type ContextValue = string | number | boolean;
64
+
65
+ /**
66
+ * Widens a literal default to its primitive, so `createKey('workbench.mode', 'edit')` yields
67
+ * `IContextKey<string>` and `set('simulate')` type-checks.
68
+ */
69
+ declare type ContextValueType<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : ContextValue;
70
+
71
+ /**
72
+ * Creates the editor-owned root. It defaults to `owner: 'workbench'`, so built-in keys register
73
+ * directly; hand containers and views children from `createScope()`, which default to `host` and
74
+ * reject reserved prefixes.
75
+ */
76
+ export declare function createContextKeyService(options?: IContextScopeOptions): IContextKeyService;
77
+
78
+ export declare function createWorkbench(options: IWorkbenchOptions): Promise<IWorkbench>;
79
+
80
+ export { DeviceLock }
81
+
82
+ export { Disposable }
83
+
84
+ export { Endpoint }
85
+
86
+ export { Event_2 as Event }
87
+
88
+ /** Adapt the shared audio implementation's subscriptions to the editor lifecycle convention. */
89
+ export declare function fusedAudio(api: WidgetAudioApi): IFusedAudio;
90
+
91
+ export { FusedAudioState }
92
+
93
+ export { FusedDocument }
94
+
95
+ export declare interface IAssetInfo {
96
+ readonly id: string;
97
+ /** File name including its extension; used to identify program formats. */
98
+ readonly name: string;
99
+ }
100
+
101
+ export declare interface IAssetProvider {
102
+ select(request: IAssetRequest): Promise<IAssetInfo | undefined>;
103
+ read(assetId: string, signal: AbortSignal): Promise<Uint8Array>;
104
+ }
105
+
106
+ export declare interface IAssetRequest {
107
+ readonly kind: 'image' | 'binary' | 'program';
108
+ readonly formats?: readonly string[];
109
+ readonly signal: AbortSignal;
110
+ }
111
+
112
+ /**
113
+ * A parsed condition. Parsing validates once; `evaluate` is pure and reads keys through the
114
+ * supplied lookup, so callers can evaluate the same condition against several scopes.
115
+ */
116
+ export declare interface ICondition {
117
+ readonly expression: string;
118
+ /**
119
+ * Key names the expression reads, in first-seen order. Subscribe selectively by filtering
120
+ * `IContextChangeEvent.names` with this list.
121
+ */
122
+ readonly keys: readonly string[];
123
+ evaluate(lookup: ContextLookup): boolean;
124
+ }
125
+
126
+ /** One effective value transition reported by a scope. */
127
+ declare interface IContextChange {
128
+ readonly name: string;
129
+ readonly previous: ContextValue | undefined;
130
+ readonly value: ContextValue | undefined;
131
+ }
132
+
133
+ /**
134
+ * Delivered once per scope and flush. `changes` carries previous and new effective values;
135
+ * `names` lists the same keys for callers that only filter or invalidate.
136
+ */
137
+ export declare interface IContextChangeEvent {
138
+ readonly scope: IContextScope;
139
+ readonly changes: readonly IContextChange[];
140
+ readonly names: readonly string[];
141
+ }
142
+
143
+ /**
144
+ * A typed key created inside a scope. `set` stores a local value, `reset` drops it so the key
145
+ * falls back to its parent and then to {@link IContextKey.defaultValue}, and `dispose` removes
146
+ * the key from its scope for good.
147
+ */
148
+ export declare interface IContextKey<T extends ContextValue = ContextValue> extends IDisposable {
149
+ /** Dotted name expressions reference, for example `workbench.selection.kind`. */
150
+ readonly name: string;
151
+ readonly defaultValue: T;
152
+ readonly owner: ContextKeyOwner;
153
+ /** Value stored in the owning scope; `undefined` while the key falls back to its parent. */
154
+ readonly value: T | undefined;
155
+ readonly disposed: boolean;
156
+ set(value: T): void;
157
+ reset(): void;
158
+ }
159
+
160
+ /** Extra ownership metadata for one key; the default is the owning scope's owner. */
161
+ declare interface IContextKeyOptions {
162
+ /**
163
+ * Declares who owns the key. A reserved prefix still requires the creating scope to be
164
+ * workbench-owned, so this option never unlocks built-in names from a host scope.
165
+ */
166
+ readonly owner?: ContextKeyOwner;
167
+ }
168
+
169
+ /**
170
+ * Workbench-side entry point: the root scope plus key creation. The editor owns one service and
171
+ * hands {@link IContextKeyService.createScope} children to containers and views; those children
172
+ * are host-owned and cannot claim reserved prefixes.
173
+ */
174
+ export declare interface IContextKeyService extends IDisposable {
175
+ readonly owner: ContextKeyOwner;
176
+ readonly disposed: boolean;
177
+ /** Fires with the effective changes of this scope only. */
178
+ readonly onDidChange: Event_2<IContextChangeEvent>;
179
+ /**
180
+ * Creates and registers a typed key in this scope.
181
+ *
182
+ * @throws {ContextRegistrationError} for malformed names, invalid defaults, duplicate names in
183
+ * this scope, reserved prefixes outside a workbench scope, or a disposed scope.
184
+ */
185
+ createKey<T extends ContextValue>(name: string, defaultValue: T, options?: IContextKeyOptions): IContextKey<ContextValueType<T>>;
186
+ /** Effective value: local, then nearest ancestor, then the key default; `undefined` if unknown. */
187
+ getValue(name: string): ContextValue | undefined;
188
+ /**
189
+ * Creates a child scope that falls back to this one.
190
+ *
191
+ * @param options.owner Defaults to `host`; `workbench` requires a workbench-owned parent.
192
+ */
193
+ createScope(options?: IContextScopeOptions): IContextScope;
194
+ /** Defers and merges change notifications of this whole tree; fires once per scope on exit. */
195
+ batch(run: () => void): void;
196
+ /** Parses an expression once; see {@link ICondition.keys} for selective subscriptions. */
197
+ compile(expression: string): ICondition;
198
+ /** Parses `expression` when needed and evaluates it against this scope's effective values. */
199
+ evaluate(expression: ICondition | string): boolean;
200
+ }
201
+
202
+ export declare interface IContextScope extends IContextKeyService {
203
+ readonly parent: IContextScope | undefined;
204
+ /** Distance from the workbench root; the root is `0`. */
205
+ readonly depth: number;
206
+ }
207
+
208
+ declare interface IContextScopeOptions {
209
+ /** Defaults to `workbench` for the root service and `host` for child scopes. */
210
+ readonly owner?: ContextKeyOwner;
211
+ /** Defaults to {@link BUILT_IN_CONTEXT_PREFIXES}. */
212
+ readonly reservedPrefixes?: readonly string[];
213
+ }
214
+
215
+ export declare interface IDeviceAdditionContext extends IDocumentAccessContext {
216
+ readonly device: DeviceLock;
217
+ }
218
+
219
+ export { IDeviceProvider }
220
+
221
+ export declare interface IDocumentAccess {
222
+ readonly edit: AccessDecision;
223
+ readonly run: AccessDecision;
224
+ }
225
+
226
+ export declare interface IDocumentAccessContext {
227
+ readonly document: FusedDocument;
228
+ }
229
+
230
+ /** Audio handles belong to one instance generation, including while its body is hidden. */
231
+ export declare interface IFusedAudio extends Omit<WidgetAudioApi, 'onStateChange' | 'createStream'> {
232
+ readonly onDidChangeState: Event_2<FusedAudioState>;
233
+ createStream(options: Parameters<WidgetAudioApi['createStream']>[0]): IFusedAudioStream;
234
+ }
235
+
236
+ export { IFusedAudioControls }
237
+
238
+ export { IFusedAudioOptions }
239
+
240
+ export declare interface IFusedAudioStream extends Omit<WidgetAudioStream, 'onDrain' | 'onStatus'> {
241
+ readonly onDidDrain: Event_2<void>;
242
+ readonly onDidChangeStatus: Event_2<WidgetAudioStreamStatus>;
243
+ }
244
+
245
+ export { IFusedAudioStreamOptions }
246
+
247
+ export { IFusedAudioTone }
248
+
249
+ export { IFusedAudioToneOptions }
250
+
251
+ declare interface IFusedTextTarget {
252
+ readonly kind: 'designator' | 'label' | 'reference';
253
+ readonly id: string;
254
+ }
255
+
256
+ export declare interface IResolvedWorkbenchTheme {
257
+ readonly appearance: 'dark' | 'light';
258
+ readonly colors: WorkbenchThemeColors;
259
+ }
260
+
261
+ export declare interface IWorkbench {
262
+ readonly contextKeys: IContextKeyService;
263
+ readonly onDidChangeContent: Event_2<FusedDocument>;
264
+ readonly onDidChangeSelection: Event_2<readonly IWorkbenchTarget[]>;
265
+ readonly onDidChangeState: Event_2<IWorkbenchState>;
266
+ readonly onDidReportDiagnostic: Event_2<IWorkbenchDiagnostic>;
267
+ readonly onDidRequestOpenProject: Event_2<{
268
+ readonly projectId: string;
269
+ }>;
270
+ getDocument(): FusedDocument;
271
+ getState(): IWorkbenchState;
272
+ getSelection(): readonly IWorkbenchTarget[];
273
+ getTheme(): IWorkbenchTheme;
274
+ setTheme(theme: WorkbenchTheme): void;
275
+ setSelection(targets: readonly IWorkbenchTarget[]): void;
276
+ setMode(mode: WorkbenchMode): Promise<void>;
277
+ save(): Promise<void>;
278
+ executeCommand<K extends keyof IWorkbenchCommandMap>(id: K, ...args: WorkbenchCommandArgs<IWorkbenchCommandMap[K]>): Promise<IWorkbenchCommandMap[K]['result']>;
279
+ dispose(): Promise<void>;
280
+ }
281
+
282
+ export declare interface IWorkbenchAccessProvider {
283
+ evaluateDocument(context: IDocumentAccessContext): Promise<IDocumentAccess>;
284
+ canAddDevice(context: IDeviceAdditionContext): Promise<AccessDecision>;
285
+ readonly onDidChange: Event_2<void>;
286
+ }
287
+
288
+ export declare interface IWorkbenchCommand<P = void, R = void> {
289
+ readonly params: P;
290
+ readonly result: R;
291
+ }
292
+
293
+ export declare interface IWorkbenchCommandMap {
294
+ 'workbench.openContainer': IWorkbenchCommand<{
295
+ readonly id: string;
296
+ readonly focus?: boolean;
297
+ }>;
298
+ 'workbench.closeContainer': IWorkbenchCommand;
299
+ 'workbench.setMode': IWorkbenchCommand<{
300
+ readonly mode: WorkbenchMode;
301
+ }>;
302
+ 'canvas.fit': IWorkbenchCommand;
303
+ 'canvas.zoom': IWorkbenchCommand<{
304
+ readonly factor: number;
305
+ }>;
306
+ 'canvas.setTool': IWorkbenchCommand<{
307
+ readonly tool: WorkbenchTool;
308
+ }>;
309
+ 'device.place': IWorkbenchCommand<{
310
+ readonly device: DeviceLock;
311
+ }>;
312
+ 'device.add': IWorkbenchCommand<{
313
+ readonly device: DeviceLock;
314
+ readonly placement: Placement2D;
315
+ }, string>;
316
+ 'device.setProperty': IWorkbenchCommand<{
317
+ readonly instanceId: string;
318
+ readonly key: string;
319
+ readonly value: PropertyValue;
320
+ }>;
321
+ 'device.removeProperty': IWorkbenchCommand<{
322
+ readonly instanceId: string;
323
+ readonly key: string;
324
+ }>;
325
+ 'device.move': IWorkbenchCommand<{
326
+ readonly instanceId: string;
327
+ readonly position: Point2D;
328
+ }>;
329
+ 'device.rotate': IWorkbenchCommand<{
330
+ readonly instanceId: string;
331
+ readonly degrees: number;
332
+ }>;
333
+ 'selection.delete': IWorkbenchCommand;
334
+ 'selection.rotate': IWorkbenchCommand<{
335
+ readonly degrees: number;
336
+ }>;
337
+ 'text.move': IWorkbenchCommand<{
338
+ readonly target: IFusedTextTarget;
339
+ readonly offset: Point2D;
340
+ }>;
341
+ 'reference.move': IWorkbenchCommand<{
342
+ readonly referenceId: string;
343
+ readonly position: Point2D;
344
+ }>;
345
+ 'wire.moveSegment': IWorkbenchCommand<{
346
+ readonly wireId: string;
347
+ readonly segment: number;
348
+ readonly delta: Point2D;
349
+ }>;
350
+ 'wire.add': IWorkbenchCommand<{
351
+ readonly from: Endpoint;
352
+ readonly to: Endpoint;
353
+ readonly bends?: readonly Point2D[];
354
+ }, string>;
355
+ 'reference.add': IWorkbenchCommand<{
356
+ readonly target: Endpoint;
357
+ readonly voltage: number;
358
+ readonly symbol?: 'power' | 'ground';
359
+ }, string>;
360
+ 'label.add': IWorkbenchCommand<{
361
+ readonly target: Endpoint;
362
+ readonly name: string;
363
+ }, string>;
364
+ 'document.undo': IWorkbenchCommand;
365
+ 'document.redo': IWorkbenchCommand;
366
+ 'document.save': IWorkbenchCommand;
367
+ 'view.open': IWorkbenchCommand<{
368
+ readonly instanceId: string;
369
+ readonly viewId: string;
370
+ readonly location?: 'sidebar' | 'floating';
371
+ }>;
372
+ 'view.close': IWorkbenchCommand<{
373
+ readonly instanceId: string;
374
+ readonly viewId: string;
375
+ }>;
376
+ 'view.setLocation': IWorkbenchCommand<{
377
+ readonly instanceId: string;
378
+ readonly viewId: string;
379
+ readonly location: 'sidebar' | 'floating';
380
+ }>;
381
+ 'view.setLayout': IWorkbenchCommand<{
382
+ readonly instanceId: string;
383
+ readonly layout: InstanceViewLayout | undefined;
384
+ }>;
385
+ }
386
+
387
+ export declare interface IWorkbenchContributions {
388
+ readonly containers?: readonly IWorkbenchViewContainer[];
389
+ readonly views?: readonly IWorkbenchView[];
390
+ readonly toolbar?: readonly IWorkbenchToolbarItem[];
391
+ }
392
+
393
+ export declare interface IWorkbenchDiagnostic {
394
+ readonly code: string;
395
+ readonly message: string;
396
+ readonly severity: 'error' | 'warning' | 'info';
397
+ readonly instanceId?: string;
398
+ }
399
+
400
+ export declare interface IWorkbenchExtensionContext {
401
+ readonly workbench: IWorkbench;
402
+ readonly contextKeys: IContextKeyService;
403
+ readonly signal: AbortSignal;
404
+ }
405
+
406
+ export declare interface IWorkbenchOptions {
407
+ /** Caller-owned browser context, automatically resumed on document-wide user gestures. */
408
+ readonly audio?: IFusedAudioOptions;
409
+ readonly container: HTMLElement;
410
+ readonly document: FusedDocument;
411
+ readonly saveDocument?: (document: FusedDocument) => Promise<void>;
412
+ readonly assetProvider?: IAssetProvider;
413
+ readonly deviceProvider: IDeviceProvider;
414
+ readonly programs?: ProgramSources;
415
+ readonly accessProvider?: IWorkbenchAccessProvider;
416
+ readonly viewBaseUrlTemplate: string;
417
+ readonly theme?: WorkbenchTheme;
418
+ readonly readOnly?: boolean;
419
+ readonly step?: TimePs;
420
+ readonly contributions?: IWorkbenchContributions;
421
+ }
422
+
423
+ export declare interface IWorkbenchState {
424
+ readonly mode: WorkbenchMode;
425
+ readonly busy: boolean;
426
+ readonly dirty: boolean;
427
+ readonly readOnly: boolean;
428
+ readonly canUndo: boolean;
429
+ readonly canRedo: boolean;
430
+ readonly tool: WorkbenchTool;
431
+ readonly activeContainer: string | undefined;
432
+ }
433
+
434
+ export declare interface IWorkbenchTarget {
435
+ readonly kind: WorkbenchTargetKind;
436
+ readonly id: string;
437
+ }
438
+
439
+ export declare interface IWorkbenchTheme {
440
+ readonly appearance?: WorkbenchThemeAppearance;
441
+ readonly colors?: Partial<WorkbenchThemeColors>;
442
+ }
443
+
444
+ export declare interface IWorkbenchToolbarItem {
445
+ readonly id: string;
446
+ readonly title: string;
447
+ readonly icon?: string;
448
+ readonly group?: string;
449
+ readonly order?: number;
450
+ readonly when?: string;
451
+ readonly enablement?: string;
452
+ execute(context: IWorkbenchExtensionContext): void | Promise<void>;
453
+ }
454
+
455
+ export declare interface IWorkbenchView {
456
+ readonly id: string;
457
+ readonly containerId: string;
458
+ readonly title: string;
459
+ readonly order?: number;
460
+ readonly when?: string;
461
+ mount(element: HTMLElement, context: IWorkbenchExtensionContext): Disposable | Promise<Disposable>;
462
+ }
463
+
464
+ export declare interface IWorkbenchViewContainer {
465
+ readonly id: string;
466
+ readonly title: string;
467
+ readonly icon: string;
468
+ readonly order?: number;
469
+ readonly when?: string;
470
+ }
471
+
472
+ /**
473
+ * Parses a condition expression.
474
+ *
475
+ * Supported syntax: `&&`, `||`, `!`, parentheses, `==`, `!=`, key references and the scalar
476
+ * literals `true`, `false`, `undefined`, `null`, numbers and single- or double-quoted strings.
477
+ * `!` binds tighter than comparisons, which bind tighter than `&&`, which binds tighter than
478
+ * `||`; chained comparisons need explicit parentheses. There is no `eval`/`Function` usage.
479
+ *
480
+ * @throws {ConditionError} when the expression is empty, has unbalanced parentheses, misses an
481
+ * operand or operator, uses an unsupported operator/character or leaves a trailing token.
482
+ */
483
+ export declare function parseCondition(expression: string): ICondition;
484
+
485
+ export { Placement2D }
486
+
487
+ export { Point2D }
488
+
489
+ export { PropertyValue }
490
+
491
+ export { TimePs }
492
+
493
+ export declare const WORKBENCH_DARK_COLORS: WorkbenchThemeColors;
494
+
495
+ export declare const WORKBENCH_LIGHT_COLORS: WorkbenchThemeColors;
496
+
497
+ export declare const WORKBENCH_THEME_CSS_VARIABLES: Readonly<{
498
+ readonly 'workbench.background': "--mica-bg";
499
+ readonly 'workbench.foreground': "--mica-text";
500
+ readonly 'workbench.mutedForeground': "--mica-muted";
501
+ readonly 'panel.background': "--mica-panel";
502
+ readonly border: "--mica-border";
503
+ readonly accent: "--mica-accent";
504
+ readonly 'accent.foreground': "--mica-accent-foreground";
505
+ readonly 'selection.background': "--mica-active";
506
+ readonly 'focus.border': "--mica-focus";
507
+ readonly 'canvas.background': "--mica-canvas-background";
508
+ readonly 'canvas.grid': "--mica-canvas-grid";
509
+ readonly 'canvas.foreground': "--mica-canvas-foreground";
510
+ readonly 'canvas.wire': "--mica-canvas-wire";
511
+ readonly 'canvas.pin': "--mica-canvas-pin";
512
+ readonly 'canvas.selection': "--mica-canvas-selection";
513
+ readonly 'error.foreground': "--mica-error";
514
+ readonly shadow: "--mica-shadow";
515
+ }>;
516
+
517
+ export declare type WorkbenchColorToken = keyof typeof WORKBENCH_THEME_CSS_VARIABLES;
518
+
519
+ export declare type WorkbenchCommandArgs<C extends {
520
+ readonly params: unknown;
521
+ }> = [C['params']] extends [
522
+ void
523
+ ] ? [] : [params: C['params']];
524
+
525
+ export declare type WorkbenchMode = 'edit' | 'run';
526
+
527
+ export declare type WorkbenchTargetKind = 'instance' | 'wire' | 'node' | 'label' | 'reference';
528
+
529
+ export declare type WorkbenchTheme = WorkbenchThemeAppearance | IWorkbenchTheme;
530
+
531
+ export declare type WorkbenchThemeAppearance = 'dark' | 'light' | 'system';
532
+
533
+ export declare type WorkbenchThemeColors = Readonly<Record<WorkbenchColorToken, string>>;
534
+
535
+ export declare type WorkbenchTool = 'select' | 'wire' | 'power' | 'ground' | 'label';
536
+
537
+ export { }