@feltmaps/js-sdk 1.7.0-next.1 → 1.7.0-next.3

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.
package/handler.d.ts ADDED
@@ -0,0 +1,4229 @@
1
+ import { z, ZodError } from 'zod';
2
+ import { z as zInfer, E as Element, G as GeoJsonGeometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, aa as Layer, ad as LayerGroup, ag as LegendItem, aE as LayerFilters, ap as LayerFeature, bf as UnwrapPromise, L as LayersController, aV as GeoJsonFeature, aI as GetLayerCategoriesGroup, aK as GetLayerHistogramBin, aG as AggregationMethod, ar as LayerSchema, ab as LayerChangeCallbackParams, ae as LayerGroupChangeCallbackParams, ah as LegendItemChangeCallbackParams, aB as FilterTernary, h as MapDetails, i as EntityNode, T as ToolType, j as ToolSettingsMap, k as ToolSettingsChangeEvent, V as ViewportState, n as ViewportConstraints, bg as UnionToIntersection, bh as PromiseOrNot } from './types-B241Rd9q.js';
3
+
4
+ type Method<TRequest extends {
5
+ type: string;
6
+ params?: any;
7
+ }, TResponse> = {
8
+ request: TRequest;
9
+ response: TResponse;
10
+ };
11
+ type Listener<TOptions, TParams> = {
12
+ options: TOptions;
13
+ eventParams: TParams;
14
+ };
15
+ type ListenerNoOptions<TParams> = {
16
+ eventParams: TParams;
17
+ };
18
+
19
+ declare const GetElementMessage: z.ZodObject<{
20
+ type: z.ZodLiteral<"getElement">;
21
+ params: z.ZodString;
22
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
23
+ params: string;
24
+ type: "getElement";
25
+ }, {
26
+ params: string;
27
+ type: "getElement";
28
+ }>;
29
+ declare const GetElementGeometryMessage: z.ZodObject<{
30
+ type: z.ZodLiteral<"getElementGeometry">;
31
+ params: z.ZodString;
32
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
33
+ params: string;
34
+ type: "getElementGeometry";
35
+ }, {
36
+ params: string;
37
+ type: "getElementGeometry";
38
+ }>;
39
+ declare const GetElementsMessage: z.ZodObject<{
40
+ type: z.ZodLiteral<"getElements">;
41
+ params: z.ZodOptional<z.ZodObject<{
42
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ ids?: string[] | undefined;
45
+ }, {
46
+ ids?: string[] | undefined;
47
+ }>>;
48
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
49
+ type: "getElements";
50
+ params?: {
51
+ ids?: string[] | undefined;
52
+ } | undefined;
53
+ }, {
54
+ type: "getElements";
55
+ params?: {
56
+ ids?: string[] | undefined;
57
+ } | undefined;
58
+ }>;
59
+ declare const GetGroupMessage$1: z.ZodObject<{
60
+ type: z.ZodLiteral<"getElementGroup">;
61
+ params: z.ZodString;
62
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
63
+ params: string;
64
+ type: "getElementGroup";
65
+ }, {
66
+ params: string;
67
+ type: "getElementGroup";
68
+ }>;
69
+ declare const GetGroupsMessage$1: z.ZodObject<{
70
+ type: z.ZodLiteral<"getElementGroups">;
71
+ params: z.ZodOptional<z.ZodObject<{
72
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ ids?: string[] | undefined;
75
+ }, {
76
+ ids?: string[] | undefined;
77
+ }>>;
78
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
79
+ type: "getElementGroups";
80
+ params?: {
81
+ ids?: string[] | undefined;
82
+ } | undefined;
83
+ }, {
84
+ type: "getElementGroups";
85
+ params?: {
86
+ ids?: string[] | undefined;
87
+ } | undefined;
88
+ }>;
89
+ declare const SetElementGroupVisibilityMessage: z.ZodObject<{
90
+ type: z.ZodLiteral<"setElementGroupVisibility">;
91
+ params: z.ZodObject<{
92
+ show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
+ hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ show?: string[] | undefined;
96
+ hide?: string[] | undefined;
97
+ }, {
98
+ show?: string[] | undefined;
99
+ hide?: string[] | undefined;
100
+ }>;
101
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
102
+ params: {
103
+ show?: string[] | undefined;
104
+ hide?: string[] | undefined;
105
+ };
106
+ type: "setElementGroupVisibility";
107
+ }, {
108
+ params: {
109
+ show?: string[] | undefined;
110
+ hide?: string[] | undefined;
111
+ };
112
+ type: "setElementGroupVisibility";
113
+ }>;
114
+ declare const OnElementChangeMessage: z.ZodObject<{
115
+ eventName: z.ZodLiteral<"onElementChange">;
116
+ id: z.ZodString;
117
+ options: z.ZodObject<{
118
+ id: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ id: string;
121
+ }, {
122
+ id: string;
123
+ }>;
124
+ }, "strict", z.ZodTypeAny, {
125
+ options: {
126
+ id: string;
127
+ };
128
+ id: string;
129
+ eventName: "onElementChange";
130
+ }, {
131
+ options: {
132
+ id: string;
133
+ };
134
+ id: string;
135
+ eventName: "onElementChange";
136
+ }>;
137
+ declare const OnElementDeleteMessage: z.ZodObject<{
138
+ eventName: z.ZodLiteral<"onElementDelete">;
139
+ id: z.ZodString;
140
+ options: z.ZodObject<{
141
+ id: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ }, {
145
+ id: string;
146
+ }>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ options: {
149
+ id: string;
150
+ };
151
+ id: string;
152
+ eventName: "onElementDelete";
153
+ }, {
154
+ options: {
155
+ id: string;
156
+ };
157
+ id: string;
158
+ eventName: "onElementDelete";
159
+ }>;
160
+ declare const OnElementGroupChangeMessage: z.ZodObject<{
161
+ eventName: z.ZodLiteral<"onElementGroupChange">;
162
+ id: z.ZodString;
163
+ options: z.ZodObject<{
164
+ id: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ id: string;
167
+ }, {
168
+ id: string;
169
+ }>;
170
+ }, "strict", z.ZodTypeAny, {
171
+ options: {
172
+ id: string;
173
+ };
174
+ id: string;
175
+ eventName: "onElementGroupChange";
176
+ }, {
177
+ options: {
178
+ id: string;
179
+ };
180
+ id: string;
181
+ eventName: "onElementGroupChange";
182
+ }>;
183
+ declare const CreateElementMessage: z.ZodObject<{
184
+ type: z.ZodLiteral<"createElement">;
185
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<z.objectUtil.extendShape<{
186
+ id: z.ZodOptional<z.ZodString>;
187
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
+ color: z.ZodOptional<z.ZodString>;
189
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
192
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
193
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ type: z.ZodOptional<z.ZodLiteral<"Place">>;
195
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
196
+ symbol: z.ZodOptional<z.ZodString>;
197
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
198
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
199
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
200
+ id: z.ZodString;
201
+ groupId: z.ZodNullable<z.ZodString>;
202
+ color: z.ZodString;
203
+ name: z.ZodNullable<z.ZodString>;
204
+ description: z.ZodNullable<z.ZodString>;
205
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
206
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
207
+ }, {
208
+ imageUrl: z.ZodNullable<z.ZodString>;
209
+ }>, {
210
+ type: z.ZodLiteral<"Place">;
211
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
212
+ symbol: z.ZodString;
213
+ frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
214
+ hideLabel: z.ZodBoolean;
215
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
216
+ type: "Place";
217
+ coordinates: [number, number];
218
+ symbol?: string | undefined;
219
+ groupId?: string | null | undefined;
220
+ color?: string | undefined;
221
+ name?: string | null | undefined;
222
+ description?: string | null | undefined;
223
+ attributes?: Record<string, unknown> | undefined;
224
+ interaction?: "default" | "locked" | undefined;
225
+ imageUrl?: string | null | undefined;
226
+ frame?: "frame-circle" | "frame-square" | null | undefined;
227
+ hideLabel?: boolean | undefined;
228
+ }, {
229
+ type: "Place";
230
+ coordinates: [number, number];
231
+ symbol?: string | undefined;
232
+ groupId?: string | null | undefined;
233
+ color?: string | undefined;
234
+ name?: string | null | undefined;
235
+ description?: string | null | undefined;
236
+ attributes?: Record<string, unknown> | undefined;
237
+ interaction?: "default" | "locked" | undefined;
238
+ imageUrl?: string | null | undefined;
239
+ frame?: "frame-circle" | "frame-square" | null | undefined;
240
+ hideLabel?: boolean | undefined;
241
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
242
+ id: z.ZodOptional<z.ZodString>;
243
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ color: z.ZodOptional<z.ZodString>;
245
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
248
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
249
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
251
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
252
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
253
+ type: z.ZodOptional<z.ZodLiteral<"Path">>;
254
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
255
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
256
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
257
+ endCaps: z.ZodOptional<z.ZodBoolean>;
258
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
259
+ id: z.ZodString;
260
+ groupId: z.ZodNullable<z.ZodString>;
261
+ color: z.ZodString;
262
+ name: z.ZodNullable<z.ZodString>;
263
+ description: z.ZodNullable<z.ZodString>;
264
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
265
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
266
+ }, {
267
+ imageUrl: z.ZodNullable<z.ZodString>;
268
+ }>, {
269
+ strokeOpacity: z.ZodNumber;
270
+ strokeWidth: z.ZodNumber;
271
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
272
+ }>, {
273
+ type: z.ZodLiteral<"Path">;
274
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
275
+ distanceMarker: z.ZodBoolean;
276
+ routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
277
+ endCaps: z.ZodBoolean;
278
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
279
+ type: "Path";
280
+ coordinates: [number, number][][];
281
+ groupId?: string | null | undefined;
282
+ color?: string | undefined;
283
+ name?: string | null | undefined;
284
+ description?: string | null | undefined;
285
+ attributes?: Record<string, unknown> | undefined;
286
+ interaction?: "default" | "locked" | undefined;
287
+ imageUrl?: string | null | undefined;
288
+ strokeOpacity?: number | undefined;
289
+ strokeWidth?: number | undefined;
290
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
291
+ distanceMarker?: boolean | undefined;
292
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
293
+ endCaps?: boolean | undefined;
294
+ }, {
295
+ type: "Path";
296
+ coordinates: [number, number][][];
297
+ groupId?: string | null | undefined;
298
+ color?: string | undefined;
299
+ name?: string | null | undefined;
300
+ description?: string | null | undefined;
301
+ attributes?: Record<string, unknown> | undefined;
302
+ interaction?: "default" | "locked" | undefined;
303
+ imageUrl?: string | null | undefined;
304
+ strokeOpacity?: number | undefined;
305
+ strokeWidth?: number | undefined;
306
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
307
+ distanceMarker?: boolean | undefined;
308
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
309
+ endCaps?: boolean | undefined;
310
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
311
+ id: z.ZodOptional<z.ZodString>;
312
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ color: z.ZodOptional<z.ZodString>;
314
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
317
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
318
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
320
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
321
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
322
+ type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
323
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
324
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
325
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
326
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
327
+ id: z.ZodString;
328
+ groupId: z.ZodNullable<z.ZodString>;
329
+ color: z.ZodString;
330
+ name: z.ZodNullable<z.ZodString>;
331
+ description: z.ZodNullable<z.ZodString>;
332
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
333
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
334
+ }, {
335
+ imageUrl: z.ZodNullable<z.ZodString>;
336
+ }>, {
337
+ strokeOpacity: z.ZodNumber;
338
+ strokeWidth: z.ZodNumber;
339
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
340
+ }>, {
341
+ type: z.ZodLiteral<"Polygon">;
342
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
343
+ fillOpacity: z.ZodNumber;
344
+ areaMarker: z.ZodBoolean;
345
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
346
+ type: "Polygon";
347
+ coordinates: [number, number][][];
348
+ groupId?: string | null | undefined;
349
+ color?: string | undefined;
350
+ name?: string | null | undefined;
351
+ description?: string | null | undefined;
352
+ attributes?: Record<string, unknown> | undefined;
353
+ interaction?: "default" | "locked" | undefined;
354
+ imageUrl?: string | null | undefined;
355
+ strokeOpacity?: number | undefined;
356
+ strokeWidth?: number | undefined;
357
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
358
+ fillOpacity?: number | undefined;
359
+ areaMarker?: boolean | undefined;
360
+ }, {
361
+ type: "Polygon";
362
+ coordinates: [number, number][][];
363
+ groupId?: string | null | undefined;
364
+ color?: string | undefined;
365
+ name?: string | null | undefined;
366
+ description?: string | null | undefined;
367
+ attributes?: Record<string, unknown> | undefined;
368
+ interaction?: "default" | "locked" | undefined;
369
+ imageUrl?: string | null | undefined;
370
+ strokeOpacity?: number | undefined;
371
+ strokeWidth?: number | undefined;
372
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
373
+ fillOpacity?: number | undefined;
374
+ areaMarker?: boolean | undefined;
375
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
376
+ id: z.ZodOptional<z.ZodString>;
377
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ color: z.ZodOptional<z.ZodString>;
379
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
382
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
383
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
385
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
386
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
387
+ type: z.ZodOptional<z.ZodLiteral<"Circle">>;
388
+ center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
389
+ radius: z.ZodOptional<z.ZodNumber>;
390
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
391
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
392
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
393
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
394
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
395
+ id: z.ZodString;
396
+ groupId: z.ZodNullable<z.ZodString>;
397
+ color: z.ZodString;
398
+ name: z.ZodNullable<z.ZodString>;
399
+ description: z.ZodNullable<z.ZodString>;
400
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
401
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
402
+ }, {
403
+ imageUrl: z.ZodNullable<z.ZodString>;
404
+ }>, {
405
+ strokeOpacity: z.ZodNumber;
406
+ strokeWidth: z.ZodNumber;
407
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
408
+ }>, {
409
+ type: z.ZodLiteral<"Circle">;
410
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
411
+ radius: z.ZodNumber;
412
+ radiusMarker: z.ZodBoolean;
413
+ radiusDisplayAngle: z.ZodNumber;
414
+ radiusDisplayUnit: z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>;
415
+ fillOpacity: z.ZodNumber;
416
+ }>, "type" | "center" | "radius">>, "id">, "strip", z.ZodTypeAny, {
417
+ type: "Circle";
418
+ center: [number, number];
419
+ radius: number;
420
+ groupId?: string | null | undefined;
421
+ color?: string | undefined;
422
+ name?: string | null | undefined;
423
+ description?: string | null | undefined;
424
+ attributes?: Record<string, unknown> | undefined;
425
+ interaction?: "default" | "locked" | undefined;
426
+ imageUrl?: string | null | undefined;
427
+ strokeOpacity?: number | undefined;
428
+ strokeWidth?: number | undefined;
429
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
430
+ fillOpacity?: number | undefined;
431
+ radiusMarker?: boolean | undefined;
432
+ radiusDisplayAngle?: number | undefined;
433
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
434
+ }, {
435
+ type: "Circle";
436
+ center: [number, number];
437
+ radius: number;
438
+ groupId?: string | null | undefined;
439
+ color?: string | undefined;
440
+ name?: string | null | undefined;
441
+ description?: string | null | undefined;
442
+ attributes?: Record<string, unknown> | undefined;
443
+ interaction?: "default" | "locked" | undefined;
444
+ imageUrl?: string | null | undefined;
445
+ strokeOpacity?: number | undefined;
446
+ strokeWidth?: number | undefined;
447
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
448
+ fillOpacity?: number | undefined;
449
+ radiusMarker?: boolean | undefined;
450
+ radiusDisplayAngle?: number | undefined;
451
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
452
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
453
+ id: z.ZodOptional<z.ZodString>;
454
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ color: z.ZodOptional<z.ZodString>;
456
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
460
+ type: z.ZodOptional<z.ZodLiteral<"Marker">>;
461
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
462
+ opacity: z.ZodOptional<z.ZodNumber>;
463
+ size: z.ZodOptional<z.ZodNumber>;
464
+ zoom: z.ZodOptional<z.ZodNumber>;
465
+ }, Pick<z.objectUtil.extendShape<{
466
+ id: z.ZodString;
467
+ groupId: z.ZodNullable<z.ZodString>;
468
+ color: z.ZodString;
469
+ name: z.ZodNullable<z.ZodString>;
470
+ description: z.ZodNullable<z.ZodString>;
471
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
472
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
473
+ }, {
474
+ type: z.ZodLiteral<"Marker">;
475
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
476
+ opacity: z.ZodNumber;
477
+ size: z.ZodNumber;
478
+ zoom: z.ZodNumber;
479
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
480
+ type: "Marker";
481
+ coordinates: [number, number][][];
482
+ groupId?: string | null | undefined;
483
+ color?: string | undefined;
484
+ name?: string | null | undefined;
485
+ description?: string | null | undefined;
486
+ attributes?: Record<string, unknown> | undefined;
487
+ interaction?: "default" | "locked" | undefined;
488
+ opacity?: number | undefined;
489
+ size?: number | undefined;
490
+ zoom?: number | undefined;
491
+ }, {
492
+ type: "Marker";
493
+ coordinates: [number, number][][];
494
+ groupId?: string | null | undefined;
495
+ color?: string | undefined;
496
+ name?: string | null | undefined;
497
+ description?: string | null | undefined;
498
+ attributes?: Record<string, unknown> | undefined;
499
+ interaction?: "default" | "locked" | undefined;
500
+ opacity?: number | undefined;
501
+ size?: number | undefined;
502
+ zoom?: number | undefined;
503
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
504
+ id: z.ZodOptional<z.ZodString>;
505
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
+ color: z.ZodOptional<z.ZodString>;
507
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
510
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
511
+ type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
512
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
513
+ renderHoles: z.ZodOptional<z.ZodBoolean>;
514
+ opacity: z.ZodOptional<z.ZodNumber>;
515
+ }, Pick<z.objectUtil.extendShape<{
516
+ id: z.ZodString;
517
+ groupId: z.ZodNullable<z.ZodString>;
518
+ color: z.ZodString;
519
+ name: z.ZodNullable<z.ZodString>;
520
+ description: z.ZodNullable<z.ZodString>;
521
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
522
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
523
+ }, {
524
+ type: z.ZodLiteral<"Highlighter">;
525
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
526
+ renderHoles: z.ZodBoolean;
527
+ opacity: z.ZodNumber;
528
+ }>, "type" | "coordinates">>, "id">, "strip", z.ZodTypeAny, {
529
+ type: "Highlighter";
530
+ coordinates: [number, number][][][];
531
+ groupId?: string | null | undefined;
532
+ color?: string | undefined;
533
+ name?: string | null | undefined;
534
+ description?: string | null | undefined;
535
+ attributes?: Record<string, unknown> | undefined;
536
+ interaction?: "default" | "locked" | undefined;
537
+ opacity?: number | undefined;
538
+ renderHoles?: boolean | undefined;
539
+ }, {
540
+ type: "Highlighter";
541
+ coordinates: [number, number][][][];
542
+ groupId?: string | null | undefined;
543
+ color?: string | undefined;
544
+ name?: string | null | undefined;
545
+ description?: string | null | undefined;
546
+ attributes?: Record<string, unknown> | undefined;
547
+ interaction?: "default" | "locked" | undefined;
548
+ opacity?: number | undefined;
549
+ renderHoles?: boolean | undefined;
550
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
551
+ type: z.ZodOptional<z.ZodLiteral<"Image">>;
552
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
553
+ id: z.ZodOptional<z.ZodString>;
554
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
558
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
559
+ imageUrl: z.ZodOptional<z.ZodString>;
560
+ opacity: z.ZodOptional<z.ZodNumber>;
561
+ }, Pick<Omit<z.objectUtil.extendShape<{
562
+ id: z.ZodString;
563
+ groupId: z.ZodNullable<z.ZodString>;
564
+ color: z.ZodString;
565
+ name: z.ZodNullable<z.ZodString>;
566
+ description: z.ZodNullable<z.ZodString>;
567
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
568
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
569
+ }, {
570
+ type: z.ZodLiteral<"Image">;
571
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
572
+ imageUrl: z.ZodString;
573
+ opacity: z.ZodNumber;
574
+ }>, "color">, "type" | "coordinates" | "imageUrl">>, "id">, "strip", z.ZodTypeAny, {
575
+ type: "Image";
576
+ coordinates: [number, number][][];
577
+ imageUrl: string;
578
+ groupId?: string | null | undefined;
579
+ name?: string | null | undefined;
580
+ description?: string | null | undefined;
581
+ attributes?: Record<string, unknown> | undefined;
582
+ interaction?: "default" | "locked" | undefined;
583
+ opacity?: number | undefined;
584
+ }, {
585
+ type: "Image";
586
+ coordinates: [number, number][][];
587
+ imageUrl: string;
588
+ groupId?: string | null | undefined;
589
+ name?: string | null | undefined;
590
+ description?: string | null | undefined;
591
+ attributes?: Record<string, unknown> | undefined;
592
+ interaction?: "default" | "locked" | undefined;
593
+ opacity?: number | undefined;
594
+ }>, z.ZodObject<z.objectUtil.extendShape<Omit<{
595
+ id: z.ZodOptional<z.ZodString>;
596
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ color: z.ZodOptional<z.ZodString>;
598
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
600
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
601
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
602
+ rotation: z.ZodOptional<z.ZodNumber>;
603
+ scale: z.ZodOptional<z.ZodNumber>;
604
+ zoom: z.ZodOptional<z.ZodNumber>;
605
+ text: z.ZodOptional<z.ZodString>;
606
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
607
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
608
+ name: z.ZodOptional<z.ZodString>;
609
+ type: z.ZodOptional<z.ZodLiteral<"Text">>;
610
+ }, "type" | "id" | "name">, {
611
+ type: z.ZodLiteral<"Text">;
612
+ text: z.ZodString;
613
+ }>, "strip", z.ZodTypeAny, {
614
+ type: "Text";
615
+ text: string;
616
+ groupId?: string | null | undefined;
617
+ color?: string | undefined;
618
+ description?: string | null | undefined;
619
+ attributes?: Record<string, unknown> | undefined;
620
+ interaction?: "default" | "locked" | undefined;
621
+ zoom?: number | undefined;
622
+ position?: [number, number] | undefined;
623
+ rotation?: number | undefined;
624
+ scale?: number | undefined;
625
+ align?: "center" | "left" | "right" | undefined;
626
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
627
+ }, {
628
+ type: "Text";
629
+ text: string;
630
+ groupId?: string | null | undefined;
631
+ color?: string | undefined;
632
+ description?: string | null | undefined;
633
+ attributes?: Record<string, unknown> | undefined;
634
+ interaction?: "default" | "locked" | undefined;
635
+ zoom?: number | undefined;
636
+ position?: [number, number] | undefined;
637
+ rotation?: number | undefined;
638
+ scale?: number | undefined;
639
+ align?: "center" | "left" | "right" | undefined;
640
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
641
+ }>, z.ZodObject<z.objectUtil.extendShape<Omit<{
642
+ id: z.ZodOptional<z.ZodString>;
643
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ color: z.ZodOptional<z.ZodString>;
645
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
647
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
648
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
649
+ rotation: z.ZodOptional<z.ZodNumber>;
650
+ scale: z.ZodOptional<z.ZodNumber>;
651
+ zoom: z.ZodOptional<z.ZodNumber>;
652
+ text: z.ZodOptional<z.ZodString>;
653
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
654
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
655
+ name: z.ZodOptional<z.ZodString>;
656
+ type: z.ZodOptional<z.ZodLiteral<"Note">>;
657
+ widthScale: z.ZodOptional<z.ZodNumber>;
658
+ }, "type" | "id" | "name">, {
659
+ type: z.ZodLiteral<"Note">;
660
+ text: z.ZodString;
661
+ }>, "strip", z.ZodTypeAny, {
662
+ type: "Note";
663
+ text: string;
664
+ groupId?: string | null | undefined;
665
+ color?: string | undefined;
666
+ description?: string | null | undefined;
667
+ attributes?: Record<string, unknown> | undefined;
668
+ interaction?: "default" | "locked" | undefined;
669
+ zoom?: number | undefined;
670
+ position?: [number, number] | undefined;
671
+ rotation?: number | undefined;
672
+ scale?: number | undefined;
673
+ align?: "center" | "left" | "right" | undefined;
674
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
675
+ widthScale?: number | undefined;
676
+ }, {
677
+ type: "Note";
678
+ text: string;
679
+ groupId?: string | null | undefined;
680
+ color?: string | undefined;
681
+ description?: string | null | undefined;
682
+ attributes?: Record<string, unknown> | undefined;
683
+ interaction?: "default" | "locked" | undefined;
684
+ zoom?: number | undefined;
685
+ position?: [number, number] | undefined;
686
+ rotation?: number | undefined;
687
+ scale?: number | undefined;
688
+ align?: "center" | "left" | "right" | undefined;
689
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
690
+ widthScale?: number | undefined;
691
+ }>]>;
692
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
693
+ params: {
694
+ type: "Place";
695
+ coordinates: [number, number];
696
+ symbol?: string | undefined;
697
+ groupId?: string | null | undefined;
698
+ color?: string | undefined;
699
+ name?: string | null | undefined;
700
+ description?: string | null | undefined;
701
+ attributes?: Record<string, unknown> | undefined;
702
+ interaction?: "default" | "locked" | undefined;
703
+ imageUrl?: string | null | undefined;
704
+ frame?: "frame-circle" | "frame-square" | null | undefined;
705
+ hideLabel?: boolean | undefined;
706
+ } | {
707
+ type: "Path";
708
+ coordinates: [number, number][][];
709
+ groupId?: string | null | undefined;
710
+ color?: string | undefined;
711
+ name?: string | null | undefined;
712
+ description?: string | null | undefined;
713
+ attributes?: Record<string, unknown> | undefined;
714
+ interaction?: "default" | "locked" | undefined;
715
+ imageUrl?: string | null | undefined;
716
+ strokeOpacity?: number | undefined;
717
+ strokeWidth?: number | undefined;
718
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
719
+ distanceMarker?: boolean | undefined;
720
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
721
+ endCaps?: boolean | undefined;
722
+ } | {
723
+ type: "Polygon";
724
+ coordinates: [number, number][][];
725
+ groupId?: string | null | undefined;
726
+ color?: string | undefined;
727
+ name?: string | null | undefined;
728
+ description?: string | null | undefined;
729
+ attributes?: Record<string, unknown> | undefined;
730
+ interaction?: "default" | "locked" | undefined;
731
+ imageUrl?: string | null | undefined;
732
+ strokeOpacity?: number | undefined;
733
+ strokeWidth?: number | undefined;
734
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
735
+ fillOpacity?: number | undefined;
736
+ areaMarker?: boolean | undefined;
737
+ } | {
738
+ type: "Circle";
739
+ center: [number, number];
740
+ radius: number;
741
+ groupId?: string | null | undefined;
742
+ color?: string | undefined;
743
+ name?: string | null | undefined;
744
+ description?: string | null | undefined;
745
+ attributes?: Record<string, unknown> | undefined;
746
+ interaction?: "default" | "locked" | undefined;
747
+ imageUrl?: string | null | undefined;
748
+ strokeOpacity?: number | undefined;
749
+ strokeWidth?: number | undefined;
750
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
751
+ fillOpacity?: number | undefined;
752
+ radiusMarker?: boolean | undefined;
753
+ radiusDisplayAngle?: number | undefined;
754
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
755
+ } | {
756
+ type: "Marker";
757
+ coordinates: [number, number][][];
758
+ groupId?: string | null | undefined;
759
+ color?: string | undefined;
760
+ name?: string | null | undefined;
761
+ description?: string | null | undefined;
762
+ attributes?: Record<string, unknown> | undefined;
763
+ interaction?: "default" | "locked" | undefined;
764
+ opacity?: number | undefined;
765
+ size?: number | undefined;
766
+ zoom?: number | undefined;
767
+ } | {
768
+ type: "Highlighter";
769
+ coordinates: [number, number][][][];
770
+ groupId?: string | null | undefined;
771
+ color?: string | undefined;
772
+ name?: string | null | undefined;
773
+ description?: string | null | undefined;
774
+ attributes?: Record<string, unknown> | undefined;
775
+ interaction?: "default" | "locked" | undefined;
776
+ opacity?: number | undefined;
777
+ renderHoles?: boolean | undefined;
778
+ } | {
779
+ type: "Text";
780
+ text: string;
781
+ groupId?: string | null | undefined;
782
+ color?: string | undefined;
783
+ description?: string | null | undefined;
784
+ attributes?: Record<string, unknown> | undefined;
785
+ interaction?: "default" | "locked" | undefined;
786
+ zoom?: number | undefined;
787
+ position?: [number, number] | undefined;
788
+ rotation?: number | undefined;
789
+ scale?: number | undefined;
790
+ align?: "center" | "left" | "right" | undefined;
791
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
792
+ } | {
793
+ type: "Note";
794
+ text: string;
795
+ groupId?: string | null | undefined;
796
+ color?: string | undefined;
797
+ description?: string | null | undefined;
798
+ attributes?: Record<string, unknown> | undefined;
799
+ interaction?: "default" | "locked" | undefined;
800
+ zoom?: number | undefined;
801
+ position?: [number, number] | undefined;
802
+ rotation?: number | undefined;
803
+ scale?: number | undefined;
804
+ align?: "center" | "left" | "right" | undefined;
805
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
806
+ widthScale?: number | undefined;
807
+ } | {
808
+ type: "Image";
809
+ coordinates: [number, number][][];
810
+ imageUrl: string;
811
+ groupId?: string | null | undefined;
812
+ name?: string | null | undefined;
813
+ description?: string | null | undefined;
814
+ attributes?: Record<string, unknown> | undefined;
815
+ interaction?: "default" | "locked" | undefined;
816
+ opacity?: number | undefined;
817
+ };
818
+ type: "createElement";
819
+ }, {
820
+ params: {
821
+ type: "Place";
822
+ coordinates: [number, number];
823
+ symbol?: string | undefined;
824
+ groupId?: string | null | undefined;
825
+ color?: string | undefined;
826
+ name?: string | null | undefined;
827
+ description?: string | null | undefined;
828
+ attributes?: Record<string, unknown> | undefined;
829
+ interaction?: "default" | "locked" | undefined;
830
+ imageUrl?: string | null | undefined;
831
+ frame?: "frame-circle" | "frame-square" | null | undefined;
832
+ hideLabel?: boolean | undefined;
833
+ } | {
834
+ type: "Path";
835
+ coordinates: [number, number][][];
836
+ groupId?: string | null | undefined;
837
+ color?: string | undefined;
838
+ name?: string | null | undefined;
839
+ description?: string | null | undefined;
840
+ attributes?: Record<string, unknown> | undefined;
841
+ interaction?: "default" | "locked" | undefined;
842
+ imageUrl?: string | null | undefined;
843
+ strokeOpacity?: number | undefined;
844
+ strokeWidth?: number | undefined;
845
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
846
+ distanceMarker?: boolean | undefined;
847
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
848
+ endCaps?: boolean | undefined;
849
+ } | {
850
+ type: "Polygon";
851
+ coordinates: [number, number][][];
852
+ groupId?: string | null | undefined;
853
+ color?: string | undefined;
854
+ name?: string | null | undefined;
855
+ description?: string | null | undefined;
856
+ attributes?: Record<string, unknown> | undefined;
857
+ interaction?: "default" | "locked" | undefined;
858
+ imageUrl?: string | null | undefined;
859
+ strokeOpacity?: number | undefined;
860
+ strokeWidth?: number | undefined;
861
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
862
+ fillOpacity?: number | undefined;
863
+ areaMarker?: boolean | undefined;
864
+ } | {
865
+ type: "Circle";
866
+ center: [number, number];
867
+ radius: number;
868
+ groupId?: string | null | undefined;
869
+ color?: string | undefined;
870
+ name?: string | null | undefined;
871
+ description?: string | null | undefined;
872
+ attributes?: Record<string, unknown> | undefined;
873
+ interaction?: "default" | "locked" | undefined;
874
+ imageUrl?: string | null | undefined;
875
+ strokeOpacity?: number | undefined;
876
+ strokeWidth?: number | undefined;
877
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
878
+ fillOpacity?: number | undefined;
879
+ radiusMarker?: boolean | undefined;
880
+ radiusDisplayAngle?: number | undefined;
881
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
882
+ } | {
883
+ type: "Marker";
884
+ coordinates: [number, number][][];
885
+ groupId?: string | null | undefined;
886
+ color?: string | undefined;
887
+ name?: string | null | undefined;
888
+ description?: string | null | undefined;
889
+ attributes?: Record<string, unknown> | undefined;
890
+ interaction?: "default" | "locked" | undefined;
891
+ opacity?: number | undefined;
892
+ size?: number | undefined;
893
+ zoom?: number | undefined;
894
+ } | {
895
+ type: "Highlighter";
896
+ coordinates: [number, number][][][];
897
+ groupId?: string | null | undefined;
898
+ color?: string | undefined;
899
+ name?: string | null | undefined;
900
+ description?: string | null | undefined;
901
+ attributes?: Record<string, unknown> | undefined;
902
+ interaction?: "default" | "locked" | undefined;
903
+ opacity?: number | undefined;
904
+ renderHoles?: boolean | undefined;
905
+ } | {
906
+ type: "Text";
907
+ text: string;
908
+ groupId?: string | null | undefined;
909
+ color?: string | undefined;
910
+ description?: string | null | undefined;
911
+ attributes?: Record<string, unknown> | undefined;
912
+ interaction?: "default" | "locked" | undefined;
913
+ zoom?: number | undefined;
914
+ position?: [number, number] | undefined;
915
+ rotation?: number | undefined;
916
+ scale?: number | undefined;
917
+ align?: "center" | "left" | "right" | undefined;
918
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
919
+ } | {
920
+ type: "Note";
921
+ text: string;
922
+ groupId?: string | null | undefined;
923
+ color?: string | undefined;
924
+ description?: string | null | undefined;
925
+ attributes?: Record<string, unknown> | undefined;
926
+ interaction?: "default" | "locked" | undefined;
927
+ zoom?: number | undefined;
928
+ position?: [number, number] | undefined;
929
+ rotation?: number | undefined;
930
+ scale?: number | undefined;
931
+ align?: "center" | "left" | "right" | undefined;
932
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
933
+ widthScale?: number | undefined;
934
+ } | {
935
+ type: "Image";
936
+ coordinates: [number, number][][];
937
+ imageUrl: string;
938
+ groupId?: string | null | undefined;
939
+ name?: string | null | undefined;
940
+ description?: string | null | undefined;
941
+ attributes?: Record<string, unknown> | undefined;
942
+ interaction?: "default" | "locked" | undefined;
943
+ opacity?: number | undefined;
944
+ };
945
+ type: "createElement";
946
+ }>;
947
+ declare const UpdateElementMessage: z.ZodObject<{
948
+ type: z.ZodLiteral<"updateElement">;
949
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
950
+ id: z.ZodOptional<z.ZodString>;
951
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
+ color: z.ZodOptional<z.ZodString>;
953
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
956
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
957
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ type: z.ZodOptional<z.ZodLiteral<"Place">>;
959
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
960
+ symbol: z.ZodOptional<z.ZodString>;
961
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
962
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
963
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
964
+ id: z.ZodString;
965
+ groupId: z.ZodNullable<z.ZodString>;
966
+ color: z.ZodString;
967
+ name: z.ZodNullable<z.ZodString>;
968
+ description: z.ZodNullable<z.ZodString>;
969
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
970
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
971
+ }, {
972
+ imageUrl: z.ZodNullable<z.ZodString>;
973
+ }>, {
974
+ type: z.ZodLiteral<"Place">;
975
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
976
+ symbol: z.ZodString;
977
+ frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
978
+ hideLabel: z.ZodBoolean;
979
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
980
+ type: "Place";
981
+ id: string;
982
+ symbol?: string | undefined;
983
+ coordinates?: [number, number] | undefined;
984
+ groupId?: string | null | undefined;
985
+ color?: string | undefined;
986
+ name?: string | null | undefined;
987
+ description?: string | null | undefined;
988
+ attributes?: Record<string, unknown> | undefined;
989
+ interaction?: "default" | "locked" | undefined;
990
+ imageUrl?: string | null | undefined;
991
+ frame?: "frame-circle" | "frame-square" | null | undefined;
992
+ hideLabel?: boolean | undefined;
993
+ }, {
994
+ type: "Place";
995
+ id: string;
996
+ symbol?: string | undefined;
997
+ coordinates?: [number, number] | undefined;
998
+ groupId?: string | null | undefined;
999
+ color?: string | undefined;
1000
+ name?: string | null | undefined;
1001
+ description?: string | null | undefined;
1002
+ attributes?: Record<string, unknown> | undefined;
1003
+ interaction?: "default" | "locked" | undefined;
1004
+ imageUrl?: string | null | undefined;
1005
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1006
+ hideLabel?: boolean | undefined;
1007
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1008
+ id: z.ZodOptional<z.ZodString>;
1009
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ color: z.ZodOptional<z.ZodString>;
1011
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1013
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1014
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1015
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1016
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
1017
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
1018
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1019
+ type: z.ZodOptional<z.ZodLiteral<"Path">>;
1020
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1021
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
1022
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
1023
+ endCaps: z.ZodOptional<z.ZodBoolean>;
1024
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1025
+ id: z.ZodString;
1026
+ groupId: z.ZodNullable<z.ZodString>;
1027
+ color: z.ZodString;
1028
+ name: z.ZodNullable<z.ZodString>;
1029
+ description: z.ZodNullable<z.ZodString>;
1030
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1031
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1032
+ }, {
1033
+ imageUrl: z.ZodNullable<z.ZodString>;
1034
+ }>, {
1035
+ strokeOpacity: z.ZodNumber;
1036
+ strokeWidth: z.ZodNumber;
1037
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1038
+ }>, {
1039
+ type: z.ZodLiteral<"Path">;
1040
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1041
+ distanceMarker: z.ZodBoolean;
1042
+ routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
1043
+ endCaps: z.ZodBoolean;
1044
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1045
+ type: "Path";
1046
+ id: string;
1047
+ coordinates?: [number, number][][] | undefined;
1048
+ groupId?: string | null | undefined;
1049
+ color?: string | undefined;
1050
+ name?: string | null | undefined;
1051
+ description?: string | null | undefined;
1052
+ attributes?: Record<string, unknown> | undefined;
1053
+ interaction?: "default" | "locked" | undefined;
1054
+ imageUrl?: string | null | undefined;
1055
+ strokeOpacity?: number | undefined;
1056
+ strokeWidth?: number | undefined;
1057
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1058
+ distanceMarker?: boolean | undefined;
1059
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1060
+ endCaps?: boolean | undefined;
1061
+ }, {
1062
+ type: "Path";
1063
+ id: string;
1064
+ coordinates?: [number, number][][] | undefined;
1065
+ groupId?: string | null | undefined;
1066
+ color?: string | undefined;
1067
+ name?: string | null | undefined;
1068
+ description?: string | null | undefined;
1069
+ attributes?: Record<string, unknown> | undefined;
1070
+ interaction?: "default" | "locked" | undefined;
1071
+ imageUrl?: string | null | undefined;
1072
+ strokeOpacity?: number | undefined;
1073
+ strokeWidth?: number | undefined;
1074
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1075
+ distanceMarker?: boolean | undefined;
1076
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1077
+ endCaps?: boolean | undefined;
1078
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1079
+ id: z.ZodOptional<z.ZodString>;
1080
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ color: z.ZodOptional<z.ZodString>;
1082
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1083
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1085
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1086
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1087
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
1088
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
1089
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1090
+ type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
1091
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
1092
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
1093
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
1094
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1095
+ id: z.ZodString;
1096
+ groupId: z.ZodNullable<z.ZodString>;
1097
+ color: z.ZodString;
1098
+ name: z.ZodNullable<z.ZodString>;
1099
+ description: z.ZodNullable<z.ZodString>;
1100
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1101
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1102
+ }, {
1103
+ imageUrl: z.ZodNullable<z.ZodString>;
1104
+ }>, {
1105
+ strokeOpacity: z.ZodNumber;
1106
+ strokeWidth: z.ZodNumber;
1107
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1108
+ }>, {
1109
+ type: z.ZodLiteral<"Polygon">;
1110
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
1111
+ fillOpacity: z.ZodNumber;
1112
+ areaMarker: z.ZodBoolean;
1113
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1114
+ type: "Polygon";
1115
+ id: string;
1116
+ coordinates?: [number, number][][] | undefined;
1117
+ groupId?: string | null | undefined;
1118
+ color?: string | undefined;
1119
+ name?: string | null | undefined;
1120
+ description?: string | null | undefined;
1121
+ attributes?: Record<string, unknown> | undefined;
1122
+ interaction?: "default" | "locked" | undefined;
1123
+ imageUrl?: string | null | undefined;
1124
+ strokeOpacity?: number | undefined;
1125
+ strokeWidth?: number | undefined;
1126
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1127
+ fillOpacity?: number | undefined;
1128
+ areaMarker?: boolean | undefined;
1129
+ }, {
1130
+ type: "Polygon";
1131
+ id: string;
1132
+ coordinates?: [number, number][][] | undefined;
1133
+ groupId?: string | null | undefined;
1134
+ color?: string | undefined;
1135
+ name?: string | null | undefined;
1136
+ description?: string | null | undefined;
1137
+ attributes?: Record<string, unknown> | undefined;
1138
+ interaction?: "default" | "locked" | undefined;
1139
+ imageUrl?: string | null | undefined;
1140
+ strokeOpacity?: number | undefined;
1141
+ strokeWidth?: number | undefined;
1142
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1143
+ fillOpacity?: number | undefined;
1144
+ areaMarker?: boolean | undefined;
1145
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1146
+ id: z.ZodOptional<z.ZodString>;
1147
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
+ color: z.ZodOptional<z.ZodString>;
1149
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1151
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1152
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1153
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
1155
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
1156
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1157
+ type: z.ZodOptional<z.ZodLiteral<"Circle">>;
1158
+ center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1159
+ radius: z.ZodOptional<z.ZodNumber>;
1160
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
1161
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
1162
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
1163
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
1164
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1165
+ id: z.ZodString;
1166
+ groupId: z.ZodNullable<z.ZodString>;
1167
+ color: z.ZodString;
1168
+ name: z.ZodNullable<z.ZodString>;
1169
+ description: z.ZodNullable<z.ZodString>;
1170
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1171
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1172
+ }, {
1173
+ imageUrl: z.ZodNullable<z.ZodString>;
1174
+ }>, {
1175
+ strokeOpacity: z.ZodNumber;
1176
+ strokeWidth: z.ZodNumber;
1177
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1178
+ }>, {
1179
+ type: z.ZodLiteral<"Circle">;
1180
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1181
+ radius: z.ZodNumber;
1182
+ radiusMarker: z.ZodBoolean;
1183
+ radiusDisplayAngle: z.ZodNumber;
1184
+ radiusDisplayUnit: z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>;
1185
+ fillOpacity: z.ZodNumber;
1186
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1187
+ type: "Circle";
1188
+ id: string;
1189
+ groupId?: string | null | undefined;
1190
+ color?: string | undefined;
1191
+ name?: string | null | undefined;
1192
+ description?: string | null | undefined;
1193
+ attributes?: Record<string, unknown> | undefined;
1194
+ interaction?: "default" | "locked" | undefined;
1195
+ imageUrl?: string | null | undefined;
1196
+ strokeOpacity?: number | undefined;
1197
+ strokeWidth?: number | undefined;
1198
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1199
+ fillOpacity?: number | undefined;
1200
+ center?: [number, number] | undefined;
1201
+ radius?: number | undefined;
1202
+ radiusMarker?: boolean | undefined;
1203
+ radiusDisplayAngle?: number | undefined;
1204
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1205
+ }, {
1206
+ type: "Circle";
1207
+ id: string;
1208
+ groupId?: string | null | undefined;
1209
+ color?: string | undefined;
1210
+ name?: string | null | undefined;
1211
+ description?: string | null | undefined;
1212
+ attributes?: Record<string, unknown> | undefined;
1213
+ interaction?: "default" | "locked" | undefined;
1214
+ imageUrl?: string | null | undefined;
1215
+ strokeOpacity?: number | undefined;
1216
+ strokeWidth?: number | undefined;
1217
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1218
+ fillOpacity?: number | undefined;
1219
+ center?: [number, number] | undefined;
1220
+ radius?: number | undefined;
1221
+ radiusMarker?: boolean | undefined;
1222
+ radiusDisplayAngle?: number | undefined;
1223
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1224
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1225
+ id: z.ZodOptional<z.ZodString>;
1226
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
+ color: z.ZodOptional<z.ZodString>;
1228
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1231
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1232
+ type: z.ZodOptional<z.ZodLiteral<"Marker">>;
1233
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1234
+ opacity: z.ZodOptional<z.ZodNumber>;
1235
+ size: z.ZodOptional<z.ZodNumber>;
1236
+ zoom: z.ZodOptional<z.ZodNumber>;
1237
+ }, Pick<z.objectUtil.extendShape<{
1238
+ id: z.ZodString;
1239
+ groupId: z.ZodNullable<z.ZodString>;
1240
+ color: z.ZodString;
1241
+ name: z.ZodNullable<z.ZodString>;
1242
+ description: z.ZodNullable<z.ZodString>;
1243
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1244
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1245
+ }, {
1246
+ type: z.ZodLiteral<"Marker">;
1247
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1248
+ opacity: z.ZodNumber;
1249
+ size: z.ZodNumber;
1250
+ zoom: z.ZodNumber;
1251
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1252
+ type: "Marker";
1253
+ id: string;
1254
+ coordinates?: [number, number][][] | undefined;
1255
+ groupId?: string | null | undefined;
1256
+ color?: string | undefined;
1257
+ name?: string | null | undefined;
1258
+ description?: string | null | undefined;
1259
+ attributes?: Record<string, unknown> | undefined;
1260
+ interaction?: "default" | "locked" | undefined;
1261
+ opacity?: number | undefined;
1262
+ size?: number | undefined;
1263
+ zoom?: number | undefined;
1264
+ }, {
1265
+ type: "Marker";
1266
+ id: string;
1267
+ coordinates?: [number, number][][] | undefined;
1268
+ groupId?: string | null | undefined;
1269
+ color?: string | undefined;
1270
+ name?: string | null | undefined;
1271
+ description?: string | null | undefined;
1272
+ attributes?: Record<string, unknown> | undefined;
1273
+ interaction?: "default" | "locked" | undefined;
1274
+ opacity?: number | undefined;
1275
+ size?: number | undefined;
1276
+ zoom?: number | undefined;
1277
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1278
+ id: z.ZodOptional<z.ZodString>;
1279
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1280
+ color: z.ZodOptional<z.ZodString>;
1281
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1282
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1284
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1285
+ type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
1286
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
1287
+ renderHoles: z.ZodOptional<z.ZodBoolean>;
1288
+ opacity: z.ZodOptional<z.ZodNumber>;
1289
+ }, Pick<z.objectUtil.extendShape<{
1290
+ id: z.ZodString;
1291
+ groupId: z.ZodNullable<z.ZodString>;
1292
+ color: z.ZodString;
1293
+ name: z.ZodNullable<z.ZodString>;
1294
+ description: z.ZodNullable<z.ZodString>;
1295
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1296
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1297
+ }, {
1298
+ type: z.ZodLiteral<"Highlighter">;
1299
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
1300
+ renderHoles: z.ZodBoolean;
1301
+ opacity: z.ZodNumber;
1302
+ }>, "type" | "id">>, "strip", z.ZodTypeAny, {
1303
+ type: "Highlighter";
1304
+ id: string;
1305
+ coordinates?: [number, number][][][] | undefined;
1306
+ groupId?: string | null | undefined;
1307
+ color?: string | undefined;
1308
+ name?: string | null | undefined;
1309
+ description?: string | null | undefined;
1310
+ attributes?: Record<string, unknown> | undefined;
1311
+ interaction?: "default" | "locked" | undefined;
1312
+ opacity?: number | undefined;
1313
+ renderHoles?: boolean | undefined;
1314
+ }, {
1315
+ type: "Highlighter";
1316
+ id: string;
1317
+ coordinates?: [number, number][][][] | undefined;
1318
+ groupId?: string | null | undefined;
1319
+ color?: string | undefined;
1320
+ name?: string | null | undefined;
1321
+ description?: string | null | undefined;
1322
+ attributes?: Record<string, unknown> | undefined;
1323
+ interaction?: "default" | "locked" | undefined;
1324
+ opacity?: number | undefined;
1325
+ renderHoles?: boolean | undefined;
1326
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1327
+ id: z.ZodOptional<z.ZodString>;
1328
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1329
+ color: z.ZodOptional<z.ZodString>;
1330
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1332
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1333
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1334
+ rotation: z.ZodOptional<z.ZodNumber>;
1335
+ scale: z.ZodOptional<z.ZodNumber>;
1336
+ zoom: z.ZodOptional<z.ZodNumber>;
1337
+ text: z.ZodOptional<z.ZodString>;
1338
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1339
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1340
+ name: z.ZodOptional<z.ZodString>;
1341
+ type: z.ZodOptional<z.ZodLiteral<"Text">>;
1342
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1343
+ id: z.ZodString;
1344
+ groupId: z.ZodNullable<z.ZodString>;
1345
+ color: z.ZodString;
1346
+ name: z.ZodNullable<z.ZodString>;
1347
+ description: z.ZodNullable<z.ZodString>;
1348
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1349
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1350
+ }, {
1351
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1352
+ rotation: z.ZodNumber;
1353
+ scale: z.ZodNumber;
1354
+ zoom: z.ZodNumber;
1355
+ text: z.ZodString;
1356
+ align: z.ZodEnum<["left", "center", "right"]>;
1357
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
1358
+ name: z.ZodString;
1359
+ }>, {
1360
+ type: z.ZodLiteral<"Text">;
1361
+ }>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
1362
+ type: "Text";
1363
+ id: string;
1364
+ groupId?: string | null | undefined;
1365
+ color?: string | undefined;
1366
+ description?: string | null | undefined;
1367
+ attributes?: Record<string, unknown> | undefined;
1368
+ interaction?: "default" | "locked" | undefined;
1369
+ zoom?: number | undefined;
1370
+ position?: [number, number] | undefined;
1371
+ rotation?: number | undefined;
1372
+ scale?: number | undefined;
1373
+ text?: string | undefined;
1374
+ align?: "center" | "left" | "right" | undefined;
1375
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1376
+ }, {
1377
+ type: "Text";
1378
+ id: string;
1379
+ groupId?: string | null | undefined;
1380
+ color?: string | undefined;
1381
+ description?: string | null | undefined;
1382
+ attributes?: Record<string, unknown> | undefined;
1383
+ interaction?: "default" | "locked" | undefined;
1384
+ zoom?: number | undefined;
1385
+ position?: [number, number] | undefined;
1386
+ rotation?: number | undefined;
1387
+ scale?: number | undefined;
1388
+ text?: string | undefined;
1389
+ align?: "center" | "left" | "right" | undefined;
1390
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1391
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1392
+ id: z.ZodOptional<z.ZodString>;
1393
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1394
+ color: z.ZodOptional<z.ZodString>;
1395
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1397
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1398
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1399
+ rotation: z.ZodOptional<z.ZodNumber>;
1400
+ scale: z.ZodOptional<z.ZodNumber>;
1401
+ zoom: z.ZodOptional<z.ZodNumber>;
1402
+ text: z.ZodOptional<z.ZodString>;
1403
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1404
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1405
+ name: z.ZodOptional<z.ZodString>;
1406
+ type: z.ZodOptional<z.ZodLiteral<"Note">>;
1407
+ widthScale: z.ZodOptional<z.ZodNumber>;
1408
+ }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1409
+ id: z.ZodString;
1410
+ groupId: z.ZodNullable<z.ZodString>;
1411
+ color: z.ZodString;
1412
+ name: z.ZodNullable<z.ZodString>;
1413
+ description: z.ZodNullable<z.ZodString>;
1414
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1415
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1416
+ }, {
1417
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1418
+ rotation: z.ZodNumber;
1419
+ scale: z.ZodNumber;
1420
+ zoom: z.ZodNumber;
1421
+ text: z.ZodString;
1422
+ align: z.ZodEnum<["left", "center", "right"]>;
1423
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
1424
+ name: z.ZodString;
1425
+ }>, {
1426
+ type: z.ZodLiteral<"Note">;
1427
+ widthScale: z.ZodNumber;
1428
+ }>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
1429
+ type: "Note";
1430
+ id: string;
1431
+ groupId?: string | null | undefined;
1432
+ color?: string | undefined;
1433
+ description?: string | null | undefined;
1434
+ attributes?: Record<string, unknown> | undefined;
1435
+ interaction?: "default" | "locked" | undefined;
1436
+ zoom?: number | undefined;
1437
+ position?: [number, number] | undefined;
1438
+ rotation?: number | undefined;
1439
+ scale?: number | undefined;
1440
+ text?: string | undefined;
1441
+ align?: "center" | "left" | "right" | undefined;
1442
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1443
+ widthScale?: number | undefined;
1444
+ }, {
1445
+ type: "Note";
1446
+ id: string;
1447
+ groupId?: string | null | undefined;
1448
+ color?: string | undefined;
1449
+ description?: string | null | undefined;
1450
+ attributes?: Record<string, unknown> | undefined;
1451
+ interaction?: "default" | "locked" | undefined;
1452
+ zoom?: number | undefined;
1453
+ position?: [number, number] | undefined;
1454
+ rotation?: number | undefined;
1455
+ scale?: number | undefined;
1456
+ text?: string | undefined;
1457
+ align?: "center" | "left" | "right" | undefined;
1458
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1459
+ widthScale?: number | undefined;
1460
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1461
+ type: z.ZodOptional<z.ZodLiteral<"Image">>;
1462
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1463
+ id: z.ZodOptional<z.ZodString>;
1464
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1467
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1468
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1469
+ imageUrl: z.ZodOptional<z.ZodString>;
1470
+ opacity: z.ZodOptional<z.ZodNumber>;
1471
+ }, Pick<Omit<z.objectUtil.extendShape<{
1472
+ id: z.ZodString;
1473
+ groupId: z.ZodNullable<z.ZodString>;
1474
+ color: z.ZodString;
1475
+ name: z.ZodNullable<z.ZodString>;
1476
+ description: z.ZodNullable<z.ZodString>;
1477
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1478
+ interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
1479
+ }, {
1480
+ type: z.ZodLiteral<"Image">;
1481
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1482
+ imageUrl: z.ZodString;
1483
+ opacity: z.ZodNumber;
1484
+ }>, "color">, "type" | "id">>, "strip", z.ZodTypeAny, {
1485
+ type: "Image";
1486
+ id: string;
1487
+ coordinates?: [number, number][][] | undefined;
1488
+ groupId?: string | null | undefined;
1489
+ name?: string | null | undefined;
1490
+ description?: string | null | undefined;
1491
+ attributes?: Record<string, unknown> | undefined;
1492
+ interaction?: "default" | "locked" | undefined;
1493
+ imageUrl?: string | undefined;
1494
+ opacity?: number | undefined;
1495
+ }, {
1496
+ type: "Image";
1497
+ id: string;
1498
+ coordinates?: [number, number][][] | undefined;
1499
+ groupId?: string | null | undefined;
1500
+ name?: string | null | undefined;
1501
+ description?: string | null | undefined;
1502
+ attributes?: Record<string, unknown> | undefined;
1503
+ interaction?: "default" | "locked" | undefined;
1504
+ imageUrl?: string | undefined;
1505
+ opacity?: number | undefined;
1506
+ }>]>;
1507
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1508
+ params: {
1509
+ type: "Place";
1510
+ id: string;
1511
+ symbol?: string | undefined;
1512
+ coordinates?: [number, number] | undefined;
1513
+ groupId?: string | null | undefined;
1514
+ color?: string | undefined;
1515
+ name?: string | null | undefined;
1516
+ description?: string | null | undefined;
1517
+ attributes?: Record<string, unknown> | undefined;
1518
+ interaction?: "default" | "locked" | undefined;
1519
+ imageUrl?: string | null | undefined;
1520
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1521
+ hideLabel?: boolean | undefined;
1522
+ } | {
1523
+ type: "Path";
1524
+ id: string;
1525
+ coordinates?: [number, number][][] | undefined;
1526
+ groupId?: string | null | undefined;
1527
+ color?: string | undefined;
1528
+ name?: string | null | undefined;
1529
+ description?: string | null | undefined;
1530
+ attributes?: Record<string, unknown> | undefined;
1531
+ interaction?: "default" | "locked" | undefined;
1532
+ imageUrl?: string | null | undefined;
1533
+ strokeOpacity?: number | undefined;
1534
+ strokeWidth?: number | undefined;
1535
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1536
+ distanceMarker?: boolean | undefined;
1537
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1538
+ endCaps?: boolean | undefined;
1539
+ } | {
1540
+ type: "Polygon";
1541
+ id: string;
1542
+ coordinates?: [number, number][][] | undefined;
1543
+ groupId?: string | null | undefined;
1544
+ color?: string | undefined;
1545
+ name?: string | null | undefined;
1546
+ description?: string | null | undefined;
1547
+ attributes?: Record<string, unknown> | undefined;
1548
+ interaction?: "default" | "locked" | undefined;
1549
+ imageUrl?: string | null | undefined;
1550
+ strokeOpacity?: number | undefined;
1551
+ strokeWidth?: number | undefined;
1552
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1553
+ fillOpacity?: number | undefined;
1554
+ areaMarker?: boolean | undefined;
1555
+ } | {
1556
+ type: "Circle";
1557
+ id: string;
1558
+ groupId?: string | null | undefined;
1559
+ color?: string | undefined;
1560
+ name?: string | null | undefined;
1561
+ description?: string | null | undefined;
1562
+ attributes?: Record<string, unknown> | undefined;
1563
+ interaction?: "default" | "locked" | undefined;
1564
+ imageUrl?: string | null | undefined;
1565
+ strokeOpacity?: number | undefined;
1566
+ strokeWidth?: number | undefined;
1567
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1568
+ fillOpacity?: number | undefined;
1569
+ center?: [number, number] | undefined;
1570
+ radius?: number | undefined;
1571
+ radiusMarker?: boolean | undefined;
1572
+ radiusDisplayAngle?: number | undefined;
1573
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1574
+ } | {
1575
+ type: "Marker";
1576
+ id: string;
1577
+ coordinates?: [number, number][][] | undefined;
1578
+ groupId?: string | null | undefined;
1579
+ color?: string | undefined;
1580
+ name?: string | null | undefined;
1581
+ description?: string | null | undefined;
1582
+ attributes?: Record<string, unknown> | undefined;
1583
+ interaction?: "default" | "locked" | undefined;
1584
+ opacity?: number | undefined;
1585
+ size?: number | undefined;
1586
+ zoom?: number | undefined;
1587
+ } | {
1588
+ type: "Highlighter";
1589
+ id: string;
1590
+ coordinates?: [number, number][][][] | undefined;
1591
+ groupId?: string | null | undefined;
1592
+ color?: string | undefined;
1593
+ name?: string | null | undefined;
1594
+ description?: string | null | undefined;
1595
+ attributes?: Record<string, unknown> | undefined;
1596
+ interaction?: "default" | "locked" | undefined;
1597
+ opacity?: number | undefined;
1598
+ renderHoles?: boolean | undefined;
1599
+ } | {
1600
+ type: "Text";
1601
+ id: string;
1602
+ groupId?: string | null | undefined;
1603
+ color?: string | undefined;
1604
+ description?: string | null | undefined;
1605
+ attributes?: Record<string, unknown> | undefined;
1606
+ interaction?: "default" | "locked" | undefined;
1607
+ zoom?: number | undefined;
1608
+ position?: [number, number] | undefined;
1609
+ rotation?: number | undefined;
1610
+ scale?: number | undefined;
1611
+ text?: string | undefined;
1612
+ align?: "center" | "left" | "right" | undefined;
1613
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1614
+ } | {
1615
+ type: "Note";
1616
+ id: string;
1617
+ groupId?: string | null | undefined;
1618
+ color?: string | undefined;
1619
+ description?: string | null | undefined;
1620
+ attributes?: Record<string, unknown> | undefined;
1621
+ interaction?: "default" | "locked" | undefined;
1622
+ zoom?: number | undefined;
1623
+ position?: [number, number] | undefined;
1624
+ rotation?: number | undefined;
1625
+ scale?: number | undefined;
1626
+ text?: string | undefined;
1627
+ align?: "center" | "left" | "right" | undefined;
1628
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1629
+ widthScale?: number | undefined;
1630
+ } | {
1631
+ type: "Image";
1632
+ id: string;
1633
+ coordinates?: [number, number][][] | undefined;
1634
+ groupId?: string | null | undefined;
1635
+ name?: string | null | undefined;
1636
+ description?: string | null | undefined;
1637
+ attributes?: Record<string, unknown> | undefined;
1638
+ interaction?: "default" | "locked" | undefined;
1639
+ imageUrl?: string | undefined;
1640
+ opacity?: number | undefined;
1641
+ };
1642
+ type: "updateElement";
1643
+ }, {
1644
+ params: {
1645
+ type: "Place";
1646
+ id: string;
1647
+ symbol?: string | undefined;
1648
+ coordinates?: [number, number] | undefined;
1649
+ groupId?: string | null | undefined;
1650
+ color?: string | undefined;
1651
+ name?: string | null | undefined;
1652
+ description?: string | null | undefined;
1653
+ attributes?: Record<string, unknown> | undefined;
1654
+ interaction?: "default" | "locked" | undefined;
1655
+ imageUrl?: string | null | undefined;
1656
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1657
+ hideLabel?: boolean | undefined;
1658
+ } | {
1659
+ type: "Path";
1660
+ id: string;
1661
+ coordinates?: [number, number][][] | undefined;
1662
+ groupId?: string | null | undefined;
1663
+ color?: string | undefined;
1664
+ name?: string | null | undefined;
1665
+ description?: string | null | undefined;
1666
+ attributes?: Record<string, unknown> | undefined;
1667
+ interaction?: "default" | "locked" | undefined;
1668
+ imageUrl?: string | null | undefined;
1669
+ strokeOpacity?: number | undefined;
1670
+ strokeWidth?: number | undefined;
1671
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1672
+ distanceMarker?: boolean | undefined;
1673
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1674
+ endCaps?: boolean | undefined;
1675
+ } | {
1676
+ type: "Polygon";
1677
+ id: string;
1678
+ coordinates?: [number, number][][] | undefined;
1679
+ groupId?: string | null | undefined;
1680
+ color?: string | undefined;
1681
+ name?: string | null | undefined;
1682
+ description?: string | null | undefined;
1683
+ attributes?: Record<string, unknown> | undefined;
1684
+ interaction?: "default" | "locked" | undefined;
1685
+ imageUrl?: string | null | undefined;
1686
+ strokeOpacity?: number | undefined;
1687
+ strokeWidth?: number | undefined;
1688
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1689
+ fillOpacity?: number | undefined;
1690
+ areaMarker?: boolean | undefined;
1691
+ } | {
1692
+ type: "Circle";
1693
+ id: string;
1694
+ groupId?: string | null | undefined;
1695
+ color?: string | undefined;
1696
+ name?: string | null | undefined;
1697
+ description?: string | null | undefined;
1698
+ attributes?: Record<string, unknown> | undefined;
1699
+ interaction?: "default" | "locked" | undefined;
1700
+ imageUrl?: string | null | undefined;
1701
+ strokeOpacity?: number | undefined;
1702
+ strokeWidth?: number | undefined;
1703
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1704
+ fillOpacity?: number | undefined;
1705
+ center?: [number, number] | undefined;
1706
+ radius?: number | undefined;
1707
+ radiusMarker?: boolean | undefined;
1708
+ radiusDisplayAngle?: number | undefined;
1709
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1710
+ } | {
1711
+ type: "Marker";
1712
+ id: string;
1713
+ coordinates?: [number, number][][] | undefined;
1714
+ groupId?: string | null | undefined;
1715
+ color?: string | undefined;
1716
+ name?: string | null | undefined;
1717
+ description?: string | null | undefined;
1718
+ attributes?: Record<string, unknown> | undefined;
1719
+ interaction?: "default" | "locked" | undefined;
1720
+ opacity?: number | undefined;
1721
+ size?: number | undefined;
1722
+ zoom?: number | undefined;
1723
+ } | {
1724
+ type: "Highlighter";
1725
+ id: string;
1726
+ coordinates?: [number, number][][][] | undefined;
1727
+ groupId?: string | null | undefined;
1728
+ color?: string | undefined;
1729
+ name?: string | null | undefined;
1730
+ description?: string | null | undefined;
1731
+ attributes?: Record<string, unknown> | undefined;
1732
+ interaction?: "default" | "locked" | undefined;
1733
+ opacity?: number | undefined;
1734
+ renderHoles?: boolean | undefined;
1735
+ } | {
1736
+ type: "Text";
1737
+ id: string;
1738
+ groupId?: string | null | undefined;
1739
+ color?: string | undefined;
1740
+ description?: string | null | undefined;
1741
+ attributes?: Record<string, unknown> | undefined;
1742
+ interaction?: "default" | "locked" | undefined;
1743
+ zoom?: number | undefined;
1744
+ position?: [number, number] | undefined;
1745
+ rotation?: number | undefined;
1746
+ scale?: number | undefined;
1747
+ text?: string | undefined;
1748
+ align?: "center" | "left" | "right" | undefined;
1749
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1750
+ } | {
1751
+ type: "Note";
1752
+ id: string;
1753
+ groupId?: string | null | undefined;
1754
+ color?: string | undefined;
1755
+ description?: string | null | undefined;
1756
+ attributes?: Record<string, unknown> | undefined;
1757
+ interaction?: "default" | "locked" | undefined;
1758
+ zoom?: number | undefined;
1759
+ position?: [number, number] | undefined;
1760
+ rotation?: number | undefined;
1761
+ scale?: number | undefined;
1762
+ text?: string | undefined;
1763
+ align?: "center" | "left" | "right" | undefined;
1764
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1765
+ widthScale?: number | undefined;
1766
+ } | {
1767
+ type: "Image";
1768
+ id: string;
1769
+ coordinates?: [number, number][][] | undefined;
1770
+ groupId?: string | null | undefined;
1771
+ name?: string | null | undefined;
1772
+ description?: string | null | undefined;
1773
+ attributes?: Record<string, unknown> | undefined;
1774
+ interaction?: "default" | "locked" | undefined;
1775
+ imageUrl?: string | undefined;
1776
+ opacity?: number | undefined;
1777
+ };
1778
+ type: "updateElement";
1779
+ }>;
1780
+ declare const DeleteElementMessage: z.ZodObject<{
1781
+ type: z.ZodLiteral<"deleteElement">;
1782
+ params: z.ZodString;
1783
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1784
+ params: string;
1785
+ type: "deleteElement";
1786
+ }, {
1787
+ params: string;
1788
+ type: "deleteElement";
1789
+ }>;
1790
+ type ElementsSchema = {
1791
+ methods: {
1792
+ getElement: Method<zInfer<typeof GetElementMessage>, Element | null>;
1793
+ getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>, GeoJsonGeometry | null>;
1794
+ getElements: Method<zInfer<typeof GetElementsMessage>, Array<Element | null>>;
1795
+ getElementGroup: Method<zInfer<typeof GetGroupMessage$1>, ElementGroup | null>;
1796
+ getElementGroups: Method<zInfer<typeof GetGroupsMessage$1>, Array<ElementGroup | null>>;
1797
+ setElementGroupVisibility: Method<zInfer<typeof SetElementGroupVisibilityMessage>, void>;
1798
+ createElement: Method<zInfer<typeof CreateElementMessage>, Element>;
1799
+ updateElement: Method<zInfer<typeof UpdateElementMessage>, Element>;
1800
+ deleteElement: Method<zInfer<typeof DeleteElementMessage>, void>;
1801
+ };
1802
+ listeners: {
1803
+ onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
1804
+ onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
1805
+ onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
1806
+ onElementCreateEnd: ListenerNoOptions<{
1807
+ element: Element;
1808
+ }>;
1809
+ onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
1810
+ };
1811
+ };
1812
+
1813
+ type InteractionsSchema = {
1814
+ methods: {};
1815
+ listeners: {
1816
+ onPointerClick: ListenerNoOptions<MapInteractionEvent>;
1817
+ onPointerMove: ListenerNoOptions<MapInteractionEvent>;
1818
+ };
1819
+ };
1820
+
1821
+ declare const GetLayerMessage: z.ZodObject<{
1822
+ type: z.ZodLiteral<"getLayer">;
1823
+ params: z.ZodString;
1824
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1825
+ params: string;
1826
+ type: "getLayer";
1827
+ }, {
1828
+ params: string;
1829
+ type: "getLayer";
1830
+ }>;
1831
+ declare const GetLayersMessage: z.ZodObject<{
1832
+ type: z.ZodLiteral<"getLayers">;
1833
+ params: z.ZodOptional<z.ZodObject<{
1834
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ ids?: string[] | undefined;
1837
+ }, {
1838
+ ids?: string[] | undefined;
1839
+ }>>;
1840
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1841
+ type: "getLayers";
1842
+ params?: {
1843
+ ids?: string[] | undefined;
1844
+ } | undefined;
1845
+ }, {
1846
+ type: "getLayers";
1847
+ params?: {
1848
+ ids?: string[] | undefined;
1849
+ } | undefined;
1850
+ }>;
1851
+ declare const SetLayerVisibilityMessage: z.ZodObject<{
1852
+ type: z.ZodLiteral<"setLayerVisibility">;
1853
+ params: z.ZodObject<{
1854
+ show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1855
+ hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ show?: string[] | undefined;
1858
+ hide?: string[] | undefined;
1859
+ }, {
1860
+ show?: string[] | undefined;
1861
+ hide?: string[] | undefined;
1862
+ }>;
1863
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1864
+ params: {
1865
+ show?: string[] | undefined;
1866
+ hide?: string[] | undefined;
1867
+ };
1868
+ type: "setLayerVisibility";
1869
+ }, {
1870
+ params: {
1871
+ show?: string[] | undefined;
1872
+ hide?: string[] | undefined;
1873
+ };
1874
+ type: "setLayerVisibility";
1875
+ }>;
1876
+ declare const OnLayerChangeMessage: z.ZodObject<{
1877
+ eventName: z.ZodLiteral<"onLayerChange">;
1878
+ id: z.ZodString;
1879
+ options: z.ZodObject<{
1880
+ id: z.ZodString;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ id: string;
1883
+ }, {
1884
+ id: string;
1885
+ }>;
1886
+ }, "strict", z.ZodTypeAny, {
1887
+ options: {
1888
+ id: string;
1889
+ };
1890
+ id: string;
1891
+ eventName: "onLayerChange";
1892
+ }, {
1893
+ options: {
1894
+ id: string;
1895
+ };
1896
+ id: string;
1897
+ eventName: "onLayerChange";
1898
+ }>;
1899
+ declare const SetLayerStyleMessage: z.ZodObject<{
1900
+ type: z.ZodLiteral<"setLayerStyle">;
1901
+ params: z.ZodObject<{
1902
+ id: z.ZodString;
1903
+ style: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ id: string;
1906
+ style: {} & {
1907
+ [k: string]: unknown;
1908
+ };
1909
+ }, {
1910
+ id: string;
1911
+ style: {} & {
1912
+ [k: string]: unknown;
1913
+ };
1914
+ }>;
1915
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1916
+ params: {
1917
+ id: string;
1918
+ style: {} & {
1919
+ [k: string]: unknown;
1920
+ };
1921
+ };
1922
+ type: "setLayerStyle";
1923
+ }, {
1924
+ params: {
1925
+ id: string;
1926
+ style: {} & {
1927
+ [k: string]: unknown;
1928
+ };
1929
+ };
1930
+ type: "setLayerStyle";
1931
+ }>;
1932
+ declare const SetLayerLegendVisibilityMessage: z.ZodObject<{
1933
+ type: z.ZodLiteral<"setLayerLegendVisibility">;
1934
+ params: z.ZodObject<{
1935
+ show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1936
+ hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ show?: string[] | undefined;
1939
+ hide?: string[] | undefined;
1940
+ }, {
1941
+ show?: string[] | undefined;
1942
+ hide?: string[] | undefined;
1943
+ }>;
1944
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1945
+ params: {
1946
+ show?: string[] | undefined;
1947
+ hide?: string[] | undefined;
1948
+ };
1949
+ type: "setLayerLegendVisibility";
1950
+ }, {
1951
+ params: {
1952
+ show?: string[] | undefined;
1953
+ hide?: string[] | undefined;
1954
+ };
1955
+ type: "setLayerLegendVisibility";
1956
+ }>;
1957
+ declare const CreateLayersFromGeoJsonMessage: z.ZodObject<{
1958
+ type: z.ZodLiteral<"createLayersFromGeoJson">;
1959
+ params: z.ZodObject<{
1960
+ source: z.ZodUnion<[z.ZodObject<{
1961
+ type: z.ZodLiteral<"geoJsonUrl">;
1962
+ url: z.ZodString;
1963
+ refreshInterval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ type: "geoJsonUrl";
1966
+ url: string;
1967
+ refreshInterval?: number | null | undefined;
1968
+ }, {
1969
+ type: "geoJsonUrl";
1970
+ url: string;
1971
+ refreshInterval?: number | null | undefined;
1972
+ }>, z.ZodObject<{
1973
+ type: z.ZodLiteral<"geoJsonData">;
1974
+ data: z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>]>;
1975
+ }, "strip", z.ZodTypeAny, {
1976
+ type: "geoJsonData";
1977
+ data: ArrayBuffer | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
1978
+ }, {
1979
+ type: "geoJsonData";
1980
+ data: ArrayBuffer | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
1981
+ }>, z.ZodObject<{
1982
+ type: z.ZodLiteral<"geoJsonFile">;
1983
+ file: z.ZodType<File, z.ZodTypeDef, File>;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ type: "geoJsonFile";
1986
+ file: File;
1987
+ }, {
1988
+ type: "geoJsonFile";
1989
+ file: File;
1990
+ }>]>;
1991
+ name: z.ZodString;
1992
+ bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1993
+ caption: z.ZodOptional<z.ZodString>;
1994
+ description: z.ZodOptional<z.ZodString>;
1995
+ geometryStyles: z.ZodOptional<z.ZodObject<{
1996
+ Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1997
+ Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1998
+ Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1999
+ }, "strip", z.ZodTypeAny, {
2000
+ Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2001
+ Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2002
+ Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2003
+ }, {
2004
+ Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2005
+ Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2006
+ Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2007
+ }>>;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ name: string;
2010
+ source: {
2011
+ type: "geoJsonUrl";
2012
+ url: string;
2013
+ refreshInterval?: number | null | undefined;
2014
+ } | {
2015
+ type: "geoJsonFile";
2016
+ file: File;
2017
+ } | {
2018
+ type: "geoJsonData";
2019
+ data: ArrayBuffer | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
2020
+ };
2021
+ description?: string | undefined;
2022
+ bounds?: [number, number, number, number] | undefined;
2023
+ caption?: string | undefined;
2024
+ geometryStyles?: {
2025
+ Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2026
+ Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2027
+ Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2028
+ } | undefined;
2029
+ }, {
2030
+ name: string;
2031
+ source: {
2032
+ type: "geoJsonUrl";
2033
+ url: string;
2034
+ refreshInterval?: number | null | undefined;
2035
+ } | {
2036
+ type: "geoJsonFile";
2037
+ file: File;
2038
+ } | {
2039
+ type: "geoJsonData";
2040
+ data: ArrayBuffer | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
2041
+ };
2042
+ description?: string | undefined;
2043
+ bounds?: [number, number, number, number] | undefined;
2044
+ caption?: string | undefined;
2045
+ geometryStyles?: {
2046
+ Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2047
+ Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2048
+ Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2049
+ } | undefined;
2050
+ }>;
2051
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2052
+ params: {
2053
+ name: string;
2054
+ source: {
2055
+ type: "geoJsonUrl";
2056
+ url: string;
2057
+ refreshInterval?: number | null | undefined;
2058
+ } | {
2059
+ type: "geoJsonFile";
2060
+ file: File;
2061
+ } | {
2062
+ type: "geoJsonData";
2063
+ data: ArrayBuffer | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
2064
+ };
2065
+ description?: string | undefined;
2066
+ bounds?: [number, number, number, number] | undefined;
2067
+ caption?: string | undefined;
2068
+ geometryStyles?: {
2069
+ Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2070
+ Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2071
+ Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2072
+ } | undefined;
2073
+ };
2074
+ type: "createLayersFromGeoJson";
2075
+ }, {
2076
+ params: {
2077
+ name: string;
2078
+ source: {
2079
+ type: "geoJsonUrl";
2080
+ url: string;
2081
+ refreshInterval?: number | null | undefined;
2082
+ } | {
2083
+ type: "geoJsonFile";
2084
+ file: File;
2085
+ } | {
2086
+ type: "geoJsonData";
2087
+ data: ArrayBuffer | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
2088
+ };
2089
+ description?: string | undefined;
2090
+ bounds?: [number, number, number, number] | undefined;
2091
+ caption?: string | undefined;
2092
+ geometryStyles?: {
2093
+ Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2094
+ Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2095
+ Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2096
+ } | undefined;
2097
+ };
2098
+ type: "createLayersFromGeoJson";
2099
+ }>;
2100
+ declare const UpdateLayerMessage: z.ZodObject<{
2101
+ type: z.ZodLiteral<"updateLayer">;
2102
+ params: z.ZodObject<{
2103
+ id: z.ZodString;
2104
+ style: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2105
+ shownInLegend: z.ZodOptional<z.ZodBoolean>;
2106
+ name: z.ZodOptional<z.ZodString>;
2107
+ caption: z.ZodOptional<z.ZodString>;
2108
+ description: z.ZodOptional<z.ZodString>;
2109
+ bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
2110
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2111
+ type: z.ZodLiteral<"geoJsonUrl">;
2112
+ url: z.ZodString;
2113
+ refreshInterval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2114
+ }, "strip", z.ZodTypeAny, {
2115
+ type: "geoJsonUrl";
2116
+ url: string;
2117
+ refreshInterval?: number | null | undefined;
2118
+ }, {
2119
+ type: "geoJsonUrl";
2120
+ url: string;
2121
+ refreshInterval?: number | null | undefined;
2122
+ }>, z.ZodObject<{
2123
+ type: z.ZodLiteral<"geoJsonData">;
2124
+ data: z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>]>;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ type: "geoJsonData";
2127
+ data: ArrayBuffer | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
2128
+ }, {
2129
+ type: "geoJsonData";
2130
+ data: ArrayBuffer | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
2131
+ }>, z.ZodObject<{
2132
+ type: z.ZodLiteral<"geoJsonFile">;
2133
+ file: z.ZodType<File, z.ZodTypeDef, File>;
2134
+ }, "strip", z.ZodTypeAny, {
2135
+ type: "geoJsonFile";
2136
+ file: File;
2137
+ }, {
2138
+ type: "geoJsonFile";
2139
+ file: File;
2140
+ }>]>>;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ id: string;
2143
+ name?: string | undefined;
2144
+ description?: string | undefined;
2145
+ style?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2146
+ source?: {
2147
+ type: "geoJsonUrl";
2148
+ url: string;
2149
+ refreshInterval?: number | null | undefined;
2150
+ } | {
2151
+ type: "geoJsonFile";
2152
+ file: File;
2153
+ } | {
2154
+ type: "geoJsonData";
2155
+ data: ArrayBuffer | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
2156
+ } | undefined;
2157
+ bounds?: [number, number, number, number] | undefined;
2158
+ caption?: string | undefined;
2159
+ shownInLegend?: boolean | undefined;
2160
+ }, {
2161
+ id: string;
2162
+ name?: string | undefined;
2163
+ description?: string | undefined;
2164
+ style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2165
+ source?: {
2166
+ type: "geoJsonUrl";
2167
+ url: string;
2168
+ refreshInterval?: number | null | undefined;
2169
+ } | {
2170
+ type: "geoJsonFile";
2171
+ file: File;
2172
+ } | {
2173
+ type: "geoJsonData";
2174
+ data: ArrayBuffer | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
2175
+ } | undefined;
2176
+ bounds?: [number, number, number, number] | undefined;
2177
+ caption?: string | undefined;
2178
+ shownInLegend?: boolean | undefined;
2179
+ }>;
2180
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2181
+ params: {
2182
+ id: string;
2183
+ name?: string | undefined;
2184
+ description?: string | undefined;
2185
+ style?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2186
+ source?: {
2187
+ type: "geoJsonUrl";
2188
+ url: string;
2189
+ refreshInterval?: number | null | undefined;
2190
+ } | {
2191
+ type: "geoJsonFile";
2192
+ file: File;
2193
+ } | {
2194
+ type: "geoJsonData";
2195
+ data: ArrayBuffer | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
2196
+ } | undefined;
2197
+ bounds?: [number, number, number, number] | undefined;
2198
+ caption?: string | undefined;
2199
+ shownInLegend?: boolean | undefined;
2200
+ };
2201
+ type: "updateLayer";
2202
+ }, {
2203
+ params: {
2204
+ id: string;
2205
+ name?: string | undefined;
2206
+ description?: string | undefined;
2207
+ style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
2208
+ source?: {
2209
+ type: "geoJsonUrl";
2210
+ url: string;
2211
+ refreshInterval?: number | null | undefined;
2212
+ } | {
2213
+ type: "geoJsonFile";
2214
+ file: File;
2215
+ } | {
2216
+ type: "geoJsonData";
2217
+ data: ArrayBuffer | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
2218
+ } | undefined;
2219
+ bounds?: [number, number, number, number] | undefined;
2220
+ caption?: string | undefined;
2221
+ shownInLegend?: boolean | undefined;
2222
+ };
2223
+ type: "updateLayer";
2224
+ }>;
2225
+ declare const DeleteLayerMessage: z.ZodObject<{
2226
+ type: z.ZodLiteral<"deleteLayer">;
2227
+ params: z.ZodString;
2228
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2229
+ params: string;
2230
+ type: "deleteLayer";
2231
+ }, {
2232
+ params: string;
2233
+ type: "deleteLayer";
2234
+ }>;
2235
+ declare const GetGroupMessage: z.ZodObject<{
2236
+ type: z.ZodLiteral<"getLayerGroup">;
2237
+ params: z.ZodString;
2238
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2239
+ params: string;
2240
+ type: "getLayerGroup";
2241
+ }, {
2242
+ params: string;
2243
+ type: "getLayerGroup";
2244
+ }>;
2245
+ declare const GetGroupsMessage: z.ZodObject<{
2246
+ type: z.ZodLiteral<"getLayerGroups">;
2247
+ params: z.ZodOptional<z.ZodObject<{
2248
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2249
+ }, "strip", z.ZodTypeAny, {
2250
+ ids?: string[] | undefined;
2251
+ }, {
2252
+ ids?: string[] | undefined;
2253
+ }>>;
2254
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2255
+ type: "getLayerGroups";
2256
+ params?: {
2257
+ ids?: string[] | undefined;
2258
+ } | undefined;
2259
+ }, {
2260
+ type: "getLayerGroups";
2261
+ params?: {
2262
+ ids?: string[] | undefined;
2263
+ } | undefined;
2264
+ }>;
2265
+ declare const SetLayerGroupVisibilityMessage: z.ZodObject<{
2266
+ type: z.ZodLiteral<"setLayerGroupVisibility">;
2267
+ params: z.ZodObject<{
2268
+ show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2269
+ hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ show?: string[] | undefined;
2272
+ hide?: string[] | undefined;
2273
+ }, {
2274
+ show?: string[] | undefined;
2275
+ hide?: string[] | undefined;
2276
+ }>;
2277
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2278
+ params: {
2279
+ show?: string[] | undefined;
2280
+ hide?: string[] | undefined;
2281
+ };
2282
+ type: "setLayerGroupVisibility";
2283
+ }, {
2284
+ params: {
2285
+ show?: string[] | undefined;
2286
+ hide?: string[] | undefined;
2287
+ };
2288
+ type: "setLayerGroupVisibility";
2289
+ }>;
2290
+ declare const SetLayerGroupLegendVisibilityMessage: z.ZodObject<{
2291
+ type: z.ZodLiteral<"setLayerGroupLegendVisibility">;
2292
+ params: z.ZodObject<{
2293
+ show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2294
+ hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2295
+ }, "strip", z.ZodTypeAny, {
2296
+ show?: string[] | undefined;
2297
+ hide?: string[] | undefined;
2298
+ }, {
2299
+ show?: string[] | undefined;
2300
+ hide?: string[] | undefined;
2301
+ }>;
2302
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2303
+ params: {
2304
+ show?: string[] | undefined;
2305
+ hide?: string[] | undefined;
2306
+ };
2307
+ type: "setLayerGroupLegendVisibility";
2308
+ }, {
2309
+ params: {
2310
+ show?: string[] | undefined;
2311
+ hide?: string[] | undefined;
2312
+ };
2313
+ type: "setLayerGroupLegendVisibility";
2314
+ }>;
2315
+ declare const OnLayerGroupChangeMessage: z.ZodObject<{
2316
+ eventName: z.ZodLiteral<"onLayerGroupChange">;
2317
+ id: z.ZodString;
2318
+ options: z.ZodObject<{
2319
+ id: z.ZodString;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ id: string;
2322
+ }, {
2323
+ id: string;
2324
+ }>;
2325
+ }, "strict", z.ZodTypeAny, {
2326
+ options: {
2327
+ id: string;
2328
+ };
2329
+ id: string;
2330
+ eventName: "onLayerGroupChange";
2331
+ }, {
2332
+ options: {
2333
+ id: string;
2334
+ };
2335
+ id: string;
2336
+ eventName: "onLayerGroupChange";
2337
+ }>;
2338
+ declare const GetLegendItemMessage: z.ZodObject<{
2339
+ type: z.ZodLiteral<"getLegendItem">;
2340
+ params: z.ZodObject<{
2341
+ id: z.ZodString;
2342
+ layerId: z.ZodString;
2343
+ }, "strip", z.ZodTypeAny, {
2344
+ id: string;
2345
+ layerId: string;
2346
+ }, {
2347
+ id: string;
2348
+ layerId: string;
2349
+ }>;
2350
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2351
+ params: {
2352
+ id: string;
2353
+ layerId: string;
2354
+ };
2355
+ type: "getLegendItem";
2356
+ }, {
2357
+ params: {
2358
+ id: string;
2359
+ layerId: string;
2360
+ };
2361
+ type: "getLegendItem";
2362
+ }>;
2363
+ declare const GetLegendItemsMessage: z.ZodObject<{
2364
+ type: z.ZodLiteral<"getLegendItems">;
2365
+ params: z.ZodOptional<z.ZodObject<{
2366
+ ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
2367
+ id: z.ZodString;
2368
+ layerId: z.ZodString;
2369
+ }, "strip", z.ZodTypeAny, {
2370
+ id: string;
2371
+ layerId: string;
2372
+ }, {
2373
+ id: string;
2374
+ layerId: string;
2375
+ }>, "many">>;
2376
+ layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2377
+ }, "strip", z.ZodTypeAny, {
2378
+ ids?: {
2379
+ id: string;
2380
+ layerId: string;
2381
+ }[] | undefined;
2382
+ layerIds?: string[] | undefined;
2383
+ }, {
2384
+ ids?: {
2385
+ id: string;
2386
+ layerId: string;
2387
+ }[] | undefined;
2388
+ layerIds?: string[] | undefined;
2389
+ }>>;
2390
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2391
+ type: "getLegendItems";
2392
+ params?: {
2393
+ ids?: {
2394
+ id: string;
2395
+ layerId: string;
2396
+ }[] | undefined;
2397
+ layerIds?: string[] | undefined;
2398
+ } | undefined;
2399
+ }, {
2400
+ type: "getLegendItems";
2401
+ params?: {
2402
+ ids?: {
2403
+ id: string;
2404
+ layerId: string;
2405
+ }[] | undefined;
2406
+ layerIds?: string[] | undefined;
2407
+ } | undefined;
2408
+ }>;
2409
+ declare const OnLegendItemChangeMessage: z.ZodObject<{
2410
+ eventName: z.ZodLiteral<"onLegendItemChange">;
2411
+ id: z.ZodString;
2412
+ options: z.ZodObject<{
2413
+ id: z.ZodString;
2414
+ layerId: z.ZodString;
2415
+ }, "strip", z.ZodTypeAny, {
2416
+ id: string;
2417
+ layerId: string;
2418
+ }, {
2419
+ id: string;
2420
+ layerId: string;
2421
+ }>;
2422
+ }, "strict", z.ZodTypeAny, {
2423
+ options: {
2424
+ id: string;
2425
+ layerId: string;
2426
+ };
2427
+ id: string;
2428
+ eventName: "onLegendItemChange";
2429
+ }, {
2430
+ options: {
2431
+ id: string;
2432
+ layerId: string;
2433
+ };
2434
+ id: string;
2435
+ eventName: "onLegendItemChange";
2436
+ }>;
2437
+ declare const SetLegendItemVisibilityMessage: z.ZodObject<{
2438
+ type: z.ZodLiteral<"setLegendItemVisibility">;
2439
+ params: z.ZodObject<{
2440
+ show: z.ZodOptional<z.ZodArray<z.ZodObject<{
2441
+ id: z.ZodString;
2442
+ layerId: z.ZodString;
2443
+ }, "strip", z.ZodTypeAny, {
2444
+ id: string;
2445
+ layerId: string;
2446
+ }, {
2447
+ id: string;
2448
+ layerId: string;
2449
+ }>, "many">>;
2450
+ hide: z.ZodOptional<z.ZodArray<z.ZodObject<{
2451
+ id: z.ZodString;
2452
+ layerId: z.ZodString;
2453
+ }, "strip", z.ZodTypeAny, {
2454
+ id: string;
2455
+ layerId: string;
2456
+ }, {
2457
+ id: string;
2458
+ layerId: string;
2459
+ }>, "many">>;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ show?: {
2462
+ id: string;
2463
+ layerId: string;
2464
+ }[] | undefined;
2465
+ hide?: {
2466
+ id: string;
2467
+ layerId: string;
2468
+ }[] | undefined;
2469
+ }, {
2470
+ show?: {
2471
+ id: string;
2472
+ layerId: string;
2473
+ }[] | undefined;
2474
+ hide?: {
2475
+ id: string;
2476
+ layerId: string;
2477
+ }[] | undefined;
2478
+ }>;
2479
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2480
+ params: {
2481
+ show?: {
2482
+ id: string;
2483
+ layerId: string;
2484
+ }[] | undefined;
2485
+ hide?: {
2486
+ id: string;
2487
+ layerId: string;
2488
+ }[] | undefined;
2489
+ };
2490
+ type: "setLegendItemVisibility";
2491
+ }, {
2492
+ params: {
2493
+ show?: {
2494
+ id: string;
2495
+ layerId: string;
2496
+ }[] | undefined;
2497
+ hide?: {
2498
+ id: string;
2499
+ layerId: string;
2500
+ }[] | undefined;
2501
+ };
2502
+ type: "setLegendItemVisibility";
2503
+ }>;
2504
+ declare const GetFiltersMessage: z.ZodObject<{
2505
+ type: z.ZodLiteral<"getLayerFilters">;
2506
+ params: z.ZodString;
2507
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2508
+ params: string;
2509
+ type: "getLayerFilters";
2510
+ }, {
2511
+ params: string;
2512
+ type: "getLayerFilters";
2513
+ }>;
2514
+ declare const SetFiltersMessage: z.ZodObject<{
2515
+ type: z.ZodLiteral<"setLayerFilters">;
2516
+ params: z.ZodObject<{
2517
+ layerId: z.ZodString;
2518
+ filters: z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>;
2519
+ note: z.ZodOptional<z.ZodString>;
2520
+ }, "strip", z.ZodTypeAny, {
2521
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2522
+ layerId: string;
2523
+ note?: string | undefined;
2524
+ }, {
2525
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2526
+ layerId: string;
2527
+ note?: string | undefined;
2528
+ }>;
2529
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2530
+ params: {
2531
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2532
+ layerId: string;
2533
+ note?: string | undefined;
2534
+ };
2535
+ type: "setLayerFilters";
2536
+ }, {
2537
+ params: {
2538
+ filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
2539
+ layerId: string;
2540
+ note?: string | undefined;
2541
+ };
2542
+ type: "setLayerFilters";
2543
+ }>;
2544
+ declare const OnLayerFiltersChangeMessage: z.ZodObject<{
2545
+ eventName: z.ZodLiteral<"onLayerFiltersChange">;
2546
+ id: z.ZodString;
2547
+ options: z.ZodObject<{
2548
+ layerId: z.ZodString;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ layerId: string;
2551
+ }, {
2552
+ layerId: string;
2553
+ }>;
2554
+ }, "strict", z.ZodTypeAny, {
2555
+ options: {
2556
+ layerId: string;
2557
+ };
2558
+ id: string;
2559
+ eventName: "onLayerFiltersChange";
2560
+ }, {
2561
+ options: {
2562
+ layerId: string;
2563
+ };
2564
+ id: string;
2565
+ eventName: "onLayerFiltersChange";
2566
+ }>;
2567
+ declare const GetRenderedFeaturesMessage: z.ZodObject<{
2568
+ type: z.ZodLiteral<"getRenderedFeatures">;
2569
+ params: z.ZodOptional<z.ZodObject<{
2570
+ layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2571
+ areaQuery: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2572
+ coordinates: z.ZodObject<{
2573
+ latitude: z.ZodNumber;
2574
+ longitude: z.ZodNumber;
2575
+ }, "strip", z.ZodTypeAny, {
2576
+ latitude: number;
2577
+ longitude: number;
2578
+ }, {
2579
+ latitude: number;
2580
+ longitude: number;
2581
+ }>;
2582
+ }, "strip", z.ZodTypeAny, {
2583
+ coordinates: {
2584
+ latitude: number;
2585
+ longitude: number;
2586
+ };
2587
+ }, {
2588
+ coordinates: {
2589
+ latitude: number;
2590
+ longitude: number;
2591
+ };
2592
+ }>, z.ZodObject<{
2593
+ boundary: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ boundary: [number, number, number, number];
2596
+ }, {
2597
+ boundary: [number, number, number, number];
2598
+ }>]>>;
2599
+ }, "strip", z.ZodTypeAny, {
2600
+ layerIds?: string[] | undefined;
2601
+ areaQuery?: {
2602
+ coordinates: {
2603
+ latitude: number;
2604
+ longitude: number;
2605
+ };
2606
+ } | {
2607
+ boundary: [number, number, number, number];
2608
+ } | undefined;
2609
+ }, {
2610
+ layerIds?: string[] | undefined;
2611
+ areaQuery?: {
2612
+ coordinates: {
2613
+ latitude: number;
2614
+ longitude: number;
2615
+ };
2616
+ } | {
2617
+ boundary: [number, number, number, number];
2618
+ } | undefined;
2619
+ }>>;
2620
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2621
+ type: "getRenderedFeatures";
2622
+ params?: {
2623
+ layerIds?: string[] | undefined;
2624
+ areaQuery?: {
2625
+ coordinates: {
2626
+ latitude: number;
2627
+ longitude: number;
2628
+ };
2629
+ } | {
2630
+ boundary: [number, number, number, number];
2631
+ } | undefined;
2632
+ } | undefined;
2633
+ }, {
2634
+ type: "getRenderedFeatures";
2635
+ params?: {
2636
+ layerIds?: string[] | undefined;
2637
+ areaQuery?: {
2638
+ coordinates: {
2639
+ latitude: number;
2640
+ longitude: number;
2641
+ };
2642
+ } | {
2643
+ boundary: [number, number, number, number];
2644
+ } | undefined;
2645
+ } | undefined;
2646
+ }>;
2647
+ declare const GetFeatureMessage: z.ZodObject<{
2648
+ type: z.ZodLiteral<"getFeature">;
2649
+ params: z.ZodObject<{
2650
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2651
+ layerId: z.ZodString;
2652
+ }, "strip", z.ZodTypeAny, {
2653
+ id: string | number;
2654
+ layerId: string;
2655
+ }, {
2656
+ id: string | number;
2657
+ layerId: string;
2658
+ }>;
2659
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2660
+ params: {
2661
+ id: string | number;
2662
+ layerId: string;
2663
+ };
2664
+ type: "getFeature";
2665
+ }, {
2666
+ params: {
2667
+ id: string | number;
2668
+ layerId: string;
2669
+ };
2670
+ type: "getFeature";
2671
+ }>;
2672
+ declare const GetFeaturesMessage: z.ZodObject<{
2673
+ type: z.ZodLiteral<"getFeatures">;
2674
+ params: z.ZodObject<{
2675
+ layerId: z.ZodString;
2676
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2677
+ sorting: z.ZodOptional<z.ZodObject<{
2678
+ attribute: z.ZodString;
2679
+ direction: z.ZodEnum<["asc", "desc"]>;
2680
+ }, "strip", z.ZodTypeAny, {
2681
+ attribute: string;
2682
+ direction: "asc" | "desc";
2683
+ }, {
2684
+ attribute: string;
2685
+ direction: "asc" | "desc";
2686
+ }>>;
2687
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2688
+ type: z.ZodLiteral<"Polygon">;
2689
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2690
+ }, "strip", z.ZodTypeAny, {
2691
+ type: "Polygon";
2692
+ coordinates: [number, number][][];
2693
+ }, {
2694
+ type: "Polygon";
2695
+ coordinates: [number, number][][];
2696
+ }>, z.ZodObject<{
2697
+ type: z.ZodLiteral<"MultiPolygon">;
2698
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2699
+ }, "strip", z.ZodTypeAny, {
2700
+ type: "MultiPolygon";
2701
+ coordinates: [number, number][][][];
2702
+ }, {
2703
+ type: "MultiPolygon";
2704
+ coordinates: [number, number][][][];
2705
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2706
+ search: z.ZodOptional<z.ZodString>;
2707
+ pagination: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2708
+ }, "strip", z.ZodTypeAny, {
2709
+ layerId: string;
2710
+ search?: string | undefined;
2711
+ boundary?: [number, number, number, number] | [number, number][] | {
2712
+ type: "Polygon";
2713
+ coordinates: [number, number][][];
2714
+ } | {
2715
+ type: "MultiPolygon";
2716
+ coordinates: [number, number][][][];
2717
+ } | undefined;
2718
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2719
+ sorting?: {
2720
+ attribute: string;
2721
+ direction: "asc" | "desc";
2722
+ } | undefined;
2723
+ pagination?: string | null | undefined;
2724
+ }, {
2725
+ layerId: string;
2726
+ search?: string | undefined;
2727
+ boundary?: [number, number, number, number] | [number, number][] | {
2728
+ type: "Polygon";
2729
+ coordinates: [number, number][][];
2730
+ } | {
2731
+ type: "MultiPolygon";
2732
+ coordinates: [number, number][][][];
2733
+ } | undefined;
2734
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2735
+ sorting?: {
2736
+ attribute: string;
2737
+ direction: "asc" | "desc";
2738
+ } | undefined;
2739
+ pagination?: string | null | undefined;
2740
+ }>;
2741
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2742
+ params: {
2743
+ layerId: string;
2744
+ search?: string | undefined;
2745
+ boundary?: [number, number, number, number] | [number, number][] | {
2746
+ type: "Polygon";
2747
+ coordinates: [number, number][][];
2748
+ } | {
2749
+ type: "MultiPolygon";
2750
+ coordinates: [number, number][][][];
2751
+ } | undefined;
2752
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2753
+ sorting?: {
2754
+ attribute: string;
2755
+ direction: "asc" | "desc";
2756
+ } | undefined;
2757
+ pagination?: string | null | undefined;
2758
+ };
2759
+ type: "getFeatures";
2760
+ }, {
2761
+ params: {
2762
+ layerId: string;
2763
+ search?: string | undefined;
2764
+ boundary?: [number, number, number, number] | [number, number][] | {
2765
+ type: "Polygon";
2766
+ coordinates: [number, number][][];
2767
+ } | {
2768
+ type: "MultiPolygon";
2769
+ coordinates: [number, number][][][];
2770
+ } | undefined;
2771
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2772
+ sorting?: {
2773
+ attribute: string;
2774
+ direction: "asc" | "desc";
2775
+ } | undefined;
2776
+ pagination?: string | null | undefined;
2777
+ };
2778
+ type: "getFeatures";
2779
+ }>;
2780
+ declare const GetGeoJsonFeatureMessage: z.ZodObject<{
2781
+ type: z.ZodLiteral<"getGeoJsonFeature">;
2782
+ params: z.ZodObject<{
2783
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2784
+ layerId: z.ZodString;
2785
+ }, "strip", z.ZodTypeAny, {
2786
+ id: string | number;
2787
+ layerId: string;
2788
+ }, {
2789
+ id: string | number;
2790
+ layerId: string;
2791
+ }>;
2792
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2793
+ params: {
2794
+ id: string | number;
2795
+ layerId: string;
2796
+ };
2797
+ type: "getGeoJsonFeature";
2798
+ }, {
2799
+ params: {
2800
+ id: string | number;
2801
+ layerId: string;
2802
+ };
2803
+ type: "getGeoJsonFeature";
2804
+ }>;
2805
+ declare const GetLayerCategoriesMessage: z.ZodObject<{
2806
+ type: z.ZodLiteral<"getCategoryData">;
2807
+ params: z.ZodObject<{
2808
+ layerId: z.ZodString;
2809
+ attribute: z.ZodString;
2810
+ limit: z.ZodOptional<z.ZodNumber>;
2811
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2812
+ type: z.ZodLiteral<"Polygon">;
2813
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2814
+ }, "strip", z.ZodTypeAny, {
2815
+ type: "Polygon";
2816
+ coordinates: [number, number][][];
2817
+ }, {
2818
+ type: "Polygon";
2819
+ coordinates: [number, number][][];
2820
+ }>, z.ZodObject<{
2821
+ type: z.ZodLiteral<"MultiPolygon">;
2822
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2823
+ }, "strip", z.ZodTypeAny, {
2824
+ type: "MultiPolygon";
2825
+ coordinates: [number, number][][][];
2826
+ }, {
2827
+ type: "MultiPolygon";
2828
+ coordinates: [number, number][][][];
2829
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2830
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2831
+ values: z.ZodOptional<z.ZodObject<{
2832
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2833
+ type: z.ZodLiteral<"Polygon">;
2834
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2835
+ }, "strip", z.ZodTypeAny, {
2836
+ type: "Polygon";
2837
+ coordinates: [number, number][][];
2838
+ }, {
2839
+ type: "Polygon";
2840
+ coordinates: [number, number][][];
2841
+ }>, z.ZodObject<{
2842
+ type: z.ZodLiteral<"MultiPolygon">;
2843
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2844
+ }, "strip", z.ZodTypeAny, {
2845
+ type: "MultiPolygon";
2846
+ coordinates: [number, number][][][];
2847
+ }, {
2848
+ type: "MultiPolygon";
2849
+ coordinates: [number, number][][][];
2850
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2851
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2852
+ aggregation: z.ZodOptional<z.ZodObject<{
2853
+ method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
2854
+ attribute: z.ZodString;
2855
+ }, "strip", z.ZodTypeAny, {
2856
+ attribute: string;
2857
+ method: "avg" | "max" | "min" | "sum" | "median";
2858
+ }, {
2859
+ attribute: string;
2860
+ method: "avg" | "max" | "min" | "sum" | "median";
2861
+ }>>;
2862
+ }, "strip", z.ZodTypeAny, {
2863
+ boundary?: [number, number, number, number] | [number, number][] | {
2864
+ type: "Polygon";
2865
+ coordinates: [number, number][][];
2866
+ } | {
2867
+ type: "MultiPolygon";
2868
+ coordinates: [number, number][][][];
2869
+ } | undefined;
2870
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2871
+ aggregation?: {
2872
+ attribute: string;
2873
+ method: "avg" | "max" | "min" | "sum" | "median";
2874
+ } | undefined;
2875
+ }, {
2876
+ boundary?: [number, number, number, number] | [number, number][] | {
2877
+ type: "Polygon";
2878
+ coordinates: [number, number][][];
2879
+ } | {
2880
+ type: "MultiPolygon";
2881
+ coordinates: [number, number][][][];
2882
+ } | undefined;
2883
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2884
+ aggregation?: {
2885
+ attribute: string;
2886
+ method: "avg" | "max" | "min" | "sum" | "median";
2887
+ } | undefined;
2888
+ }>>;
2889
+ }, "strip", z.ZodTypeAny, {
2890
+ attribute: string;
2891
+ layerId: string;
2892
+ values?: {
2893
+ boundary?: [number, number, number, number] | [number, number][] | {
2894
+ type: "Polygon";
2895
+ coordinates: [number, number][][];
2896
+ } | {
2897
+ type: "MultiPolygon";
2898
+ coordinates: [number, number][][][];
2899
+ } | undefined;
2900
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2901
+ aggregation?: {
2902
+ attribute: string;
2903
+ method: "avg" | "max" | "min" | "sum" | "median";
2904
+ } | undefined;
2905
+ } | undefined;
2906
+ boundary?: [number, number, number, number] | [number, number][] | {
2907
+ type: "Polygon";
2908
+ coordinates: [number, number][][];
2909
+ } | {
2910
+ type: "MultiPolygon";
2911
+ coordinates: [number, number][][][];
2912
+ } | undefined;
2913
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2914
+ limit?: number | undefined;
2915
+ }, {
2916
+ attribute: string;
2917
+ layerId: string;
2918
+ values?: {
2919
+ boundary?: [number, number, number, number] | [number, number][] | {
2920
+ type: "Polygon";
2921
+ coordinates: [number, number][][];
2922
+ } | {
2923
+ type: "MultiPolygon";
2924
+ coordinates: [number, number][][][];
2925
+ } | undefined;
2926
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2927
+ aggregation?: {
2928
+ attribute: string;
2929
+ method: "avg" | "max" | "min" | "sum" | "median";
2930
+ } | undefined;
2931
+ } | undefined;
2932
+ boundary?: [number, number, number, number] | [number, number][] | {
2933
+ type: "Polygon";
2934
+ coordinates: [number, number][][];
2935
+ } | {
2936
+ type: "MultiPolygon";
2937
+ coordinates: [number, number][][][];
2938
+ } | undefined;
2939
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2940
+ limit?: number | undefined;
2941
+ }>;
2942
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2943
+ params: {
2944
+ attribute: string;
2945
+ layerId: string;
2946
+ values?: {
2947
+ boundary?: [number, number, number, number] | [number, number][] | {
2948
+ type: "Polygon";
2949
+ coordinates: [number, number][][];
2950
+ } | {
2951
+ type: "MultiPolygon";
2952
+ coordinates: [number, number][][][];
2953
+ } | undefined;
2954
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2955
+ aggregation?: {
2956
+ attribute: string;
2957
+ method: "avg" | "max" | "min" | "sum" | "median";
2958
+ } | undefined;
2959
+ } | undefined;
2960
+ boundary?: [number, number, number, number] | [number, number][] | {
2961
+ type: "Polygon";
2962
+ coordinates: [number, number][][];
2963
+ } | {
2964
+ type: "MultiPolygon";
2965
+ coordinates: [number, number][][][];
2966
+ } | undefined;
2967
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2968
+ limit?: number | undefined;
2969
+ };
2970
+ type: "getCategoryData";
2971
+ }, {
2972
+ params: {
2973
+ attribute: string;
2974
+ layerId: string;
2975
+ values?: {
2976
+ boundary?: [number, number, number, number] | [number, number][] | {
2977
+ type: "Polygon";
2978
+ coordinates: [number, number][][];
2979
+ } | {
2980
+ type: "MultiPolygon";
2981
+ coordinates: [number, number][][][];
2982
+ } | undefined;
2983
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2984
+ aggregation?: {
2985
+ attribute: string;
2986
+ method: "avg" | "max" | "min" | "sum" | "median";
2987
+ } | undefined;
2988
+ } | undefined;
2989
+ boundary?: [number, number, number, number] | [number, number][] | {
2990
+ type: "Polygon";
2991
+ coordinates: [number, number][][];
2992
+ } | {
2993
+ type: "MultiPolygon";
2994
+ coordinates: [number, number][][][];
2995
+ } | undefined;
2996
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2997
+ limit?: number | undefined;
2998
+ };
2999
+ type: "getCategoryData";
3000
+ }>;
3001
+ declare const GetLayerHistogramMessage: z.ZodObject<{
3002
+ type: z.ZodLiteral<"getHistogramData">;
3003
+ params: z.ZodObject<{
3004
+ layerId: z.ZodString;
3005
+ attribute: z.ZodString;
3006
+ steps: z.ZodUnion<[z.ZodObject<{
3007
+ type: z.ZodLiteral<"equal-intervals">;
3008
+ count: z.ZodNumber;
3009
+ }, "strip", z.ZodTypeAny, {
3010
+ type: "equal-intervals";
3011
+ count: number;
3012
+ }, {
3013
+ type: "equal-intervals";
3014
+ count: number;
3015
+ }>, z.ZodObject<{
3016
+ type: z.ZodLiteral<"time-interval">;
3017
+ interval: z.ZodEnum<["hour", "day", "week", "month", "year"]>;
3018
+ }, "strip", z.ZodTypeAny, {
3019
+ type: "time-interval";
3020
+ interval: "hour" | "day" | "week" | "month" | "year";
3021
+ }, {
3022
+ type: "time-interval";
3023
+ interval: "hour" | "day" | "week" | "month" | "year";
3024
+ }>, z.ZodArray<z.ZodNumber, "many">]>;
3025
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3026
+ type: z.ZodLiteral<"Polygon">;
3027
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
3028
+ }, "strip", z.ZodTypeAny, {
3029
+ type: "Polygon";
3030
+ coordinates: [number, number][][];
3031
+ }, {
3032
+ type: "Polygon";
3033
+ coordinates: [number, number][][];
3034
+ }>, z.ZodObject<{
3035
+ type: z.ZodLiteral<"MultiPolygon">;
3036
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
3037
+ }, "strip", z.ZodTypeAny, {
3038
+ type: "MultiPolygon";
3039
+ coordinates: [number, number][][][];
3040
+ }, {
3041
+ type: "MultiPolygon";
3042
+ coordinates: [number, number][][][];
3043
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
3044
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
3045
+ values: z.ZodOptional<z.ZodObject<{
3046
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3047
+ type: z.ZodLiteral<"Polygon">;
3048
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
3049
+ }, "strip", z.ZodTypeAny, {
3050
+ type: "Polygon";
3051
+ coordinates: [number, number][][];
3052
+ }, {
3053
+ type: "Polygon";
3054
+ coordinates: [number, number][][];
3055
+ }>, z.ZodObject<{
3056
+ type: z.ZodLiteral<"MultiPolygon">;
3057
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ type: "MultiPolygon";
3060
+ coordinates: [number, number][][][];
3061
+ }, {
3062
+ type: "MultiPolygon";
3063
+ coordinates: [number, number][][][];
3064
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
3065
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
3066
+ aggregation: z.ZodOptional<z.ZodObject<{
3067
+ method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
3068
+ attribute: z.ZodString;
3069
+ }, "strip", z.ZodTypeAny, {
3070
+ attribute: string;
3071
+ method: "avg" | "max" | "min" | "sum" | "median";
3072
+ }, {
3073
+ attribute: string;
3074
+ method: "avg" | "max" | "min" | "sum" | "median";
3075
+ }>>;
3076
+ }, "strip", z.ZodTypeAny, {
3077
+ boundary?: [number, number, number, number] | [number, number][] | {
3078
+ type: "Polygon";
3079
+ coordinates: [number, number][][];
3080
+ } | {
3081
+ type: "MultiPolygon";
3082
+ coordinates: [number, number][][][];
3083
+ } | undefined;
3084
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3085
+ aggregation?: {
3086
+ attribute: string;
3087
+ method: "avg" | "max" | "min" | "sum" | "median";
3088
+ } | undefined;
3089
+ }, {
3090
+ boundary?: [number, number, number, number] | [number, number][] | {
3091
+ type: "Polygon";
3092
+ coordinates: [number, number][][];
3093
+ } | {
3094
+ type: "MultiPolygon";
3095
+ coordinates: [number, number][][][];
3096
+ } | undefined;
3097
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3098
+ aggregation?: {
3099
+ attribute: string;
3100
+ method: "avg" | "max" | "min" | "sum" | "median";
3101
+ } | undefined;
3102
+ }>>;
3103
+ }, "strip", z.ZodTypeAny, {
3104
+ attribute: string;
3105
+ layerId: string;
3106
+ steps: number[] | {
3107
+ type: "equal-intervals";
3108
+ count: number;
3109
+ } | {
3110
+ type: "time-interval";
3111
+ interval: "hour" | "day" | "week" | "month" | "year";
3112
+ };
3113
+ values?: {
3114
+ boundary?: [number, number, number, number] | [number, number][] | {
3115
+ type: "Polygon";
3116
+ coordinates: [number, number][][];
3117
+ } | {
3118
+ type: "MultiPolygon";
3119
+ coordinates: [number, number][][][];
3120
+ } | undefined;
3121
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3122
+ aggregation?: {
3123
+ attribute: string;
3124
+ method: "avg" | "max" | "min" | "sum" | "median";
3125
+ } | undefined;
3126
+ } | undefined;
3127
+ boundary?: [number, number, number, number] | [number, number][] | {
3128
+ type: "Polygon";
3129
+ coordinates: [number, number][][];
3130
+ } | {
3131
+ type: "MultiPolygon";
3132
+ coordinates: [number, number][][][];
3133
+ } | undefined;
3134
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3135
+ }, {
3136
+ attribute: string;
3137
+ layerId: string;
3138
+ steps: number[] | {
3139
+ type: "equal-intervals";
3140
+ count: number;
3141
+ } | {
3142
+ type: "time-interval";
3143
+ interval: "hour" | "day" | "week" | "month" | "year";
3144
+ };
3145
+ values?: {
3146
+ boundary?: [number, number, number, number] | [number, number][] | {
3147
+ type: "Polygon";
3148
+ coordinates: [number, number][][];
3149
+ } | {
3150
+ type: "MultiPolygon";
3151
+ coordinates: [number, number][][][];
3152
+ } | undefined;
3153
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3154
+ aggregation?: {
3155
+ attribute: string;
3156
+ method: "avg" | "max" | "min" | "sum" | "median";
3157
+ } | undefined;
3158
+ } | undefined;
3159
+ boundary?: [number, number, number, number] | [number, number][] | {
3160
+ type: "Polygon";
3161
+ coordinates: [number, number][][];
3162
+ } | {
3163
+ type: "MultiPolygon";
3164
+ coordinates: [number, number][][][];
3165
+ } | undefined;
3166
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3167
+ }>;
3168
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3169
+ params: {
3170
+ attribute: string;
3171
+ layerId: string;
3172
+ steps: number[] | {
3173
+ type: "equal-intervals";
3174
+ count: number;
3175
+ } | {
3176
+ type: "time-interval";
3177
+ interval: "hour" | "day" | "week" | "month" | "year";
3178
+ };
3179
+ values?: {
3180
+ boundary?: [number, number, number, number] | [number, number][] | {
3181
+ type: "Polygon";
3182
+ coordinates: [number, number][][];
3183
+ } | {
3184
+ type: "MultiPolygon";
3185
+ coordinates: [number, number][][][];
3186
+ } | undefined;
3187
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3188
+ aggregation?: {
3189
+ attribute: string;
3190
+ method: "avg" | "max" | "min" | "sum" | "median";
3191
+ } | undefined;
3192
+ } | undefined;
3193
+ boundary?: [number, number, number, number] | [number, number][] | {
3194
+ type: "Polygon";
3195
+ coordinates: [number, number][][];
3196
+ } | {
3197
+ type: "MultiPolygon";
3198
+ coordinates: [number, number][][][];
3199
+ } | undefined;
3200
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3201
+ };
3202
+ type: "getHistogramData";
3203
+ }, {
3204
+ params: {
3205
+ attribute: string;
3206
+ layerId: string;
3207
+ steps: number[] | {
3208
+ type: "equal-intervals";
3209
+ count: number;
3210
+ } | {
3211
+ type: "time-interval";
3212
+ interval: "hour" | "day" | "week" | "month" | "year";
3213
+ };
3214
+ values?: {
3215
+ boundary?: [number, number, number, number] | [number, number][] | {
3216
+ type: "Polygon";
3217
+ coordinates: [number, number][][];
3218
+ } | {
3219
+ type: "MultiPolygon";
3220
+ coordinates: [number, number][][][];
3221
+ } | undefined;
3222
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3223
+ aggregation?: {
3224
+ attribute: string;
3225
+ method: "avg" | "max" | "min" | "sum" | "median";
3226
+ } | undefined;
3227
+ } | undefined;
3228
+ boundary?: [number, number, number, number] | [number, number][] | {
3229
+ type: "Polygon";
3230
+ coordinates: [number, number][][];
3231
+ } | {
3232
+ type: "MultiPolygon";
3233
+ coordinates: [number, number][][][];
3234
+ } | undefined;
3235
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3236
+ };
3237
+ type: "getHistogramData";
3238
+ }>;
3239
+ declare const GetLayerCalculationMessage: z.ZodObject<{
3240
+ type: z.ZodLiteral<"getAggregates">;
3241
+ params: z.ZodObject<{
3242
+ layerId: z.ZodString;
3243
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3244
+ type: z.ZodLiteral<"Polygon">;
3245
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
3246
+ }, "strip", z.ZodTypeAny, {
3247
+ type: "Polygon";
3248
+ coordinates: [number, number][][];
3249
+ }, {
3250
+ type: "Polygon";
3251
+ coordinates: [number, number][][];
3252
+ }>, z.ZodObject<{
3253
+ type: z.ZodLiteral<"MultiPolygon">;
3254
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
3255
+ }, "strip", z.ZodTypeAny, {
3256
+ type: "MultiPolygon";
3257
+ coordinates: [number, number][][][];
3258
+ }, {
3259
+ type: "MultiPolygon";
3260
+ coordinates: [number, number][][][];
3261
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
3262
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
3263
+ aggregation: z.ZodObject<{
3264
+ methods: z.ZodArray<z.ZodUnion<[z.ZodEnum<["avg", "max", "min", "sum", "median"]>, z.ZodLiteral<"count">]>, "many">;
3265
+ attribute: z.ZodOptional<z.ZodString>;
3266
+ }, "strip", z.ZodTypeAny, {
3267
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3268
+ attribute?: string | undefined;
3269
+ }, {
3270
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3271
+ attribute?: string | undefined;
3272
+ }>;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ aggregation: {
3275
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3276
+ attribute?: string | undefined;
3277
+ };
3278
+ layerId: string;
3279
+ boundary?: [number, number, number, number] | [number, number][] | {
3280
+ type: "Polygon";
3281
+ coordinates: [number, number][][];
3282
+ } | {
3283
+ type: "MultiPolygon";
3284
+ coordinates: [number, number][][][];
3285
+ } | undefined;
3286
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3287
+ }, {
3288
+ aggregation: {
3289
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3290
+ attribute?: string | undefined;
3291
+ };
3292
+ layerId: string;
3293
+ boundary?: [number, number, number, number] | [number, number][] | {
3294
+ type: "Polygon";
3295
+ coordinates: [number, number][][];
3296
+ } | {
3297
+ type: "MultiPolygon";
3298
+ coordinates: [number, number][][][];
3299
+ } | undefined;
3300
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3301
+ }>;
3302
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3303
+ params: {
3304
+ aggregation: {
3305
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3306
+ attribute?: string | undefined;
3307
+ };
3308
+ layerId: string;
3309
+ boundary?: [number, number, number, number] | [number, number][] | {
3310
+ type: "Polygon";
3311
+ coordinates: [number, number][][];
3312
+ } | {
3313
+ type: "MultiPolygon";
3314
+ coordinates: [number, number][][][];
3315
+ } | undefined;
3316
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3317
+ };
3318
+ type: "getAggregates";
3319
+ }, {
3320
+ params: {
3321
+ aggregation: {
3322
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
3323
+ attribute?: string | undefined;
3324
+ };
3325
+ layerId: string;
3326
+ boundary?: [number, number, number, number] | [number, number][] | {
3327
+ type: "Polygon";
3328
+ coordinates: [number, number][][];
3329
+ } | {
3330
+ type: "MultiPolygon";
3331
+ coordinates: [number, number][][][];
3332
+ } | undefined;
3333
+ filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
3334
+ };
3335
+ type: "getAggregates";
3336
+ }>;
3337
+ declare const GetLayerSchemaMessage: z.ZodObject<{
3338
+ type: z.ZodLiteral<"getLayerSchema">;
3339
+ params: z.ZodString;
3340
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3341
+ params: string;
3342
+ type: "getLayerSchema";
3343
+ }, {
3344
+ params: string;
3345
+ type: "getLayerSchema";
3346
+ }>;
3347
+ type LayersSchema = {
3348
+ methods: {
3349
+ getLayer: Method<zInfer<typeof GetLayerMessage>, Layer | null>;
3350
+ getLayers: Method<zInfer<typeof GetLayersMessage>, Array<Layer | null>>;
3351
+ setLayerVisibility: Method<zInfer<typeof SetLayerVisibilityMessage>, void>;
3352
+ setLayerStyle: Method<zInfer<typeof SetLayerStyleMessage>, void>;
3353
+ setLayerLegendVisibility: Method<zInfer<typeof SetLayerLegendVisibilityMessage>, void>;
3354
+ createLayersFromGeoJson: Method<zInfer<typeof CreateLayersFromGeoJsonMessage>, {
3355
+ layerGroup: LayerGroup;
3356
+ layers: Array<Layer>;
3357
+ } | null>;
3358
+ updateLayer: Method<zInfer<typeof UpdateLayerMessage>, Layer>;
3359
+ deleteLayer: Method<zInfer<typeof DeleteLayerMessage>, void>;
3360
+ getLayerGroup: Method<zInfer<typeof GetGroupMessage>, LayerGroup | null>;
3361
+ getLayerGroups: Method<zInfer<typeof GetGroupsMessage>, Array<LayerGroup | null>>;
3362
+ setLayerGroupVisibility: Method<zInfer<typeof SetLayerGroupVisibilityMessage>, void>;
3363
+ setLayerGroupLegendVisibility: Method<zInfer<typeof SetLayerGroupLegendVisibilityMessage>, void>;
3364
+ getLegendItem: Method<zInfer<typeof GetLegendItemMessage>, LegendItem | null>;
3365
+ getLegendItems: Method<zInfer<typeof GetLegendItemsMessage>, Array<LegendItem | null>>;
3366
+ setLegendItemVisibility: Method<zInfer<typeof SetLegendItemVisibilityMessage>, void>;
3367
+ getLayerFilters: Method<zInfer<typeof GetFiltersMessage>, LayerFilters | null>;
3368
+ setLayerFilters: Method<zInfer<typeof SetFiltersMessage>, void>;
3369
+ getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<LayerFeature>>;
3370
+ getFeature: Method<zInfer<typeof GetFeatureMessage>, LayerFeature | null>;
3371
+ getFeatures: Method<zInfer<typeof GetFeaturesMessage>, UnwrapPromise<ReturnType<LayersController["getFeatures"]>>>;
3372
+ getGeoJsonFeature: Method<zInfer<typeof GetGeoJsonFeatureMessage>, GeoJsonFeature | null>;
3373
+ getCategoryData: Method<zInfer<typeof GetLayerCategoriesMessage>, Array<GetLayerCategoriesGroup>>;
3374
+ getHistogramData: Method<zInfer<typeof GetLayerHistogramMessage>, Array<GetLayerHistogramBin>>;
3375
+ getAggregates: Method<zInfer<typeof GetLayerCalculationMessage>, Record<AggregationMethod | "count", number | null>>;
3376
+ getLayerSchema: Method<zInfer<typeof GetLayerSchemaMessage>, LayerSchema>;
3377
+ };
3378
+ listeners: {
3379
+ onLayerChange: Listener<zInfer<typeof OnLayerChangeMessage.shape.options>, LayerChangeCallbackParams>;
3380
+ onLayerGroupChange: Listener<zInfer<typeof OnLayerGroupChangeMessage.shape.options>, LayerGroupChangeCallbackParams>;
3381
+ onLegendItemChange: Listener<zInfer<typeof OnLegendItemChangeMessage.shape.options>, LegendItemChangeCallbackParams>;
3382
+ onLayerFiltersChange: Listener<zInfer<typeof OnLayerFiltersChangeMessage.shape.options>, LayerFilters>;
3383
+ };
3384
+ };
3385
+
3386
+ declare const GetMapDetailsMessage: z.ZodObject<{
3387
+ type: z.ZodLiteral<"getMapDetails">;
3388
+ params: z.ZodUndefined;
3389
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3390
+ type: "getMapDetails";
3391
+ params?: undefined;
3392
+ }, {
3393
+ type: "getMapDetails";
3394
+ params?: undefined;
3395
+ }>;
3396
+ type MiscSchema = {
3397
+ methods: {
3398
+ getMapDetails: Method<zInfer<typeof GetMapDetailsMessage>, MapDetails>;
3399
+ };
3400
+ listeners: {};
3401
+ };
3402
+
3403
+ declare const GetSelectionMessage: z.ZodObject<{
3404
+ type: z.ZodLiteral<"getSelection">;
3405
+ params: z.ZodUndefined;
3406
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3407
+ type: "getSelection";
3408
+ params?: undefined;
3409
+ }, {
3410
+ type: "getSelection";
3411
+ params?: undefined;
3412
+ }>;
3413
+ declare const SelectFeatureMessage: z.ZodObject<{
3414
+ type: z.ZodLiteral<"selectFeature">;
3415
+ params: z.ZodObject<{
3416
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3417
+ layerId: z.ZodString;
3418
+ showPopup: z.ZodOptional<z.ZodBoolean>;
3419
+ fitViewport: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
3420
+ maxZoom: z.ZodNumber;
3421
+ }, "strip", z.ZodTypeAny, {
3422
+ maxZoom: number;
3423
+ }, {
3424
+ maxZoom: number;
3425
+ }>]>>;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ id: string | number;
3428
+ layerId: string;
3429
+ showPopup?: boolean | undefined;
3430
+ fitViewport?: boolean | {
3431
+ maxZoom: number;
3432
+ } | undefined;
3433
+ }, {
3434
+ id: string | number;
3435
+ layerId: string;
3436
+ showPopup?: boolean | undefined;
3437
+ fitViewport?: boolean | {
3438
+ maxZoom: number;
3439
+ } | undefined;
3440
+ }>;
3441
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3442
+ params: {
3443
+ id: string | number;
3444
+ layerId: string;
3445
+ showPopup?: boolean | undefined;
3446
+ fitViewport?: boolean | {
3447
+ maxZoom: number;
3448
+ } | undefined;
3449
+ };
3450
+ type: "selectFeature";
3451
+ }, {
3452
+ params: {
3453
+ id: string | number;
3454
+ layerId: string;
3455
+ showPopup?: boolean | undefined;
3456
+ fitViewport?: boolean | {
3457
+ maxZoom: number;
3458
+ } | undefined;
3459
+ };
3460
+ type: "selectFeature";
3461
+ }>;
3462
+ declare const ClearSelectionMessage: z.ZodObject<{
3463
+ type: z.ZodLiteral<"clearSelection">;
3464
+ params: z.ZodOptional<z.ZodObject<{
3465
+ features: z.ZodOptional<z.ZodBoolean>;
3466
+ elements: z.ZodOptional<z.ZodBoolean>;
3467
+ }, "strip", z.ZodTypeAny, {
3468
+ features?: boolean | undefined;
3469
+ elements?: boolean | undefined;
3470
+ }, {
3471
+ features?: boolean | undefined;
3472
+ elements?: boolean | undefined;
3473
+ }>>;
3474
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3475
+ type: "clearSelection";
3476
+ params?: {
3477
+ features?: boolean | undefined;
3478
+ elements?: boolean | undefined;
3479
+ } | undefined;
3480
+ }, {
3481
+ type: "clearSelection";
3482
+ params?: {
3483
+ features?: boolean | undefined;
3484
+ elements?: boolean | undefined;
3485
+ } | undefined;
3486
+ }>;
3487
+ type SelectionSchema = {
3488
+ methods: {
3489
+ getSelection: Method<zInfer<typeof GetSelectionMessage>, Array<EntityNode>>;
3490
+ selectFeature: Method<zInfer<typeof SelectFeatureMessage>, void>;
3491
+ clearSelection: Method<zInfer<typeof ClearSelectionMessage>, void>;
3492
+ };
3493
+ listeners: {
3494
+ onSelectionChange: ListenerNoOptions<{
3495
+ selection: Array<EntityNode>;
3496
+ }>;
3497
+ };
3498
+ };
3499
+
3500
+ declare const SetToolMessage: z.ZodObject<{
3501
+ type: z.ZodLiteral<"setTool">;
3502
+ params: z.ZodNullable<z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>>;
3503
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3504
+ params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
3505
+ type: "setTool";
3506
+ }, {
3507
+ params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
3508
+ type: "setTool";
3509
+ }>;
3510
+ declare const GetToolMessage: z.ZodObject<{
3511
+ type: z.ZodLiteral<"getTool">;
3512
+ params: z.ZodUndefined;
3513
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3514
+ type: "getTool";
3515
+ params?: undefined;
3516
+ }, {
3517
+ type: "getTool";
3518
+ params?: undefined;
3519
+ }>;
3520
+ declare const SetToolSettingsMessage: z.ZodObject<{
3521
+ type: z.ZodLiteral<"setToolSettings">;
3522
+ params: z.ZodDiscriminatedUnion<"tool", [z.ZodObject<z.objectUtil.extendShape<{
3523
+ symbol: z.ZodOptional<z.ZodString>;
3524
+ color: z.ZodOptional<z.ZodString>;
3525
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
3526
+ afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
3527
+ }, {
3528
+ tool: z.ZodLiteral<"pin">;
3529
+ }>, "strip", z.ZodTypeAny, {
3530
+ tool: "pin";
3531
+ symbol?: string | undefined;
3532
+ color?: string | undefined;
3533
+ frame?: "frame-circle" | "frame-square" | null | undefined;
3534
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
3535
+ }, {
3536
+ tool: "pin";
3537
+ symbol?: string | undefined;
3538
+ color?: string | undefined;
3539
+ frame?: "frame-circle" | "frame-square" | null | undefined;
3540
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
3541
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3542
+ color: z.ZodOptional<z.ZodString>;
3543
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
3544
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
3545
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3546
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
3547
+ }, {
3548
+ tool: z.ZodLiteral<"line">;
3549
+ }>, "strip", z.ZodTypeAny, {
3550
+ tool: "line";
3551
+ color?: string | undefined;
3552
+ strokeOpacity?: number | undefined;
3553
+ strokeWidth?: number | undefined;
3554
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3555
+ distanceMarker?: boolean | undefined;
3556
+ }, {
3557
+ tool: "line";
3558
+ color?: string | undefined;
3559
+ strokeOpacity?: number | undefined;
3560
+ strokeWidth?: number | undefined;
3561
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3562
+ distanceMarker?: boolean | undefined;
3563
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3564
+ color: z.ZodOptional<z.ZodString>;
3565
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
3566
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
3567
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3568
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
3569
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
3570
+ endCaps: z.ZodOptional<z.ZodBoolean>;
3571
+ }, {
3572
+ tool: z.ZodLiteral<"route">;
3573
+ }>, "strip", z.ZodTypeAny, {
3574
+ tool: "route";
3575
+ color?: string | undefined;
3576
+ strokeOpacity?: number | undefined;
3577
+ strokeWidth?: number | undefined;
3578
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3579
+ distanceMarker?: boolean | undefined;
3580
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3581
+ endCaps?: boolean | undefined;
3582
+ }, {
3583
+ tool: "route";
3584
+ color?: string | undefined;
3585
+ strokeOpacity?: number | undefined;
3586
+ strokeWidth?: number | undefined;
3587
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3588
+ distanceMarker?: boolean | undefined;
3589
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3590
+ endCaps?: boolean | undefined;
3591
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3592
+ color: z.ZodOptional<z.ZodString>;
3593
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
3594
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
3595
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3596
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
3597
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
3598
+ }, {
3599
+ tool: z.ZodLiteral<"polygon">;
3600
+ }>, "strip", z.ZodTypeAny, {
3601
+ tool: "polygon";
3602
+ color?: string | undefined;
3603
+ strokeOpacity?: number | undefined;
3604
+ strokeWidth?: number | undefined;
3605
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3606
+ fillOpacity?: number | undefined;
3607
+ areaMarker?: boolean | undefined;
3608
+ }, {
3609
+ tool: "polygon";
3610
+ color?: string | undefined;
3611
+ strokeOpacity?: number | undefined;
3612
+ strokeWidth?: number | undefined;
3613
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3614
+ fillOpacity?: number | undefined;
3615
+ areaMarker?: boolean | undefined;
3616
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3617
+ color: z.ZodOptional<z.ZodString>;
3618
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
3619
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
3620
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3621
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
3622
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
3623
+ }, {
3624
+ tool: z.ZodLiteral<"circle">;
3625
+ }>, "strip", z.ZodTypeAny, {
3626
+ tool: "circle";
3627
+ color?: string | undefined;
3628
+ strokeOpacity?: number | undefined;
3629
+ strokeWidth?: number | undefined;
3630
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3631
+ fillOpacity?: number | undefined;
3632
+ radiusMarker?: boolean | undefined;
3633
+ }, {
3634
+ tool: "circle";
3635
+ color?: string | undefined;
3636
+ strokeOpacity?: number | undefined;
3637
+ strokeWidth?: number | undefined;
3638
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3639
+ fillOpacity?: number | undefined;
3640
+ radiusMarker?: boolean | undefined;
3641
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3642
+ color: z.ZodOptional<z.ZodString>;
3643
+ opacity: z.ZodOptional<z.ZodNumber>;
3644
+ size: z.ZodOptional<z.ZodNumber>;
3645
+ }, {
3646
+ tool: z.ZodLiteral<"marker">;
3647
+ }>, "strip", z.ZodTypeAny, {
3648
+ tool: "marker";
3649
+ color?: string | undefined;
3650
+ opacity?: number | undefined;
3651
+ size?: number | undefined;
3652
+ }, {
3653
+ tool: "marker";
3654
+ color?: string | undefined;
3655
+ opacity?: number | undefined;
3656
+ size?: number | undefined;
3657
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3658
+ color: z.ZodOptional<z.ZodString>;
3659
+ opacity: z.ZodOptional<z.ZodNumber>;
3660
+ renderHoles: z.ZodOptional<z.ZodBoolean>;
3661
+ size: z.ZodOptional<z.ZodNumber>;
3662
+ }, {
3663
+ tool: z.ZodLiteral<"highlighter">;
3664
+ }>, "strip", z.ZodTypeAny, {
3665
+ tool: "highlighter";
3666
+ color?: string | undefined;
3667
+ opacity?: number | undefined;
3668
+ size?: number | undefined;
3669
+ renderHoles?: boolean | undefined;
3670
+ }, {
3671
+ tool: "highlighter";
3672
+ color?: string | undefined;
3673
+ opacity?: number | undefined;
3674
+ size?: number | undefined;
3675
+ renderHoles?: boolean | undefined;
3676
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3677
+ color: z.ZodOptional<z.ZodString>;
3678
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3679
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
3680
+ }, {
3681
+ tool: z.ZodLiteral<"text">;
3682
+ }>, "strip", z.ZodTypeAny, {
3683
+ tool: "text";
3684
+ color?: string | undefined;
3685
+ align?: "center" | "left" | "right" | undefined;
3686
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3687
+ }, {
3688
+ tool: "text";
3689
+ color?: string | undefined;
3690
+ align?: "center" | "left" | "right" | undefined;
3691
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3692
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3693
+ color: z.ZodOptional<z.ZodString>;
3694
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3695
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
3696
+ }, {
3697
+ tool: z.ZodLiteral<"note">;
3698
+ }>, "strip", z.ZodTypeAny, {
3699
+ tool: "note";
3700
+ color?: string | undefined;
3701
+ align?: "center" | "left" | "right" | undefined;
3702
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3703
+ }, {
3704
+ tool: "note";
3705
+ color?: string | undefined;
3706
+ align?: "center" | "left" | "right" | undefined;
3707
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3708
+ }>]>;
3709
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3710
+ params: {
3711
+ tool: "pin";
3712
+ symbol?: string | undefined;
3713
+ color?: string | undefined;
3714
+ frame?: "frame-circle" | "frame-square" | null | undefined;
3715
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
3716
+ } | {
3717
+ tool: "line";
3718
+ color?: string | undefined;
3719
+ strokeOpacity?: number | undefined;
3720
+ strokeWidth?: number | undefined;
3721
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3722
+ distanceMarker?: boolean | undefined;
3723
+ } | {
3724
+ tool: "route";
3725
+ color?: string | undefined;
3726
+ strokeOpacity?: number | undefined;
3727
+ strokeWidth?: number | undefined;
3728
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3729
+ distanceMarker?: boolean | undefined;
3730
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3731
+ endCaps?: boolean | undefined;
3732
+ } | {
3733
+ tool: "polygon";
3734
+ color?: string | undefined;
3735
+ strokeOpacity?: number | undefined;
3736
+ strokeWidth?: number | undefined;
3737
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3738
+ fillOpacity?: number | undefined;
3739
+ areaMarker?: boolean | undefined;
3740
+ } | {
3741
+ tool: "circle";
3742
+ color?: string | undefined;
3743
+ strokeOpacity?: number | undefined;
3744
+ strokeWidth?: number | undefined;
3745
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3746
+ fillOpacity?: number | undefined;
3747
+ radiusMarker?: boolean | undefined;
3748
+ } | {
3749
+ tool: "marker";
3750
+ color?: string | undefined;
3751
+ opacity?: number | undefined;
3752
+ size?: number | undefined;
3753
+ } | {
3754
+ tool: "highlighter";
3755
+ color?: string | undefined;
3756
+ opacity?: number | undefined;
3757
+ size?: number | undefined;
3758
+ renderHoles?: boolean | undefined;
3759
+ } | {
3760
+ tool: "text";
3761
+ color?: string | undefined;
3762
+ align?: "center" | "left" | "right" | undefined;
3763
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3764
+ } | {
3765
+ tool: "note";
3766
+ color?: string | undefined;
3767
+ align?: "center" | "left" | "right" | undefined;
3768
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3769
+ };
3770
+ type: "setToolSettings";
3771
+ }, {
3772
+ params: {
3773
+ tool: "pin";
3774
+ symbol?: string | undefined;
3775
+ color?: string | undefined;
3776
+ frame?: "frame-circle" | "frame-square" | null | undefined;
3777
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
3778
+ } | {
3779
+ tool: "line";
3780
+ color?: string | undefined;
3781
+ strokeOpacity?: number | undefined;
3782
+ strokeWidth?: number | undefined;
3783
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3784
+ distanceMarker?: boolean | undefined;
3785
+ } | {
3786
+ tool: "route";
3787
+ color?: string | undefined;
3788
+ strokeOpacity?: number | undefined;
3789
+ strokeWidth?: number | undefined;
3790
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3791
+ distanceMarker?: boolean | undefined;
3792
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3793
+ endCaps?: boolean | undefined;
3794
+ } | {
3795
+ tool: "polygon";
3796
+ color?: string | undefined;
3797
+ strokeOpacity?: number | undefined;
3798
+ strokeWidth?: number | undefined;
3799
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3800
+ fillOpacity?: number | undefined;
3801
+ areaMarker?: boolean | undefined;
3802
+ } | {
3803
+ tool: "circle";
3804
+ color?: string | undefined;
3805
+ strokeOpacity?: number | undefined;
3806
+ strokeWidth?: number | undefined;
3807
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3808
+ fillOpacity?: number | undefined;
3809
+ radiusMarker?: boolean | undefined;
3810
+ } | {
3811
+ tool: "marker";
3812
+ color?: string | undefined;
3813
+ opacity?: number | undefined;
3814
+ size?: number | undefined;
3815
+ } | {
3816
+ tool: "highlighter";
3817
+ color?: string | undefined;
3818
+ opacity?: number | undefined;
3819
+ size?: number | undefined;
3820
+ renderHoles?: boolean | undefined;
3821
+ } | {
3822
+ tool: "text";
3823
+ color?: string | undefined;
3824
+ align?: "center" | "left" | "right" | undefined;
3825
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3826
+ } | {
3827
+ tool: "note";
3828
+ color?: string | undefined;
3829
+ align?: "center" | "left" | "right" | undefined;
3830
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3831
+ };
3832
+ type: "setToolSettings";
3833
+ }>;
3834
+ declare const GetToolSettingsMessage: z.ZodObject<{
3835
+ type: z.ZodLiteral<"getToolSettings">;
3836
+ params: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note"]>;
3837
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3838
+ params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
3839
+ type: "getToolSettings";
3840
+ }, {
3841
+ params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
3842
+ type: "getToolSettings";
3843
+ }>;
3844
+ type ToolsSchema = {
3845
+ methods: {
3846
+ setTool: Method<zInfer<typeof SetToolMessage>, void>;
3847
+ getTool: Method<zInfer<typeof GetToolMessage>, ToolType | null>;
3848
+ setToolSettings: Method<zInfer<typeof SetToolSettingsMessage>, void>;
3849
+ getToolSettings: Method<zInfer<typeof GetToolSettingsMessage>, ToolSettingsMap[keyof ToolSettingsMap]>;
3850
+ };
3851
+ listeners: {
3852
+ onToolChange: ListenerNoOptions<ToolType | null>;
3853
+ onToolSettingsChange: ListenerNoOptions<ToolSettingsChangeEvent>;
3854
+ };
3855
+ };
3856
+
3857
+ declare const UiControlsMessage: z.ZodObject<{
3858
+ type: z.ZodLiteral<"updateUiControls">;
3859
+ params: z.ZodObject<{
3860
+ showLegend: z.ZodOptional<z.ZodBoolean>;
3861
+ cooperativeGestures: z.ZodOptional<z.ZodBoolean>;
3862
+ fullScreenButton: z.ZodOptional<z.ZodBoolean>;
3863
+ geolocation: z.ZodOptional<z.ZodBoolean>;
3864
+ zoomControls: z.ZodOptional<z.ZodBoolean>;
3865
+ scaleBar: z.ZodOptional<z.ZodBoolean>;
3866
+ }, "strip", z.ZodTypeAny, {
3867
+ showLegend?: boolean | undefined;
3868
+ cooperativeGestures?: boolean | undefined;
3869
+ fullScreenButton?: boolean | undefined;
3870
+ geolocation?: boolean | undefined;
3871
+ zoomControls?: boolean | undefined;
3872
+ scaleBar?: boolean | undefined;
3873
+ }, {
3874
+ showLegend?: boolean | undefined;
3875
+ cooperativeGestures?: boolean | undefined;
3876
+ fullScreenButton?: boolean | undefined;
3877
+ geolocation?: boolean | undefined;
3878
+ zoomControls?: boolean | undefined;
3879
+ scaleBar?: boolean | undefined;
3880
+ }>;
3881
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3882
+ params: {
3883
+ showLegend?: boolean | undefined;
3884
+ cooperativeGestures?: boolean | undefined;
3885
+ fullScreenButton?: boolean | undefined;
3886
+ geolocation?: boolean | undefined;
3887
+ zoomControls?: boolean | undefined;
3888
+ scaleBar?: boolean | undefined;
3889
+ };
3890
+ type: "updateUiControls";
3891
+ }, {
3892
+ params: {
3893
+ showLegend?: boolean | undefined;
3894
+ cooperativeGestures?: boolean | undefined;
3895
+ fullScreenButton?: boolean | undefined;
3896
+ geolocation?: boolean | undefined;
3897
+ zoomControls?: boolean | undefined;
3898
+ scaleBar?: boolean | undefined;
3899
+ };
3900
+ type: "updateUiControls";
3901
+ }>;
3902
+ declare const OnMapInteractionsMessage: z.ZodObject<{
3903
+ type: z.ZodLiteral<"setOnMapInteractionsUi">;
3904
+ params: z.ZodObject<{
3905
+ featureSelectPanel: z.ZodOptional<z.ZodBoolean>;
3906
+ featureHoverPanel: z.ZodOptional<z.ZodBoolean>;
3907
+ elementSelectPanel: z.ZodOptional<z.ZodBoolean>;
3908
+ linkClickOpen: z.ZodOptional<z.ZodBoolean>;
3909
+ imageLightboxOpen: z.ZodOptional<z.ZodBoolean>;
3910
+ }, "strip", z.ZodTypeAny, {
3911
+ featureSelectPanel?: boolean | undefined;
3912
+ featureHoverPanel?: boolean | undefined;
3913
+ elementSelectPanel?: boolean | undefined;
3914
+ linkClickOpen?: boolean | undefined;
3915
+ imageLightboxOpen?: boolean | undefined;
3916
+ }, {
3917
+ featureSelectPanel?: boolean | undefined;
3918
+ featureHoverPanel?: boolean | undefined;
3919
+ elementSelectPanel?: boolean | undefined;
3920
+ linkClickOpen?: boolean | undefined;
3921
+ imageLightboxOpen?: boolean | undefined;
3922
+ }>;
3923
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3924
+ params: {
3925
+ featureSelectPanel?: boolean | undefined;
3926
+ featureHoverPanel?: boolean | undefined;
3927
+ elementSelectPanel?: boolean | undefined;
3928
+ linkClickOpen?: boolean | undefined;
3929
+ imageLightboxOpen?: boolean | undefined;
3930
+ };
3931
+ type: "setOnMapInteractionsUi";
3932
+ }, {
3933
+ params: {
3934
+ featureSelectPanel?: boolean | undefined;
3935
+ featureHoverPanel?: boolean | undefined;
3936
+ elementSelectPanel?: boolean | undefined;
3937
+ linkClickOpen?: boolean | undefined;
3938
+ imageLightboxOpen?: boolean | undefined;
3939
+ };
3940
+ type: "setOnMapInteractionsUi";
3941
+ }>;
3942
+ declare const ShowLayerDataTableMessage: z.ZodObject<{
3943
+ type: z.ZodLiteral<"showLayerDataTable">;
3944
+ params: z.ZodOptional<z.ZodObject<{
3945
+ layerId: z.ZodString;
3946
+ sorting: z.ZodOptional<z.ZodObject<{
3947
+ attribute: z.ZodString;
3948
+ direction: z.ZodEnum<["asc", "desc"]>;
3949
+ }, "strip", z.ZodTypeAny, {
3950
+ attribute: string;
3951
+ direction: "asc" | "desc";
3952
+ }, {
3953
+ attribute: string;
3954
+ direction: "asc" | "desc";
3955
+ }>>;
3956
+ }, "strip", z.ZodTypeAny, {
3957
+ layerId: string;
3958
+ sorting?: {
3959
+ attribute: string;
3960
+ direction: "asc" | "desc";
3961
+ } | undefined;
3962
+ }, {
3963
+ layerId: string;
3964
+ sorting?: {
3965
+ attribute: string;
3966
+ direction: "asc" | "desc";
3967
+ } | undefined;
3968
+ }>>;
3969
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3970
+ type: "showLayerDataTable";
3971
+ params?: {
3972
+ layerId: string;
3973
+ sorting?: {
3974
+ attribute: string;
3975
+ direction: "asc" | "desc";
3976
+ } | undefined;
3977
+ } | undefined;
3978
+ }, {
3979
+ type: "showLayerDataTable";
3980
+ params?: {
3981
+ layerId: string;
3982
+ sorting?: {
3983
+ attribute: string;
3984
+ direction: "asc" | "desc";
3985
+ } | undefined;
3986
+ } | undefined;
3987
+ }>;
3988
+ declare const HideLayerDataTableMessage: z.ZodObject<{
3989
+ type: z.ZodLiteral<"hideLayerDataTable">;
3990
+ params: z.ZodUndefined;
3991
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3992
+ type: "hideLayerDataTable";
3993
+ params?: undefined;
3994
+ }, {
3995
+ type: "hideLayerDataTable";
3996
+ params?: undefined;
3997
+ }>;
3998
+ type UiSchema = {
3999
+ methods: {
4000
+ updateUiControls: Method<zInfer<typeof UiControlsMessage>, void>;
4001
+ setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>, void>;
4002
+ showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>, void>;
4003
+ hideLayerDataTable: Method<zInfer<typeof HideLayerDataTableMessage>, void>;
4004
+ };
4005
+ listeners: {};
4006
+ };
4007
+
4008
+ declare const GetViewportMessage: z.ZodObject<{
4009
+ type: z.ZodLiteral<"getViewport">;
4010
+ params: z.ZodUndefined;
4011
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4012
+ type: "getViewport";
4013
+ params?: undefined;
4014
+ }, {
4015
+ type: "getViewport";
4016
+ params?: undefined;
4017
+ }>;
4018
+ declare const GotoViewportMessage: z.ZodObject<{
4019
+ type: z.ZodLiteral<"setViewport">;
4020
+ params: z.ZodObject<{
4021
+ center: z.ZodOptional<z.ZodObject<{
4022
+ latitude: z.ZodNumber;
4023
+ longitude: z.ZodNumber;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ latitude: number;
4026
+ longitude: number;
4027
+ }, {
4028
+ latitude: number;
4029
+ longitude: number;
4030
+ }>>;
4031
+ zoom: z.ZodOptional<z.ZodNumber>;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ center?: {
4034
+ latitude: number;
4035
+ longitude: number;
4036
+ } | undefined;
4037
+ zoom?: number | undefined;
4038
+ }, {
4039
+ center?: {
4040
+ latitude: number;
4041
+ longitude: number;
4042
+ } | undefined;
4043
+ zoom?: number | undefined;
4044
+ }>;
4045
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4046
+ params: {
4047
+ center?: {
4048
+ latitude: number;
4049
+ longitude: number;
4050
+ } | undefined;
4051
+ zoom?: number | undefined;
4052
+ };
4053
+ type: "setViewport";
4054
+ }, {
4055
+ params: {
4056
+ center?: {
4057
+ latitude: number;
4058
+ longitude: number;
4059
+ } | undefined;
4060
+ zoom?: number | undefined;
4061
+ };
4062
+ type: "setViewport";
4063
+ }>;
4064
+ declare const GetViewportConstraintsMessage: z.ZodObject<{
4065
+ type: z.ZodLiteral<"getViewportConstraints">;
4066
+ params: z.ZodUndefined;
4067
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4068
+ type: "getViewportConstraints";
4069
+ params?: undefined;
4070
+ }, {
4071
+ type: "getViewportConstraints";
4072
+ params?: undefined;
4073
+ }>;
4074
+ declare const SetViewportConstraintsMessage: z.ZodObject<{
4075
+ type: z.ZodLiteral<"setViewportConstraints">;
4076
+ params: z.ZodNullable<z.ZodObject<{
4077
+ minZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4078
+ maxZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4079
+ bounds: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
4080
+ }, "strip", z.ZodTypeAny, {
4081
+ minZoom?: number | null | undefined;
4082
+ maxZoom?: number | null | undefined;
4083
+ bounds?: [number, number, number, number] | null | undefined;
4084
+ }, {
4085
+ minZoom?: number | null | undefined;
4086
+ maxZoom?: number | null | undefined;
4087
+ bounds?: [number, number, number, number] | null | undefined;
4088
+ }>>;
4089
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4090
+ params: {
4091
+ minZoom?: number | null | undefined;
4092
+ maxZoom?: number | null | undefined;
4093
+ bounds?: [number, number, number, number] | null | undefined;
4094
+ } | null;
4095
+ type: "setViewportConstraints";
4096
+ }, {
4097
+ params: {
4098
+ minZoom?: number | null | undefined;
4099
+ maxZoom?: number | null | undefined;
4100
+ bounds?: [number, number, number, number] | null | undefined;
4101
+ } | null;
4102
+ type: "setViewportConstraints";
4103
+ }>;
4104
+ declare const ViewportFitBoundsMessage: z.ZodObject<{
4105
+ type: z.ZodLiteral<"fitViewportToBounds">;
4106
+ params: z.ZodObject<{
4107
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
4108
+ }, "strip", z.ZodTypeAny, {
4109
+ bounds: [number, number, number, number];
4110
+ }, {
4111
+ bounds: [number, number, number, number];
4112
+ }>;
4113
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4114
+ params: {
4115
+ bounds: [number, number, number, number];
4116
+ };
4117
+ type: "fitViewportToBounds";
4118
+ }, {
4119
+ params: {
4120
+ bounds: [number, number, number, number];
4121
+ };
4122
+ type: "fitViewportToBounds";
4123
+ }>;
4124
+ type ViewportSchema = {
4125
+ methods: {
4126
+ getViewport: Method<zInfer<typeof GetViewportMessage>, ViewportState>;
4127
+ setViewport: Method<zInfer<typeof GotoViewportMessage>, void>;
4128
+ getViewportConstraints: Method<zInfer<typeof GetViewportConstraintsMessage>, ViewportConstraints | null>;
4129
+ setViewportConstraints: Method<zInfer<typeof SetViewportConstraintsMessage>, void>;
4130
+ fitViewportToBounds: Method<zInfer<typeof ViewportFitBoundsMessage>, void>;
4131
+ };
4132
+ listeners: {
4133
+ onViewportMove: ListenerNoOptions<ViewportState>;
4134
+ onViewportMoveEnd: ListenerNoOptions<ViewportState>;
4135
+ onMapIdle: ListenerNoOptions<void>;
4136
+ };
4137
+ };
4138
+
4139
+ type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema | ToolsSchema | InteractionsSchema | MiscSchema;
4140
+
4141
+ type FeltHandlers = {
4142
+ methods: FeltMethodHandlers;
4143
+ listeners: FeltListenerHandlers;
4144
+ };
4145
+ type MethodSpec = UnionToIntersection<AllModules["methods"]>;
4146
+ type ListenerSpec = UnionToIntersection<AllModules["listeners"]>;
4147
+ type ExtractMethodParams<T extends Record<string, AnyFunction | {
4148
+ request: {
4149
+ params?: any;
4150
+ };
4151
+ response: any;
4152
+ }>> = {
4153
+ [K in keyof T]: T[K] extends {
4154
+ request: {
4155
+ params?: any;
4156
+ };
4157
+ response: any;
4158
+ } ? {
4159
+ request: T[K]["request"]["params"];
4160
+ response: T[K]["response"];
4161
+ } : T[K];
4162
+ };
4163
+ type ExtractListenerParams<T extends Record<string, {
4164
+ options: any;
4165
+ eventParams: any;
4166
+ } | {
4167
+ eventParams: any;
4168
+ }>> = {
4169
+ [K in keyof T]: T[K] extends {
4170
+ options: any;
4171
+ } ? {
4172
+ options: T[K]["options"];
4173
+ eventParams: T[K]["eventParams"];
4174
+ } : {
4175
+ eventParams: T[K]["eventParams"];
4176
+ };
4177
+ };
4178
+ type AnyFunction = (...args: any[]) => any;
4179
+ type MethodHandlers<T> = {
4180
+ [K in keyof T]: T[K] extends AnyFunction ? T[K] : (request: T[K] extends {
4181
+ request: any;
4182
+ } ? T[K]["request"] : never) => PromiseOrNot<T[K] extends {
4183
+ response: any;
4184
+ } ? T[K]["response"] : never>;
4185
+ };
4186
+ type FeltMethodHandlers = MethodHandlers<ExtractMethodParams<MethodSpec>>;
4187
+ type ListenerHandlers<T> = {
4188
+ [K in keyof T]: (args: T[K] extends {
4189
+ options: any;
4190
+ } ? {
4191
+ handler: (event: T[K] extends {
4192
+ eventParams: any;
4193
+ } ? T[K]["eventParams"] : never) => void;
4194
+ options: T[K]["options"];
4195
+ } : {
4196
+ handler: (event: T[K] extends {
4197
+ eventParams: any;
4198
+ } ? T[K]["eventParams"] : never) => void;
4199
+ }) => VoidFunction;
4200
+ };
4201
+ type FeltListenerHandlers = ListenerHandlers<ExtractListenerParams<ListenerSpec>>;
4202
+
4203
+ /**
4204
+ * This function creates a message handler for the Felt SDK. Its job is to start listening
4205
+ * for messages from the Felt SDKl, validate and parses the messages before calling the
4206
+ * appropriate handler.
4207
+ *
4208
+ * @param feltWindow - The window to listen on, which is typically just `window`
4209
+ * @param handlers - The handlers to call for each type of message.
4210
+ * @param options - Optional callbacks for handling unknown and invalid messages.
4211
+ * @returns A function to stop the message handler.
4212
+ */
4213
+ declare function createMessageHandler(feltWindow: Window, handlers: FeltHandlers, options?: {
4214
+ /**
4215
+ * Called when a message is received of an unknown type.
4216
+ *
4217
+ * @param message - The message that was received.
4218
+ */
4219
+ onUnknownMessage?: (message: unknown) => void;
4220
+ /**
4221
+ * Called when a message is received that matches a known
4222
+ * type, but fails to parse with the full schema.
4223
+ *
4224
+ * @param message
4225
+ */
4226
+ onInvalidMessage?: (message: unknown, error: ZodError) => void;
4227
+ }): VoidFunction;
4228
+
4229
+ export { createMessageHandler };