@feltmaps/js-sdk 1.5.0-next.2 → 1.5.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.
@@ -0,0 +1,2418 @@
1
+ import { ZodRawShape, objectOutputType, ZodTypeAny, z } from 'zod';
2
+
3
+ /**
4
+ * A selection of generic utility types
5
+ */
6
+
7
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
8
+ type PromiseOrNot<T> = T | Promise<T>;
9
+ /**
10
+ * A better type inference for zod schemas that retains the TSDoc comments
11
+ * from the members in the compiled output.
12
+ */
13
+ type zInfer<T extends {
14
+ shape: ZodRawShape;
15
+ }> = objectOutputType<T["shape"], ZodTypeAny, "strip">;
16
+
17
+ declare const PlaceCreateSchema: z.ZodObject<Omit<{
18
+ symbol: z.ZodOptional<z.ZodString>;
19
+ type: z.ZodLiteral<"Place">;
20
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
21
+ id: z.ZodOptional<z.ZodString>;
22
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ color: z.ZodOptional<z.ZodString>;
24
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
25
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
26
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
29
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
30
+ }, "id">, "strip", z.ZodTypeAny, {
31
+ type: "Place";
32
+ coordinates: [number, number];
33
+ symbol?: string | undefined;
34
+ groupId?: string | null | undefined;
35
+ color?: string | undefined;
36
+ name?: string | null | undefined;
37
+ description?: string | null | undefined;
38
+ attributes?: Record<string, unknown> | undefined;
39
+ imageUrl?: string | null | undefined;
40
+ frame?: "frame-circle" | "frame-square" | null | undefined;
41
+ hideLabel?: boolean | undefined;
42
+ }, {
43
+ type: "Place";
44
+ coordinates: [number, number];
45
+ symbol?: string | undefined;
46
+ groupId?: string | null | undefined;
47
+ color?: string | undefined;
48
+ name?: string | null | undefined;
49
+ description?: string | null | undefined;
50
+ attributes?: Record<string, unknown> | undefined;
51
+ imageUrl?: string | null | undefined;
52
+ frame?: "frame-circle" | "frame-square" | null | undefined;
53
+ hideLabel?: boolean | undefined;
54
+ }>;
55
+ declare const PathCreateSchema: z.ZodObject<Omit<{
56
+ type: z.ZodLiteral<"Path">;
57
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
58
+ id: z.ZodOptional<z.ZodString>;
59
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ color: z.ZodOptional<z.ZodString>;
61
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
62
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
63
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
66
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
67
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
68
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
69
+ endCaps: z.ZodOptional<z.ZodBoolean>;
70
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
71
+ }, "id">, "strip", z.ZodTypeAny, {
72
+ type: "Path";
73
+ coordinates: [number, number][][];
74
+ groupId?: string | null | undefined;
75
+ color?: string | undefined;
76
+ name?: string | null | undefined;
77
+ description?: string | null | undefined;
78
+ attributes?: Record<string, unknown> | undefined;
79
+ imageUrl?: string | null | undefined;
80
+ strokeOpacity?: number | undefined;
81
+ strokeWidth?: number | undefined;
82
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
83
+ distanceMarker?: boolean | undefined;
84
+ endCaps?: boolean | undefined;
85
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
86
+ }, {
87
+ type: "Path";
88
+ coordinates: [number, number][][];
89
+ groupId?: string | null | undefined;
90
+ color?: string | undefined;
91
+ name?: string | null | undefined;
92
+ description?: string | null | undefined;
93
+ attributes?: Record<string, unknown> | undefined;
94
+ imageUrl?: string | null | undefined;
95
+ strokeOpacity?: number | undefined;
96
+ strokeWidth?: number | undefined;
97
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
98
+ distanceMarker?: boolean | undefined;
99
+ endCaps?: boolean | undefined;
100
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
101
+ }>;
102
+ declare const PolygonCreateSchema: z.ZodObject<Omit<{
103
+ type: z.ZodLiteral<"Polygon">;
104
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
105
+ id: z.ZodOptional<z.ZodString>;
106
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ color: z.ZodOptional<z.ZodString>;
108
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
109
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
110
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
113
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
114
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
115
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
116
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
117
+ }, "id">, "strip", z.ZodTypeAny, {
118
+ type: "Polygon";
119
+ coordinates: [number, number][][];
120
+ groupId?: string | null | undefined;
121
+ color?: string | undefined;
122
+ name?: string | null | undefined;
123
+ description?: string | null | undefined;
124
+ attributes?: Record<string, unknown> | undefined;
125
+ imageUrl?: string | null | undefined;
126
+ strokeOpacity?: number | undefined;
127
+ strokeWidth?: number | undefined;
128
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
129
+ fillOpacity?: number | undefined;
130
+ areaMarker?: boolean | undefined;
131
+ }, {
132
+ type: "Polygon";
133
+ coordinates: [number, number][][];
134
+ groupId?: string | null | undefined;
135
+ color?: string | undefined;
136
+ name?: string | null | undefined;
137
+ description?: string | null | undefined;
138
+ attributes?: Record<string, unknown> | undefined;
139
+ imageUrl?: string | null | undefined;
140
+ strokeOpacity?: number | undefined;
141
+ strokeWidth?: number | undefined;
142
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
143
+ fillOpacity?: number | undefined;
144
+ areaMarker?: boolean | undefined;
145
+ }>;
146
+ declare const CircleCreateSchema: z.ZodObject<Omit<{
147
+ type: z.ZodLiteral<"Circle">;
148
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
149
+ id: z.ZodOptional<z.ZodString>;
150
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ color: z.ZodOptional<z.ZodString>;
152
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
153
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
154
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
155
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
157
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
158
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
159
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
160
+ radius: z.ZodNumber;
161
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
162
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
163
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
164
+ }, "id">, "strip", z.ZodTypeAny, {
165
+ type: "Circle";
166
+ coordinates: [number, number];
167
+ radius: number;
168
+ groupId?: string | null | undefined;
169
+ color?: string | undefined;
170
+ name?: string | null | undefined;
171
+ description?: string | null | undefined;
172
+ attributes?: Record<string, unknown> | undefined;
173
+ imageUrl?: string | null | undefined;
174
+ strokeOpacity?: number | undefined;
175
+ strokeWidth?: number | undefined;
176
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
177
+ fillOpacity?: number | undefined;
178
+ radiusDisplayAngle?: number | undefined;
179
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
180
+ radiusMarker?: boolean | undefined;
181
+ }, {
182
+ type: "Circle";
183
+ coordinates: [number, number];
184
+ radius: number;
185
+ groupId?: string | null | undefined;
186
+ color?: string | undefined;
187
+ name?: string | null | undefined;
188
+ description?: string | null | undefined;
189
+ attributes?: Record<string, unknown> | undefined;
190
+ imageUrl?: string | null | undefined;
191
+ strokeOpacity?: number | undefined;
192
+ strokeWidth?: number | undefined;
193
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
194
+ fillOpacity?: number | undefined;
195
+ radiusDisplayAngle?: number | undefined;
196
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
197
+ radiusMarker?: boolean | undefined;
198
+ }>;
199
+ declare const MarkerCreateSchema: z.ZodObject<Omit<{
200
+ type: z.ZodLiteral<"Marker">;
201
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
202
+ id: z.ZodOptional<z.ZodString>;
203
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ color: z.ZodOptional<z.ZodString>;
205
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
206
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
207
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
208
+ opacity: z.ZodOptional<z.ZodNumber>;
209
+ size: z.ZodOptional<z.ZodNumber>;
210
+ }, "id">, "strip", z.ZodTypeAny, {
211
+ type: "Marker";
212
+ coordinates: [number, number][][];
213
+ groupId?: string | null | undefined;
214
+ color?: string | undefined;
215
+ name?: string | null | undefined;
216
+ description?: string | null | undefined;
217
+ attributes?: Record<string, unknown> | undefined;
218
+ opacity?: number | undefined;
219
+ size?: number | undefined;
220
+ }, {
221
+ type: "Marker";
222
+ coordinates: [number, number][][];
223
+ groupId?: string | null | undefined;
224
+ color?: string | undefined;
225
+ name?: string | null | undefined;
226
+ description?: string | null | undefined;
227
+ attributes?: Record<string, unknown> | undefined;
228
+ opacity?: number | undefined;
229
+ size?: number | undefined;
230
+ }>;
231
+ declare const HighlighterCreateSchema: z.ZodObject<Omit<{
232
+ type: z.ZodLiteral<"Highlighter">;
233
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
234
+ id: z.ZodOptional<z.ZodString>;
235
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ color: z.ZodOptional<z.ZodString>;
237
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
238
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
239
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
+ opacity: z.ZodOptional<z.ZodNumber>;
241
+ }, "id">, "strip", z.ZodTypeAny, {
242
+ type: "Highlighter";
243
+ coordinates: [number, number][][];
244
+ groupId?: string | null | undefined;
245
+ color?: string | undefined;
246
+ name?: string | null | undefined;
247
+ description?: string | null | undefined;
248
+ attributes?: Record<string, unknown> | undefined;
249
+ opacity?: number | undefined;
250
+ }, {
251
+ type: "Highlighter";
252
+ coordinates: [number, number][][];
253
+ groupId?: string | null | undefined;
254
+ color?: string | undefined;
255
+ name?: string | null | undefined;
256
+ description?: string | null | undefined;
257
+ attributes?: Record<string, unknown> | undefined;
258
+ opacity?: number | undefined;
259
+ }>;
260
+ declare const TextCreateSchema: z.ZodObject<Omit<Omit<{
261
+ type: z.ZodLiteral<"Text">;
262
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
263
+ id: z.ZodOptional<z.ZodString>;
264
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
+ color: z.ZodOptional<z.ZodString>;
266
+ name: z.ZodOptional<z.ZodString>;
267
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
268
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
269
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
270
+ rotation: z.ZodOptional<z.ZodNumber>;
271
+ scale: z.ZodOptional<z.ZodNumber>;
272
+ text: z.ZodString;
273
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
274
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
275
+ }, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
276
+ type: "Text";
277
+ text: string;
278
+ groupId?: string | null | undefined;
279
+ color?: string | undefined;
280
+ description?: string | null | undefined;
281
+ attributes?: Record<string, unknown> | undefined;
282
+ position?: [number, number] | undefined;
283
+ rotation?: number | undefined;
284
+ scale?: number | undefined;
285
+ align?: "left" | "center" | "right" | undefined;
286
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
287
+ }, {
288
+ type: "Text";
289
+ text: string;
290
+ groupId?: string | null | undefined;
291
+ color?: string | undefined;
292
+ description?: string | null | undefined;
293
+ attributes?: Record<string, unknown> | undefined;
294
+ position?: [number, number] | undefined;
295
+ rotation?: number | undefined;
296
+ scale?: number | undefined;
297
+ align?: "left" | "center" | "right" | undefined;
298
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
299
+ }>;
300
+ declare const NoteCreateSchema: z.ZodObject<Omit<Omit<{
301
+ type: z.ZodLiteral<"Note">;
302
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
303
+ id: z.ZodOptional<z.ZodString>;
304
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ color: z.ZodOptional<z.ZodString>;
306
+ name: z.ZodOptional<z.ZodString>;
307
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
308
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
309
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
310
+ rotation: z.ZodOptional<z.ZodNumber>;
311
+ scale: z.ZodOptional<z.ZodNumber>;
312
+ text: z.ZodString;
313
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
314
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
315
+ widthMultiplier: z.ZodOptional<z.ZodNumber>;
316
+ }, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
317
+ type: "Note";
318
+ text: string;
319
+ groupId?: string | null | undefined;
320
+ color?: string | undefined;
321
+ description?: string | null | undefined;
322
+ attributes?: Record<string, unknown> | undefined;
323
+ position?: [number, number] | undefined;
324
+ rotation?: number | undefined;
325
+ scale?: number | undefined;
326
+ align?: "left" | "center" | "right" | undefined;
327
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
328
+ widthMultiplier?: number | undefined;
329
+ }, {
330
+ type: "Note";
331
+ text: string;
332
+ groupId?: string | null | undefined;
333
+ color?: string | undefined;
334
+ description?: string | null | undefined;
335
+ attributes?: Record<string, unknown> | undefined;
336
+ position?: [number, number] | undefined;
337
+ rotation?: number | undefined;
338
+ scale?: number | undefined;
339
+ align?: "left" | "center" | "right" | undefined;
340
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
341
+ widthMultiplier?: number | undefined;
342
+ }>;
343
+ declare const ImageCreateSchema: z.ZodObject<Omit<{
344
+ type: z.ZodLiteral<"Image">;
345
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
346
+ id: z.ZodOptional<z.ZodString>;
347
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ color: z.ZodOptional<z.ZodString>;
349
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
350
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
351
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
352
+ imageUrl: z.ZodString;
353
+ opacity: z.ZodOptional<z.ZodNumber>;
354
+ }, "id">, "strip", z.ZodTypeAny, {
355
+ type: "Image";
356
+ coordinates: [number, number][][];
357
+ imageUrl: string;
358
+ groupId?: string | null | undefined;
359
+ color?: string | undefined;
360
+ name?: string | null | undefined;
361
+ description?: string | null | undefined;
362
+ attributes?: Record<string, unknown> | undefined;
363
+ opacity?: number | undefined;
364
+ }, {
365
+ type: "Image";
366
+ coordinates: [number, number][][];
367
+ imageUrl: string;
368
+ groupId?: string | null | undefined;
369
+ color?: string | undefined;
370
+ name?: string | null | undefined;
371
+ description?: string | null | undefined;
372
+ attributes?: Record<string, unknown> | undefined;
373
+ opacity?: number | undefined;
374
+ }>;
375
+ declare const PlaceReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<{
376
+ id: z.ZodString;
377
+ groupId: z.ZodNullable<z.ZodString>;
378
+ color: z.ZodString;
379
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
380
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
381
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
382
+ }, {
383
+ imageUrl: z.ZodNullable<z.ZodString>;
384
+ }>, {
385
+ type: z.ZodLiteral<"Place">;
386
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
387
+ symbol: z.ZodString;
388
+ frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
389
+ hideLabel: z.ZodBoolean;
390
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
391
+ symbol: string;
392
+ type: "Place";
393
+ id: string;
394
+ groupId: string | null;
395
+ color: string;
396
+ name: string | null;
397
+ description: string | null;
398
+ attributes: Record<string, unknown>;
399
+ imageUrl: string | null;
400
+ frame: "frame-circle" | "frame-square" | null;
401
+ hideLabel: boolean;
402
+ }, {
403
+ symbol: string;
404
+ type: "Place";
405
+ id: string;
406
+ groupId: string | null;
407
+ color: string;
408
+ name: string | null;
409
+ description: string | null;
410
+ attributes: Record<string, unknown>;
411
+ imageUrl: string | null;
412
+ frame: "frame-circle" | "frame-square" | null;
413
+ hideLabel: boolean;
414
+ }>;
415
+ declare const PathReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
416
+ id: z.ZodString;
417
+ groupId: z.ZodNullable<z.ZodString>;
418
+ color: z.ZodString;
419
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
420
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
421
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
422
+ }, {
423
+ imageUrl: z.ZodNullable<z.ZodString>;
424
+ }>, {
425
+ strokeOpacity: z.ZodNumber;
426
+ strokeWidth: z.ZodNumber;
427
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
428
+ }>, {
429
+ type: z.ZodLiteral<"Path">;
430
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
431
+ distanceMarker: z.ZodBoolean;
432
+ endCaps: z.ZodBoolean;
433
+ routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
434
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
435
+ type: "Path";
436
+ id: string;
437
+ groupId: string | null;
438
+ color: string;
439
+ name: string | null;
440
+ description: string | null;
441
+ attributes: Record<string, unknown>;
442
+ imageUrl: string | null;
443
+ strokeOpacity: number;
444
+ strokeWidth: number;
445
+ strokeStyle: "solid" | "dashed" | "dotted";
446
+ distanceMarker: boolean;
447
+ endCaps: boolean;
448
+ routingMode: "driving" | "cycling" | "walking" | "flying" | null;
449
+ }, {
450
+ type: "Path";
451
+ id: string;
452
+ groupId: string | null;
453
+ color: string;
454
+ name: string | null;
455
+ description: string | null;
456
+ attributes: Record<string, unknown>;
457
+ imageUrl: string | null;
458
+ strokeOpacity: number;
459
+ strokeWidth: number;
460
+ strokeStyle: "solid" | "dashed" | "dotted";
461
+ distanceMarker: boolean;
462
+ endCaps: boolean;
463
+ routingMode: "driving" | "cycling" | "walking" | "flying" | null;
464
+ }>;
465
+ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
466
+ id: z.ZodString;
467
+ groupId: z.ZodNullable<z.ZodString>;
468
+ color: z.ZodString;
469
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
470
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
471
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
472
+ }, {
473
+ imageUrl: z.ZodNullable<z.ZodString>;
474
+ }>, {
475
+ strokeOpacity: z.ZodNumber;
476
+ strokeWidth: z.ZodNumber;
477
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
478
+ }>, {
479
+ type: z.ZodLiteral<"Polygon">;
480
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
481
+ fillOpacity: z.ZodNumber;
482
+ areaMarker: z.ZodBoolean;
483
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
484
+ type: "Polygon";
485
+ id: string;
486
+ groupId: string | null;
487
+ color: string;
488
+ name: string | null;
489
+ description: string | null;
490
+ attributes: Record<string, unknown>;
491
+ imageUrl: string | null;
492
+ strokeOpacity: number;
493
+ strokeWidth: number;
494
+ strokeStyle: "solid" | "dashed" | "dotted";
495
+ fillOpacity: number;
496
+ areaMarker: boolean;
497
+ }, {
498
+ type: "Polygon";
499
+ id: string;
500
+ groupId: string | null;
501
+ color: string;
502
+ name: string | null;
503
+ description: string | null;
504
+ attributes: Record<string, unknown>;
505
+ imageUrl: string | null;
506
+ strokeOpacity: number;
507
+ strokeWidth: number;
508
+ strokeStyle: "solid" | "dashed" | "dotted";
509
+ fillOpacity: number;
510
+ areaMarker: boolean;
511
+ }>;
512
+ declare const CircleReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
513
+ id: z.ZodString;
514
+ groupId: z.ZodNullable<z.ZodString>;
515
+ color: z.ZodString;
516
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
517
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
518
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
519
+ }, {
520
+ imageUrl: z.ZodNullable<z.ZodString>;
521
+ }>, {
522
+ strokeOpacity: z.ZodNumber;
523
+ strokeWidth: z.ZodNumber;
524
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
525
+ }>, {
526
+ type: z.ZodLiteral<"Circle">;
527
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
528
+ radius: z.ZodNumber;
529
+ radiusDisplayAngle: z.ZodNumber;
530
+ radiusDisplayUnit: z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>;
531
+ fillOpacity: z.ZodNumber;
532
+ radiusMarker: z.ZodBoolean;
533
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
534
+ type: "Circle";
535
+ id: string;
536
+ groupId: string | null;
537
+ color: string;
538
+ name: string | null;
539
+ description: string | null;
540
+ attributes: Record<string, unknown>;
541
+ imageUrl: string | null;
542
+ strokeOpacity: number;
543
+ strokeWidth: number;
544
+ strokeStyle: "solid" | "dashed" | "dotted";
545
+ fillOpacity: number;
546
+ radius: number;
547
+ radiusDisplayAngle: number;
548
+ radiusDisplayUnit: "meter" | "kilometer" | "foot" | "mile" | null;
549
+ radiusMarker: boolean;
550
+ }, {
551
+ type: "Circle";
552
+ id: string;
553
+ groupId: string | null;
554
+ color: string;
555
+ name: string | null;
556
+ description: string | null;
557
+ attributes: Record<string, unknown>;
558
+ imageUrl: string | null;
559
+ strokeOpacity: number;
560
+ strokeWidth: number;
561
+ strokeStyle: "solid" | "dashed" | "dotted";
562
+ fillOpacity: number;
563
+ radius: number;
564
+ radiusDisplayAngle: number;
565
+ radiusDisplayUnit: "meter" | "kilometer" | "foot" | "mile" | null;
566
+ radiusMarker: boolean;
567
+ }>;
568
+ declare const MarkerReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
569
+ id: z.ZodString;
570
+ groupId: z.ZodNullable<z.ZodString>;
571
+ color: z.ZodString;
572
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
573
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
574
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
575
+ }, {
576
+ type: z.ZodLiteral<"Marker">;
577
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
578
+ opacity: z.ZodNumber;
579
+ size: z.ZodNumber;
580
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
581
+ type: "Marker";
582
+ id: string;
583
+ groupId: string | null;
584
+ color: string;
585
+ name: string | null;
586
+ description: string | null;
587
+ attributes: Record<string, unknown>;
588
+ opacity: number;
589
+ size: number;
590
+ }, {
591
+ type: "Marker";
592
+ id: string;
593
+ groupId: string | null;
594
+ color: string;
595
+ name: string | null;
596
+ description: string | null;
597
+ attributes: Record<string, unknown>;
598
+ opacity: number;
599
+ size: number;
600
+ }>;
601
+ declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
602
+ id: z.ZodString;
603
+ groupId: z.ZodNullable<z.ZodString>;
604
+ color: z.ZodString;
605
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
606
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
607
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
608
+ }, {
609
+ type: z.ZodLiteral<"Highlighter">;
610
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
611
+ opacity: z.ZodNumber;
612
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
613
+ type: "Highlighter";
614
+ id: string;
615
+ groupId: string | null;
616
+ color: string;
617
+ name: string | null;
618
+ description: string | null;
619
+ attributes: Record<string, unknown>;
620
+ opacity: number;
621
+ }, {
622
+ type: "Highlighter";
623
+ id: string;
624
+ groupId: string | null;
625
+ color: string;
626
+ name: string | null;
627
+ description: string | null;
628
+ attributes: Record<string, unknown>;
629
+ opacity: number;
630
+ }>;
631
+ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
632
+ id: z.ZodString;
633
+ groupId: z.ZodNullable<z.ZodString>;
634
+ color: z.ZodString;
635
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
636
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
637
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
638
+ }, {
639
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
640
+ rotation: z.ZodNumber;
641
+ scale: z.ZodNumber;
642
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
643
+ }>, {
644
+ text: z.ZodString;
645
+ align: z.ZodEnum<["left", "center", "right"]>;
646
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
647
+ name: z.ZodString;
648
+ }>, {
649
+ type: z.ZodLiteral<"Text">;
650
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
651
+ type: "Text";
652
+ id: string;
653
+ groupId: string | null;
654
+ color: string;
655
+ name: string;
656
+ description: string | null;
657
+ attributes: Record<string, unknown>;
658
+ position: [number, number];
659
+ rotation: number;
660
+ scale: number;
661
+ text: string;
662
+ align: "left" | "center" | "right";
663
+ style: "italic" | "light" | "regular" | "caps";
664
+ }, {
665
+ type: "Text";
666
+ id: string;
667
+ groupId: string | null;
668
+ color: string;
669
+ name: string;
670
+ description: string | null;
671
+ attributes: Record<string, unknown>;
672
+ position: [number, number];
673
+ rotation: number;
674
+ scale: number;
675
+ text: string;
676
+ align: "left" | "center" | "right";
677
+ style: "italic" | "light" | "regular" | "caps";
678
+ }>;
679
+ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
680
+ id: z.ZodString;
681
+ groupId: z.ZodNullable<z.ZodString>;
682
+ color: z.ZodString;
683
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
684
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
685
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
686
+ }, {
687
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
688
+ rotation: z.ZodNumber;
689
+ scale: z.ZodNumber;
690
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
691
+ }>, {
692
+ text: z.ZodString;
693
+ align: z.ZodEnum<["left", "center", "right"]>;
694
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
695
+ name: z.ZodString;
696
+ }>, {
697
+ type: z.ZodLiteral<"Note">;
698
+ widthMultiplier: z.ZodNumber;
699
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
700
+ type: "Note";
701
+ id: string;
702
+ groupId: string | null;
703
+ color: string;
704
+ name: string;
705
+ description: string | null;
706
+ attributes: Record<string, unknown>;
707
+ position: [number, number];
708
+ rotation: number;
709
+ scale: number;
710
+ text: string;
711
+ align: "left" | "center" | "right";
712
+ style: "italic" | "light" | "regular" | "caps";
713
+ widthMultiplier: number;
714
+ }, {
715
+ type: "Note";
716
+ id: string;
717
+ groupId: string | null;
718
+ color: string;
719
+ name: string;
720
+ description: string | null;
721
+ attributes: Record<string, unknown>;
722
+ position: [number, number];
723
+ rotation: number;
724
+ scale: number;
725
+ text: string;
726
+ align: "left" | "center" | "right";
727
+ style: "italic" | "light" | "regular" | "caps";
728
+ widthMultiplier: number;
729
+ }>;
730
+ declare const ImageReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
731
+ id: z.ZodString;
732
+ groupId: z.ZodNullable<z.ZodString>;
733
+ color: z.ZodString;
734
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
735
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
736
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
737
+ }, {
738
+ type: z.ZodLiteral<"Image">;
739
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
740
+ imageUrl: z.ZodString;
741
+ opacity: z.ZodNumber;
742
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
743
+ type: "Image";
744
+ id: string;
745
+ groupId: string | null;
746
+ color: string;
747
+ name: string | null;
748
+ description: string | null;
749
+ attributes: Record<string, unknown>;
750
+ imageUrl: string;
751
+ opacity: number;
752
+ }, {
753
+ type: "Image";
754
+ id: string;
755
+ groupId: string | null;
756
+ color: string;
757
+ name: string | null;
758
+ description: string | null;
759
+ attributes: Record<string, unknown>;
760
+ imageUrl: string;
761
+ opacity: number;
762
+ }>;
763
+ declare const LinkReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
764
+ id: z.ZodString;
765
+ groupId: z.ZodNullable<z.ZodString>;
766
+ color: z.ZodString;
767
+ name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
768
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
769
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
770
+ }, {
771
+ type: z.ZodLiteral<"Link">;
772
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
773
+ url: z.ZodString;
774
+ }>, "coordinates">, "strip", z.ZodTypeAny, {
775
+ type: "Link";
776
+ id: string;
777
+ groupId: string | null;
778
+ color: string;
779
+ name: string | null;
780
+ description: string | null;
781
+ attributes: Record<string, unknown>;
782
+ url: string;
783
+ }, {
784
+ type: "Link";
785
+ id: string;
786
+ groupId: string | null;
787
+ color: string;
788
+ name: string | null;
789
+ description: string | null;
790
+ attributes: Record<string, unknown>;
791
+ url: string;
792
+ }>;
793
+ declare const PlaceUpdateSchema: z.ZodObject<{
794
+ symbol: z.ZodOptional<z.ZodString>;
795
+ type: z.ZodLiteral<"Place">;
796
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
797
+ id: z.ZodString;
798
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
+ color: z.ZodOptional<z.ZodString>;
800
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
801
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
802
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
803
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
805
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ type: "Place";
808
+ id: string;
809
+ symbol?: string | undefined;
810
+ coordinates?: [number, number] | undefined;
811
+ groupId?: string | null | undefined;
812
+ color?: string | undefined;
813
+ name?: string | null | undefined;
814
+ description?: string | null | undefined;
815
+ attributes?: Record<string, unknown> | undefined;
816
+ imageUrl?: string | null | undefined;
817
+ frame?: "frame-circle" | "frame-square" | null | undefined;
818
+ hideLabel?: boolean | undefined;
819
+ }, {
820
+ type: "Place";
821
+ id: string;
822
+ symbol?: string | undefined;
823
+ coordinates?: [number, number] | 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
+ imageUrl?: string | null | undefined;
830
+ frame?: "frame-circle" | "frame-square" | null | undefined;
831
+ hideLabel?: boolean | undefined;
832
+ }>;
833
+ declare const PathUpdateSchema: z.ZodObject<{
834
+ type: z.ZodLiteral<"Path">;
835
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
836
+ id: z.ZodString;
837
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
+ color: z.ZodOptional<z.ZodString>;
839
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
840
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
841
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
842
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
844
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
845
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
846
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
847
+ endCaps: z.ZodOptional<z.ZodBoolean>;
848
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ type: "Path";
851
+ id: string;
852
+ coordinates?: [number, number][][] | undefined;
853
+ groupId?: string | null | undefined;
854
+ color?: string | undefined;
855
+ name?: string | null | undefined;
856
+ description?: string | null | undefined;
857
+ attributes?: Record<string, unknown> | undefined;
858
+ imageUrl?: string | null | undefined;
859
+ strokeOpacity?: number | undefined;
860
+ strokeWidth?: number | undefined;
861
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
862
+ distanceMarker?: boolean | undefined;
863
+ endCaps?: boolean | undefined;
864
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
865
+ }, {
866
+ type: "Path";
867
+ id: string;
868
+ coordinates?: [number, number][][] | undefined;
869
+ groupId?: string | null | undefined;
870
+ color?: string | undefined;
871
+ name?: string | null | undefined;
872
+ description?: string | null | undefined;
873
+ attributes?: Record<string, unknown> | undefined;
874
+ imageUrl?: string | null | undefined;
875
+ strokeOpacity?: number | undefined;
876
+ strokeWidth?: number | undefined;
877
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
878
+ distanceMarker?: boolean | undefined;
879
+ endCaps?: boolean | undefined;
880
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
881
+ }>;
882
+ declare const PolygonUpdateSchema: z.ZodObject<{
883
+ type: z.ZodLiteral<"Polygon">;
884
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
885
+ id: z.ZodString;
886
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
+ color: z.ZodOptional<z.ZodString>;
888
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
889
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
890
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
891
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
892
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
893
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
894
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
895
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
896
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ type: "Polygon";
899
+ id: string;
900
+ coordinates?: [number, number][][] | undefined;
901
+ groupId?: string | null | undefined;
902
+ color?: string | undefined;
903
+ name?: string | null | undefined;
904
+ description?: string | null | undefined;
905
+ attributes?: Record<string, unknown> | undefined;
906
+ imageUrl?: string | null | undefined;
907
+ strokeOpacity?: number | undefined;
908
+ strokeWidth?: number | undefined;
909
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
910
+ fillOpacity?: number | undefined;
911
+ areaMarker?: boolean | undefined;
912
+ }, {
913
+ type: "Polygon";
914
+ id: string;
915
+ coordinates?: [number, number][][] | undefined;
916
+ groupId?: string | null | undefined;
917
+ color?: string | undefined;
918
+ name?: string | null | undefined;
919
+ description?: string | null | undefined;
920
+ attributes?: Record<string, unknown> | undefined;
921
+ imageUrl?: string | null | undefined;
922
+ strokeOpacity?: number | undefined;
923
+ strokeWidth?: number | undefined;
924
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
925
+ fillOpacity?: number | undefined;
926
+ areaMarker?: boolean | undefined;
927
+ }>;
928
+ declare const CircleUpdateSchema: z.ZodObject<{
929
+ type: z.ZodLiteral<"Circle">;
930
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
931
+ id: z.ZodString;
932
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ color: z.ZodOptional<z.ZodString>;
934
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
935
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
936
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
937
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
939
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
940
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
941
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
942
+ radius: z.ZodOptional<z.ZodNumber>;
943
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
944
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
945
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ type: "Circle";
948
+ id: string;
949
+ coordinates?: [number, number] | undefined;
950
+ groupId?: string | null | undefined;
951
+ color?: string | undefined;
952
+ name?: string | null | undefined;
953
+ description?: string | null | undefined;
954
+ attributes?: Record<string, unknown> | undefined;
955
+ imageUrl?: string | null | undefined;
956
+ strokeOpacity?: number | undefined;
957
+ strokeWidth?: number | undefined;
958
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
959
+ fillOpacity?: number | undefined;
960
+ radius?: number | undefined;
961
+ radiusDisplayAngle?: number | undefined;
962
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
963
+ radiusMarker?: boolean | undefined;
964
+ }, {
965
+ type: "Circle";
966
+ id: string;
967
+ coordinates?: [number, number] | undefined;
968
+ groupId?: string | null | undefined;
969
+ color?: string | undefined;
970
+ name?: string | null | undefined;
971
+ description?: string | null | undefined;
972
+ attributes?: Record<string, unknown> | undefined;
973
+ imageUrl?: string | null | undefined;
974
+ strokeOpacity?: number | undefined;
975
+ strokeWidth?: number | undefined;
976
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
977
+ fillOpacity?: number | undefined;
978
+ radius?: number | undefined;
979
+ radiusDisplayAngle?: number | undefined;
980
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
981
+ radiusMarker?: boolean | undefined;
982
+ }>;
983
+ declare const MarkerUpdateSchema: z.ZodObject<{
984
+ type: z.ZodLiteral<"Marker">;
985
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
986
+ id: z.ZodString;
987
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
988
+ color: z.ZodOptional<z.ZodString>;
989
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
990
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
991
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
992
+ opacity: z.ZodOptional<z.ZodNumber>;
993
+ size: z.ZodOptional<z.ZodNumber>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ type: "Marker";
996
+ id: string;
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
+ opacity?: number | undefined;
1004
+ size?: number | undefined;
1005
+ }, {
1006
+ type: "Marker";
1007
+ id: string;
1008
+ coordinates?: [number, number][][] | undefined;
1009
+ groupId?: string | null | undefined;
1010
+ color?: string | undefined;
1011
+ name?: string | null | undefined;
1012
+ description?: string | null | undefined;
1013
+ attributes?: Record<string, unknown> | undefined;
1014
+ opacity?: number | undefined;
1015
+ size?: number | undefined;
1016
+ }>;
1017
+ declare const HighlighterUpdateSchema: z.ZodObject<{
1018
+ type: z.ZodLiteral<"Highlighter">;
1019
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1020
+ id: z.ZodString;
1021
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
+ color: z.ZodOptional<z.ZodString>;
1023
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1024
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1025
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1026
+ opacity: z.ZodOptional<z.ZodNumber>;
1027
+ }, "strip", z.ZodTypeAny, {
1028
+ type: "Highlighter";
1029
+ id: string;
1030
+ coordinates?: [number, number][][] | undefined;
1031
+ groupId?: string | null | undefined;
1032
+ color?: string | undefined;
1033
+ name?: string | null | undefined;
1034
+ description?: string | null | undefined;
1035
+ attributes?: Record<string, unknown> | undefined;
1036
+ opacity?: number | undefined;
1037
+ }, {
1038
+ type: "Highlighter";
1039
+ id: string;
1040
+ coordinates?: [number, number][][] | undefined;
1041
+ groupId?: string | null | undefined;
1042
+ color?: string | undefined;
1043
+ name?: string | null | undefined;
1044
+ description?: string | null | undefined;
1045
+ attributes?: Record<string, unknown> | undefined;
1046
+ opacity?: number | undefined;
1047
+ }>;
1048
+ declare const TextUpdateSchema: z.ZodObject<{
1049
+ type: z.ZodLiteral<"Text">;
1050
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1051
+ id: z.ZodString;
1052
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
+ color: z.ZodOptional<z.ZodString>;
1054
+ name: z.ZodOptional<z.ZodString>;
1055
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1056
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1057
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1058
+ rotation: z.ZodOptional<z.ZodNumber>;
1059
+ scale: z.ZodOptional<z.ZodNumber>;
1060
+ text: z.ZodOptional<z.ZodString>;
1061
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1062
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1063
+ }, "strip", z.ZodTypeAny, {
1064
+ type: "Text";
1065
+ id: string;
1066
+ coordinates?: [number, number][][] | undefined;
1067
+ groupId?: string | null | undefined;
1068
+ color?: string | undefined;
1069
+ name?: string | undefined;
1070
+ description?: string | null | undefined;
1071
+ attributes?: Record<string, unknown> | undefined;
1072
+ position?: [number, number] | undefined;
1073
+ rotation?: number | undefined;
1074
+ scale?: number | undefined;
1075
+ text?: string | undefined;
1076
+ align?: "left" | "center" | "right" | undefined;
1077
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1078
+ }, {
1079
+ type: "Text";
1080
+ id: string;
1081
+ coordinates?: [number, number][][] | undefined;
1082
+ groupId?: string | null | undefined;
1083
+ color?: string | undefined;
1084
+ name?: string | undefined;
1085
+ description?: string | null | undefined;
1086
+ attributes?: Record<string, unknown> | undefined;
1087
+ position?: [number, number] | undefined;
1088
+ rotation?: number | undefined;
1089
+ scale?: number | undefined;
1090
+ text?: string | undefined;
1091
+ align?: "left" | "center" | "right" | undefined;
1092
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1093
+ }>;
1094
+ declare const NoteUpdateSchema: z.ZodObject<{
1095
+ type: z.ZodLiteral<"Note">;
1096
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1097
+ id: z.ZodString;
1098
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ color: z.ZodOptional<z.ZodString>;
1100
+ name: z.ZodOptional<z.ZodString>;
1101
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1102
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1103
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1104
+ rotation: z.ZodOptional<z.ZodNumber>;
1105
+ scale: z.ZodOptional<z.ZodNumber>;
1106
+ text: z.ZodOptional<z.ZodString>;
1107
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1108
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1109
+ widthMultiplier: z.ZodOptional<z.ZodNumber>;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ type: "Note";
1112
+ id: string;
1113
+ coordinates?: [number, number][][] | undefined;
1114
+ groupId?: string | null | undefined;
1115
+ color?: string | undefined;
1116
+ name?: string | undefined;
1117
+ description?: string | null | undefined;
1118
+ attributes?: Record<string, unknown> | undefined;
1119
+ position?: [number, number] | undefined;
1120
+ rotation?: number | undefined;
1121
+ scale?: number | undefined;
1122
+ text?: string | undefined;
1123
+ align?: "left" | "center" | "right" | undefined;
1124
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1125
+ widthMultiplier?: number | undefined;
1126
+ }, {
1127
+ type: "Note";
1128
+ id: string;
1129
+ coordinates?: [number, number][][] | undefined;
1130
+ groupId?: string | null | undefined;
1131
+ color?: string | undefined;
1132
+ name?: string | undefined;
1133
+ description?: string | null | undefined;
1134
+ attributes?: Record<string, unknown> | undefined;
1135
+ position?: [number, number] | undefined;
1136
+ rotation?: number | undefined;
1137
+ scale?: number | undefined;
1138
+ text?: string | undefined;
1139
+ align?: "left" | "center" | "right" | undefined;
1140
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1141
+ widthMultiplier?: number | undefined;
1142
+ }>;
1143
+ declare const ImageUpdateSchema: z.ZodObject<{
1144
+ type: z.ZodLiteral<"Image">;
1145
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1146
+ id: z.ZodString;
1147
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
+ color: z.ZodOptional<z.ZodString>;
1149
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1150
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1151
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1152
+ imageUrl: z.ZodOptional<z.ZodString>;
1153
+ opacity: z.ZodOptional<z.ZodNumber>;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ type: "Image";
1156
+ id: string;
1157
+ coordinates?: [number, number][][] | undefined;
1158
+ groupId?: string | null | undefined;
1159
+ color?: string | undefined;
1160
+ name?: string | null | undefined;
1161
+ description?: string | null | undefined;
1162
+ attributes?: Record<string, unknown> | undefined;
1163
+ imageUrl?: string | undefined;
1164
+ opacity?: number | undefined;
1165
+ }, {
1166
+ type: "Image";
1167
+ id: string;
1168
+ coordinates?: [number, number][][] | undefined;
1169
+ groupId?: string | null | undefined;
1170
+ color?: string | undefined;
1171
+ name?: string | null | undefined;
1172
+ description?: string | null | undefined;
1173
+ attributes?: Record<string, unknown> | undefined;
1174
+ imageUrl?: string | undefined;
1175
+ opacity?: number | undefined;
1176
+ }>;
1177
+ interface PlaceElementCreate extends zInfer<typeof PlaceCreateSchema> {
1178
+ }
1179
+ interface PathElementCreate extends zInfer<typeof PathCreateSchema> {
1180
+ }
1181
+ interface PolygonElementCreate extends zInfer<typeof PolygonCreateSchema> {
1182
+ }
1183
+ interface CircleElementCreate extends zInfer<typeof CircleCreateSchema> {
1184
+ }
1185
+ interface MarkerElementCreate extends zInfer<typeof MarkerCreateSchema> {
1186
+ }
1187
+ interface HighlighterElementCreate extends zInfer<typeof HighlighterCreateSchema> {
1188
+ }
1189
+ interface TextElementCreate extends zInfer<typeof TextCreateSchema> {
1190
+ }
1191
+ interface NoteElementCreate extends zInfer<typeof NoteCreateSchema> {
1192
+ }
1193
+ interface ImageElementCreate extends zInfer<typeof ImageCreateSchema> {
1194
+ }
1195
+ interface PlaceElementRead extends zInfer<typeof PlaceReadSchema> {
1196
+ }
1197
+ interface PathElementRead extends zInfer<typeof PathReadSchema> {
1198
+ }
1199
+ interface PolygonElementRead extends zInfer<typeof PolygonReadSchema> {
1200
+ }
1201
+ interface CircleElementRead extends zInfer<typeof CircleReadSchema> {
1202
+ }
1203
+ interface MarkerElementRead extends zInfer<typeof MarkerReadSchema> {
1204
+ }
1205
+ interface HighlighterElementRead extends zInfer<typeof HighlighterReadSchema> {
1206
+ }
1207
+ interface TextElementRead extends zInfer<typeof TextReadSchema> {
1208
+ }
1209
+ interface NoteElementRead extends zInfer<typeof NoteReadSchema> {
1210
+ }
1211
+ interface ImageElementRead extends zInfer<typeof ImageReadSchema> {
1212
+ }
1213
+ interface LinkElementRead extends zInfer<typeof LinkReadSchema> {
1214
+ }
1215
+ interface PlaceElementUpdate extends zInfer<typeof PlaceUpdateSchema> {
1216
+ }
1217
+ interface PathElementUpdate extends zInfer<typeof PathUpdateSchema> {
1218
+ }
1219
+ interface PolygonElementUpdate extends zInfer<typeof PolygonUpdateSchema> {
1220
+ }
1221
+ interface CircleElementUpdate extends zInfer<typeof CircleUpdateSchema> {
1222
+ }
1223
+ interface MarkerElementUpdate extends zInfer<typeof MarkerUpdateSchema> {
1224
+ }
1225
+ interface HighlighterElementUpdate extends zInfer<typeof HighlighterUpdateSchema> {
1226
+ }
1227
+ interface TextElementUpdate extends zInfer<typeof TextUpdateSchema> {
1228
+ }
1229
+ interface NoteElementUpdate extends zInfer<typeof NoteUpdateSchema> {
1230
+ }
1231
+ interface ImageElementUpdate extends zInfer<typeof ImageUpdateSchema> {
1232
+ }
1233
+ type ElementCreate = PlaceElementCreate | PathElementCreate | PolygonElementCreate | CircleElementCreate | MarkerElementCreate | HighlighterElementCreate | ImageElementCreate | TextElementCreate | NoteElementCreate;
1234
+ type ElementUpdate = PlaceElementUpdate | PathElementUpdate | PolygonElementUpdate | CircleElementUpdate | MarkerElementUpdate | HighlighterElementUpdate | TextElementUpdate | NoteElementUpdate | ImageElementUpdate;
1235
+ /**
1236
+ * @group Elements
1237
+ */
1238
+ type Element = PlaceElementRead | PathElementRead | PolygonElementRead | CircleElementRead | MarkerElementRead | HighlighterElementRead | TextElementRead | NoteElementRead | ImageElementRead | LinkElementRead;
1239
+ /**
1240
+ * @group Element Groups
1241
+ */
1242
+ interface ElementGroup {
1243
+ /**
1244
+ * A string identifying the element group.
1245
+ */
1246
+ id: string;
1247
+ /**
1248
+ * The name of the element group. This is shown in the legend.
1249
+ */
1250
+ name: string;
1251
+ /**
1252
+ * The caption of the element group. This is shown in the legend.
1253
+ */
1254
+ caption: string | null;
1255
+ /**
1256
+ * The ids of the elements in the element group.
1257
+ *
1258
+ * @remarks
1259
+ * You can use these ids to get the full element objects via the `getElements` method.
1260
+ */
1261
+ elementIds: Array<string>;
1262
+ /**
1263
+ * Whether the element group is visible or not.
1264
+ */
1265
+ visible: boolean;
1266
+ /**
1267
+ * Whether the element group is shown in the legend or not.
1268
+ */
1269
+ shownInLegend: boolean;
1270
+ }
1271
+ /**
1272
+ * The constraints to apply when getting elements.
1273
+ *
1274
+ * @group Elements
1275
+ */
1276
+ interface GetElementsConstraint extends zInfer<typeof GetElementsConstraintSchema> {
1277
+ }
1278
+ declare const GetElementsConstraintSchema: z.ZodObject<{
1279
+ /**
1280
+ * The ids of the elements to get.
1281
+ */
1282
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ ids?: string[] | undefined;
1285
+ }, {
1286
+ ids?: string[] | undefined;
1287
+ }>;
1288
+ /**
1289
+ * The constraints to apply when getting element groups.
1290
+ *
1291
+ * @group Element Groups
1292
+ */
1293
+ interface GetElementGroupsConstraint extends zInfer<typeof GetElementGroupsConstraintSchema> {
1294
+ }
1295
+ /**
1296
+ * @ignore
1297
+ */
1298
+ declare const GetElementGroupsConstraintSchema: z.ZodObject<{
1299
+ /**
1300
+ * The ids of the element groups to get.
1301
+ */
1302
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ ids?: string[] | undefined;
1305
+ }, {
1306
+ ids?: string[] | undefined;
1307
+ }>;
1308
+ /**
1309
+ * The parameters for the `onElementChange` listener.
1310
+ *
1311
+ * @group Elements
1312
+ */
1313
+ interface ElementChangeCallbackParams {
1314
+ /**
1315
+ * The new data for the element or null if the element was removed.
1316
+ */
1317
+ element: Element | null;
1318
+ }
1319
+ /**
1320
+ * The parameters for the `onElementGroupChange` listener.
1321
+ *
1322
+ * @group Element Groups
1323
+ */
1324
+ interface ElementGroupChangeCallbackParams {
1325
+ elementGroup: ElementGroup | null;
1326
+ }
1327
+
1328
+ /**
1329
+ * Represents a point in world coordinates.
1330
+ */
1331
+ interface LatLng {
1332
+ latitude: number;
1333
+ longitude: number;
1334
+ }
1335
+ /**
1336
+ * A tuple representing a longitude and latitude coordinate.
1337
+ *
1338
+ * This is used hen serializing geometry because that's the standard used in
1339
+ * GeoJSON.
1340
+ */
1341
+ type LngLatTuple = [longitude: number, latitude: number];
1342
+ /**
1343
+ * A GeoJSON point geometry.
1344
+ */
1345
+ type PointGeometry = {
1346
+ type: "Point";
1347
+ coordinates: LngLatTuple;
1348
+ };
1349
+ /**
1350
+ * A GeoJSON polygon geometry.
1351
+ */
1352
+ type PolygonGeometry = {
1353
+ type: "Polygon";
1354
+ coordinates: LngLatTuple[][];
1355
+ };
1356
+ /**
1357
+ * A GeoJSON multi-polygon geometry.
1358
+ */
1359
+ type MultiPolygonGeometry = {
1360
+ type: "MultiPolygon";
1361
+ coordinates: PolygonGeometry["coordinates"][];
1362
+ };
1363
+ /**
1364
+ * A GeoJSON line string geometry.
1365
+ */
1366
+ type LineStringGeometry = {
1367
+ type: "LineString";
1368
+ coordinates: LngLatTuple[];
1369
+ };
1370
+ /**
1371
+ * A GeoJSON multi-line string geometry.
1372
+ */
1373
+ type MultiLineStringGeometry = {
1374
+ type: "MultiLineString";
1375
+ coordinates: LineStringGeometry["coordinates"][];
1376
+ };
1377
+ /**
1378
+ * A GeoJSON geometry of any type
1379
+ */
1380
+ type Geometry = PointGeometry | PolygonGeometry | LineStringGeometry | MultiLineStringGeometry | MultiPolygonGeometry;
1381
+ /**
1382
+ * @ignore
1383
+ * @internal
1384
+ */
1385
+ declare const FeltZoomSchema: z.ZodNumber;
1386
+ /**
1387
+ * The zoom level of the map.
1388
+ *
1389
+ * It is a floating-point number between 1 and 23, where 1 is the most
1390
+ * zoomed out and 23 is the most zoomed in.
1391
+ *
1392
+ * @group Types
1393
+ * @public
1394
+ */
1395
+ type FeltZoom = z.infer<typeof FeltZoomSchema>;
1396
+ /**
1397
+ * @ignore
1398
+ * @internal
1399
+ */
1400
+ declare const FeltBoundarySchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1401
+ /**
1402
+ * The edges of the map in the form of a bounding box.
1403
+ *
1404
+ * The boundary is a tuple of the form `[west, south, east, north]`.
1405
+ *
1406
+ * @group Types
1407
+ * @public
1408
+ */
1409
+ type FeltBoundary = z.infer<typeof FeltBoundarySchema>;
1410
+ /**
1411
+ * The parameters for the methods that change the visibility of entities.
1412
+ *
1413
+ * @public
1414
+ * @category Visibility
1415
+ */
1416
+ interface SetVisibilityRequest extends zInfer<typeof SetVisibilityRequestSchema> {
1417
+ }
1418
+ /**
1419
+ * @internal
1420
+ */
1421
+ declare const SetVisibilityRequestSchema: z.ZodObject<{
1422
+ /**
1423
+ * The ids of the entities you want to change the visibility of.
1424
+ */
1425
+ show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1426
+ hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ show?: string[] | undefined;
1429
+ hide?: string[] | undefined;
1430
+ }, {
1431
+ show?: string[] | undefined;
1432
+ hide?: string[] | undefined;
1433
+ }>;
1434
+
1435
+ /**
1436
+ * A feature is a single geographical item in a layer.
1437
+ * The unique ID for a feature is a compound key made up of the layer ID and the feature ID.
1438
+ */
1439
+ interface Feature {
1440
+ /**
1441
+ * The identifier of the feature, unique within the layer.
1442
+ */
1443
+ id: string | number;
1444
+ /**
1445
+ * The identifier of the layer that the feature belongs to.
1446
+ */
1447
+ layerId: string;
1448
+ /**
1449
+ * The type of geometry of the feature.
1450
+ */
1451
+ geometryType: "Point" | "LineString" | "Polygon" | "MultiPolygon" | (string & {});
1452
+ /**
1453
+ * The properties of the feature, as a bag of attributes.
1454
+ */
1455
+ properties: Record<string, unknown>;
1456
+ }
1457
+ /**
1458
+ * A raster pixel value for a specific layer.
1459
+ *
1460
+ * @interface
1461
+ */
1462
+ type RasterValue = {
1463
+ /**
1464
+ * The value of the pixel.
1465
+ */
1466
+ value: number;
1467
+ /**
1468
+ * The ID of the layer that the pixel belongs to.
1469
+ */
1470
+ layerId: string;
1471
+ /**
1472
+ * The name of the category that the pixel belongs to.
1473
+ */
1474
+ categoryName: null | string;
1475
+ /**
1476
+ * The color of the pixel. Each value is between 0 and 255.
1477
+ */
1478
+ color: null | {
1479
+ r: number;
1480
+ g: number;
1481
+ b: number;
1482
+ a: number;
1483
+ };
1484
+ };
1485
+
1486
+ /**
1487
+ * This describes the processing status of a layer.
1488
+ *
1489
+ * The various values are:
1490
+ * - `processing`: The layer has been uploaded or updated and is still processing.
1491
+ * - `completed`: The layer has been processed and can be viewed on the map.
1492
+ * - `failed`: The layer failed to process and cannot be viewed on the map.
1493
+ * - `incomplete`: The layer has not been processed.
1494
+ *
1495
+ * @group Layers
1496
+ */
1497
+ type LayerProcessingStatus = z.infer<typeof LayerProcessingStatusSchema>;
1498
+ declare const LayerProcessingStatusSchema: z.ZodEnum<["processing", "completed", "failed", "incomplete"]>;
1499
+ /**
1500
+ * @group Layers
1501
+ */
1502
+ interface Layer {
1503
+ /**
1504
+ * The string identifying the layer
1505
+ */
1506
+ id: string;
1507
+ /**
1508
+ * The ID of the layer group that the layer belongs to.
1509
+ *
1510
+ * Layers that appear at the root level in Felt will not have a group ID.
1511
+ */
1512
+ groupId: string | null;
1513
+ /**
1514
+ * The name of the layer can be displayed in the Legend, depending
1515
+ * on how the layer's legend is configured in its style.
1516
+ */
1517
+ name: string;
1518
+ /**
1519
+ * The layer's caption is shown in the legend.
1520
+ */
1521
+ caption: string | null;
1522
+ /**
1523
+ * The layer description forms part of the layer's metadata. This is visible
1524
+ * to users via the layer info button in the legend.
1525
+ */
1526
+ description: string | null;
1527
+ /**
1528
+ * Whether the layer is visible or not.
1529
+ */
1530
+ visible: boolean;
1531
+ /**
1532
+ * Whether the layer is shown in the legend or not.
1533
+ */
1534
+ shownInLegend: boolean;
1535
+ /**
1536
+ * The FSL style for the layer.
1537
+ *
1538
+ * See the [FSL documentation](https://developers.felt.com/felt-style-language) for details
1539
+ * on how to read and write styles.
1540
+ *
1541
+ * As the types of the styles are very complex, we return `object` here and advise that you
1542
+ * program defensively while reading the styles.
1543
+ */
1544
+ style: object;
1545
+ /**
1546
+ * The current processing status of the layer.
1547
+ */
1548
+ status: LayerProcessingStatus;
1549
+ /**
1550
+ * The geometry type of the layer.
1551
+ *
1552
+ * @remarks
1553
+ * This will generally be one of:
1554
+ * - `"Point"`
1555
+ * - `"Line"`
1556
+ * - `"Polygon"`
1557
+ * - `"Raster"`
1558
+ * - `null`
1559
+ *
1560
+ * When the layer is processing, or it is a data-only layer, it will be null. You should
1561
+ * expect this to be able to be any string, however, as more geometry types can be added
1562
+ * in the future.
1563
+ */
1564
+ geometryType: string | null;
1565
+ /**
1566
+ * The bounding box of the layer. If the layer is processing, or the bounds have otherwise
1567
+ * not been calculated or are not available, this will be `null`.
1568
+ *
1569
+ * {@link FeltBoundary}
1570
+ */
1571
+ bounds: FeltBoundary | null;
1572
+ }
1573
+ /**
1574
+ * @group Layer Groups
1575
+ */
1576
+ interface LayerGroup {
1577
+ /**
1578
+ * A string identifying the layer group.
1579
+ */
1580
+ id: string;
1581
+ /**
1582
+ * The name of the layer group. This is shown in the legend.
1583
+ */
1584
+ name: string;
1585
+ /**
1586
+ * The caption of the layer group. This is shown in the legend.
1587
+ */
1588
+ caption: string | null;
1589
+ /**
1590
+ * The ids of the layers in the layer group.
1591
+ *
1592
+ * @remarks
1593
+ * You can use these ids to get the full layer objects via the `getLayers` method.
1594
+ */
1595
+ layerIds: Array<string>;
1596
+ /**
1597
+ * Whether the layer group is visible or not.
1598
+ */
1599
+ visible: boolean;
1600
+ /**
1601
+ * Whether the layer group is shown in the legend or not.
1602
+ */
1603
+ shownInLegend: boolean;
1604
+ /**
1605
+ * The bounding box of the layer group.
1606
+ *
1607
+ * {@link FeltBoundary}
1608
+ */
1609
+ bounds: FeltBoundary | null;
1610
+ }
1611
+ /**
1612
+ * The constraints to apply when getting layers.
1613
+ *
1614
+ * @group Layers
1615
+ */
1616
+ interface GetLayersConstraint extends zInfer<typeof GetLayersConstraintSchema> {
1617
+ }
1618
+ /**
1619
+ * @ignore
1620
+ */
1621
+ declare const GetLayersConstraintSchema: z.ZodObject<{
1622
+ /**
1623
+ * The ids of the layers to get.
1624
+ */
1625
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ ids?: string[] | undefined;
1628
+ }, {
1629
+ ids?: string[] | undefined;
1630
+ }>;
1631
+ /**
1632
+ * The constraints to apply when getting layer groups.
1633
+ *
1634
+ * @group Layer Groups
1635
+ */
1636
+ interface GetLayerGroupsConstraint extends zInfer<typeof GetLayerGroupsFilterSchema> {
1637
+ }
1638
+ /**
1639
+ * @ignore
1640
+ */
1641
+ declare const GetLayerGroupsFilterSchema: z.ZodObject<{
1642
+ /**
1643
+ * The ids of the layer groups to get.
1644
+ */
1645
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ ids?: string[] | undefined;
1648
+ }, {
1649
+ ids?: string[] | undefined;
1650
+ }>;
1651
+ /**
1652
+ * The parameters for the `onLayerChange` listener.
1653
+ *
1654
+ * @group Layers
1655
+ */
1656
+ interface LayerChangeCallbackParams {
1657
+ /**
1658
+ * The new data for the layer or null if the layer was removed.
1659
+ */
1660
+ layer: Layer | null;
1661
+ }
1662
+ /**
1663
+ * The parameters for the `onLayerGroupChange` listener.
1664
+ *
1665
+ * @group Layer Groups
1666
+ */
1667
+ interface LayerGroupChangeCallbackParams {
1668
+ layerGroup: LayerGroup | null;
1669
+ }
1670
+ /**
1671
+ * A legend item, which often represents a sub-class of features in a
1672
+ * layer in the case of categorical or classed layers.
1673
+ *
1674
+ * @group Legend Items
1675
+ */
1676
+ interface LegendItem extends LegendItemIdentifier {
1677
+ /**
1678
+ * The title of the legend item.
1679
+ */
1680
+ title: string | Array<string>;
1681
+ /**
1682
+ * Whether the title depends on the zoom level or not. If it does, you
1683
+ * need to call `getLegendItem` when the zoom level changes.
1684
+ *
1685
+ * Note that as the zoom level changes, the `onLegendItemChange` handler
1686
+ * will not be called, so you need to call `getLegendItem` yourself.
1687
+ */
1688
+ titleDependsOnZoom: boolean;
1689
+ /**
1690
+ * Whether the legend item is visible or not.
1691
+ */
1692
+ visible: boolean;
1693
+ }
1694
+ /**
1695
+ * The identifier for a legend item. It is a compound key of the layer to
1696
+ * which the legend item belongs and the legend item's own id.
1697
+ *
1698
+ * @group Legend Items
1699
+ */
1700
+ interface LegendItemIdentifier extends zInfer<typeof LegendItemIdentifierSchema> {
1701
+ }
1702
+ /** @ignore */
1703
+ declare const LegendItemIdentifierSchema: z.ZodObject<{
1704
+ /**
1705
+ * The id of the legend item.
1706
+ */
1707
+ id: z.ZodString;
1708
+ /**
1709
+ * The id of the layer the legend item belongs to.
1710
+ */
1711
+ layerId: z.ZodString;
1712
+ }, "strip", z.ZodTypeAny, {
1713
+ id: string;
1714
+ layerId: string;
1715
+ }, {
1716
+ id: string;
1717
+ layerId: string;
1718
+ }>;
1719
+ /**
1720
+ * Constraints for legend items. If nothing is passed, all legend items will be returned.
1721
+ *
1722
+ * @group Legend Items
1723
+ */
1724
+ interface LegendItemsConstraint extends zInfer<typeof LegendItemsConstraintSchema> {
1725
+ }
1726
+ /** @ignore */
1727
+ declare const LegendItemsConstraintSchema: z.ZodObject<{
1728
+ /**
1729
+ * Array of legend item identifiers to constrain by.
1730
+ */
1731
+ ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
1732
+ /**
1733
+ * The id of the legend item.
1734
+ */
1735
+ id: z.ZodString;
1736
+ /**
1737
+ * The id of the layer the legend item belongs to.
1738
+ */
1739
+ layerId: z.ZodString;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ id: string;
1742
+ layerId: string;
1743
+ }, {
1744
+ id: string;
1745
+ layerId: string;
1746
+ }>, "many">>;
1747
+ /**
1748
+ * Array of layer ids to constrain legend items by.
1749
+ */
1750
+ layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ ids?: {
1753
+ id: string;
1754
+ layerId: string;
1755
+ }[] | undefined;
1756
+ layerIds?: string[] | undefined;
1757
+ }, {
1758
+ ids?: {
1759
+ id: string;
1760
+ layerId: string;
1761
+ }[] | undefined;
1762
+ layerIds?: string[] | undefined;
1763
+ }>;
1764
+ /**
1765
+ * The parameters for the `onLegendItemChange` listener.
1766
+ *
1767
+ * @group Legend Items
1768
+ */
1769
+ interface LegendItemChangeCallbackParams {
1770
+ /**
1771
+ * The new data for the legend item or null if the legend item was removed.
1772
+ */
1773
+ legendItem: LegendItem | null;
1774
+ }
1775
+ /**
1776
+ * Constraints for the `getRenderedFeatures` method. This can include layer constriants, spatial constraints, or both. If no constraints are
1777
+ * provided, all rendered features will be returned.
1778
+ *
1779
+ * @group Layers
1780
+ */
1781
+ interface GetRenderedFeaturesConstraint extends zInfer<typeof GetRenderedFeaturesConstraintSchema> {
1782
+ /**
1783
+ * The area to query for rendered features. This can be specific coordinates or a {@link FeltBoundary}. If omitted, the entire viewport will be queried.
1784
+ */
1785
+ areaQuery?: {
1786
+ coordinates: LatLng;
1787
+ } | {
1788
+ boundary: FeltBoundary;
1789
+ };
1790
+ }
1791
+ /** @ignore */
1792
+ declare const GetRenderedFeaturesConstraintSchema: z.ZodObject<{
1793
+ /**
1794
+ * The ids of the layers to get rendered features for.
1795
+ */
1796
+ layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1797
+ areaQuery: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1798
+ coordinates: z.ZodObject<{
1799
+ latitude: z.ZodNumber;
1800
+ longitude: z.ZodNumber;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ latitude: number;
1803
+ longitude: number;
1804
+ }, {
1805
+ latitude: number;
1806
+ longitude: number;
1807
+ }>;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ coordinates: {
1810
+ latitude: number;
1811
+ longitude: number;
1812
+ };
1813
+ }, {
1814
+ coordinates: {
1815
+ latitude: number;
1816
+ longitude: number;
1817
+ };
1818
+ }>, z.ZodObject<{
1819
+ boundary: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1820
+ }, "strip", z.ZodTypeAny, {
1821
+ boundary: [number, number, number, number];
1822
+ }, {
1823
+ boundary: [number, number, number, number];
1824
+ }>]>>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ layerIds?: string[] | undefined;
1827
+ areaQuery?: {
1828
+ coordinates: {
1829
+ latitude: number;
1830
+ longitude: number;
1831
+ };
1832
+ } | {
1833
+ boundary: [number, number, number, number];
1834
+ } | undefined;
1835
+ }, {
1836
+ layerIds?: string[] | undefined;
1837
+ areaQuery?: {
1838
+ coordinates: {
1839
+ latitude: number;
1840
+ longitude: number;
1841
+ };
1842
+ } | {
1843
+ boundary: [number, number, number, number];
1844
+ } | undefined;
1845
+ }>;
1846
+
1847
+ /**
1848
+ * @group Filters
1849
+ */
1850
+ type FilterLogicGate = z.infer<typeof FilterLogicGateSchema>;
1851
+ declare const FilterLogicGateSchema: z.ZodEnum<["and", "or"]>;
1852
+ /**
1853
+ * @group Filters
1854
+ */
1855
+ type FilterExpression = z.infer<typeof FilterExpressionSchema>;
1856
+ declare const FilterExpressionSchema: 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>]>;
1857
+ /**
1858
+ * @group Filters
1859
+ */
1860
+ type FilterTernary = [
1861
+ FilterTernary | FilterExpression | null | boolean,
1862
+ FilterLogicGate,
1863
+ FilterTernary | FilterExpression | null | boolean
1864
+ ];
1865
+ /**
1866
+ *
1867
+ * Filters can be used to change which features in a layer are rendered. Filters can be
1868
+ * applied to a layer by the `setLayerFilters` method on the Felt controller.
1869
+ *
1870
+ * @remarks
1871
+ * The possible operators are:
1872
+ * - `lt`: Less than
1873
+ * - `gt`: Greater than
1874
+ * - `le`: Less than or equal to
1875
+ * - `ge`: Greater than or equal to
1876
+ * - `eq`: Equal to
1877
+ * - `ne`: Not equal to
1878
+ * - `cn`: Contains
1879
+ * - `nc`: Does not contain
1880
+ *
1881
+ * The allowed boolean operators are:
1882
+ * - `and`: Logical AND
1883
+ * - `or`: Logical OR
1884
+ *
1885
+ * @example
1886
+ * ```typescript
1887
+ * // a simple filter
1888
+ * felt.setLayerFilters({
1889
+ * layerId: "layer-1",
1890
+ * filters: ["AREA", "gt", 30_000],
1891
+ * });
1892
+ *
1893
+ * // compound filters can be constructed using boolean logic:
1894
+ * felt.setLayerFilters({
1895
+ * layerId: "layer-1",
1896
+ * filters: [["AREA", "gt", 30_000], "and", ["COLOR", "eq", "red"]]
1897
+ * })
1898
+ * ```
1899
+ *
1900
+ * @group Filters
1901
+ */
1902
+ type Filters = FilterTernary | FilterExpression | null | boolean;
1903
+ /**
1904
+ * The filters that are currently set on a layer.
1905
+ *
1906
+ * A layer's filters are the combination of various different places
1907
+ * in which filters can be applied.
1908
+ *
1909
+ * @group Filters
1910
+ */
1911
+ interface LayerFilters {
1912
+ /**
1913
+ * Filters that are set in the layer's style. These are the lowest level
1914
+ * of filters, and can only be set by editing the map.
1915
+ */
1916
+ style: Filters;
1917
+ /**
1918
+ * Filters that are set in the layer's components, which are interactive
1919
+ * elements in the legend. These can be set by viewers for their own session,
1920
+ * but their default value can be set by the map creator.
1921
+ */
1922
+ components: Filters;
1923
+ /**
1924
+ * Filters that are set ephemerally by viewers in their own session.
1925
+ *
1926
+ * These are the filters that are set when the `setLayerFilters` method is
1927
+ * called. There is no way to set these in the Felt UI - they can only be
1928
+ * set using the SDK.
1929
+ */
1930
+ ephemeral: Filters;
1931
+ /**
1932
+ * The combined result of all the filters set on the layer.
1933
+ */
1934
+ combined: Filters;
1935
+ }
1936
+
1937
+ /**
1938
+ * The event object passed to the interaction listeners.
1939
+ */
1940
+ interface MapInteractionEvent {
1941
+ /**
1942
+ * The cursor position in world coordinates.
1943
+ */
1944
+ coordinate: LatLng;
1945
+ /**
1946
+ * The vector features that are under the cursor.
1947
+ */
1948
+ features: Array<Feature>;
1949
+ /**
1950
+ * The raster pixel values that are under the cursor.
1951
+ */
1952
+ rasterValues: Array<RasterValue>;
1953
+ }
1954
+
1955
+ /**
1956
+ * A reference to any kind of entity in the map.
1957
+ *
1958
+ * @remarks
1959
+ * EntityNodes are used when you have some collection of entities and you need to
1960
+ *
1961
+ * @group Entity Node
1962
+ */
1963
+ type EntityNode = ElementNode | ElementGroupNode | LayerNode | LayerGroupNode | FeatureNode;
1964
+ /**
1965
+ * References an element on the map.
1966
+ *
1967
+ * @interface
1968
+ * @group Entity Nodes
1969
+ */
1970
+ type ElementNode = {
1971
+ type: "element";
1972
+ entity: Element;
1973
+ };
1974
+ /**
1975
+ * References an element group.
1976
+ *
1977
+ * @interface
1978
+ * @group Entity Nodes
1979
+ */
1980
+ type ElementGroupNode = {
1981
+ type: "elementGroup";
1982
+ entity: ElementGroup;
1983
+ };
1984
+ /**
1985
+ * References a layer on the map.
1986
+ *
1987
+ * @interface
1988
+ * @group Entity Nodes
1989
+ */
1990
+ type LayerNode = {
1991
+ type: "layer";
1992
+ entity: Layer;
1993
+ };
1994
+ /**
1995
+ * References a layer group on the map.
1996
+ *
1997
+ * @interface
1998
+ * @group Entity Nodes
1999
+ */
2000
+ type LayerGroupNode = {
2001
+ type: "layerGroup";
2002
+ entity: LayerGroup;
2003
+ };
2004
+ /**
2005
+ * References a feature on the map.
2006
+ *
2007
+ * @interface
2008
+ * @group Entity Nodes
2009
+ */
2010
+ type FeatureNode = {
2011
+ type: "feature";
2012
+ entity: Feature;
2013
+ };
2014
+ /**
2015
+ * The options for selecting a feature in a layer.
2016
+ */
2017
+ interface FeatureSelection extends zInfer<typeof FeatureSelectionSchema> {
2018
+ }
2019
+ /**
2020
+ * @ignore
2021
+ */
2022
+ declare const FeatureSelectionSchema: z.ZodObject<{
2023
+ /**
2024
+ * The id of the feature to select.
2025
+ */
2026
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2027
+ /**
2028
+ * The id of the layer that the feature belongs to.
2029
+ */
2030
+ layerId: z.ZodString;
2031
+ /**
2032
+ * Whether to show the feature's popup, if it is configured in the layer's style.
2033
+ *
2034
+ * @default true
2035
+ */
2036
+ showPopup: z.ZodOptional<z.ZodBoolean>;
2037
+ /**
2038
+ * Whether to center the view on the feature after selecting it.
2039
+ *
2040
+ * When true, the viewport will be centered on the feature and zoomed to fit the feature
2041
+ * in the viewport. If you need to control the zoom level to prevent it zooming in too
2042
+ * far, you can pass an object with a `maxZoom` property.
2043
+ *
2044
+ * This is useful for avoiding zooming in too far on point features, or if you want
2045
+ * to maintain the current zoom level.
2046
+ *
2047
+ * @default true
2048
+ */
2049
+ fitViewport: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
2050
+ maxZoom: z.ZodNumber;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ maxZoom: number;
2053
+ }, {
2054
+ maxZoom: number;
2055
+ }>]>>;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ id: string | number;
2058
+ layerId: string;
2059
+ showPopup?: boolean | undefined;
2060
+ fitViewport?: boolean | {
2061
+ maxZoom: number;
2062
+ } | undefined;
2063
+ }, {
2064
+ id: string | number;
2065
+ layerId: string;
2066
+ showPopup?: boolean | undefined;
2067
+ fitViewport?: boolean | {
2068
+ maxZoom: number;
2069
+ } | undefined;
2070
+ }>;
2071
+
2072
+ declare const ToolSchema: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>;
2073
+ type ToolType = z.infer<typeof ToolSchema>;
2074
+ type ConfigurableToolType = keyof ToolSettingsMap;
2075
+ declare const PinToolSettingsSchema: z.ZodObject<{
2076
+ symbol: z.ZodString;
2077
+ color: z.ZodString;
2078
+ frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ symbol: string;
2081
+ color: string;
2082
+ frame: "frame-circle" | "frame-square" | null;
2083
+ }, {
2084
+ symbol: string;
2085
+ color: string;
2086
+ frame: "frame-circle" | "frame-square" | null;
2087
+ }>;
2088
+ interface PinToolSettings extends zInfer<typeof PinToolSettingsSchema> {
2089
+ symbol: PlaceSymbol;
2090
+ }
2091
+ declare const LineToolSettingsSchema: z.ZodObject<{
2092
+ color: z.ZodString;
2093
+ strokeOpacity: z.ZodNumber;
2094
+ strokeWidth: z.ZodNumber;
2095
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
2096
+ distanceMarker: z.ZodBoolean;
2097
+ }, "strip", z.ZodTypeAny, {
2098
+ color: string;
2099
+ strokeOpacity: number;
2100
+ strokeWidth: number;
2101
+ strokeStyle: "solid" | "dashed" | "dotted";
2102
+ distanceMarker: boolean;
2103
+ }, {
2104
+ color: string;
2105
+ strokeOpacity: number;
2106
+ strokeWidth: number;
2107
+ strokeStyle: "solid" | "dashed" | "dotted";
2108
+ distanceMarker: boolean;
2109
+ }>;
2110
+ interface LineToolSettings extends zInfer<typeof LineToolSettingsSchema> {
2111
+ }
2112
+ declare const RouteToolSettingsSchema: z.ZodObject<{
2113
+ color: z.ZodString;
2114
+ strokeOpacity: z.ZodNumber;
2115
+ strokeWidth: z.ZodNumber;
2116
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
2117
+ distanceMarker: z.ZodBoolean;
2118
+ endCaps: z.ZodBoolean;
2119
+ routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ color: string;
2122
+ strokeOpacity: number;
2123
+ strokeWidth: number;
2124
+ strokeStyle: "solid" | "dashed" | "dotted";
2125
+ distanceMarker: boolean;
2126
+ endCaps: boolean;
2127
+ routingMode: "driving" | "cycling" | "walking" | "flying" | null;
2128
+ }, {
2129
+ color: string;
2130
+ strokeOpacity: number;
2131
+ strokeWidth: number;
2132
+ strokeStyle: "solid" | "dashed" | "dotted";
2133
+ distanceMarker: boolean;
2134
+ endCaps: boolean;
2135
+ routingMode: "driving" | "cycling" | "walking" | "flying" | null;
2136
+ }>;
2137
+ interface RouteToolSettings extends zInfer<typeof RouteToolSettingsSchema> {
2138
+ }
2139
+ declare const PolygonToolSettingsSchema: z.ZodObject<{
2140
+ color: z.ZodString;
2141
+ strokeOpacity: z.ZodNumber;
2142
+ strokeWidth: z.ZodNumber;
2143
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
2144
+ fillOpacity: z.ZodNumber;
2145
+ areaMarker: z.ZodBoolean;
2146
+ }, "strip", z.ZodTypeAny, {
2147
+ color: string;
2148
+ strokeOpacity: number;
2149
+ strokeWidth: number;
2150
+ strokeStyle: "solid" | "dashed" | "dotted";
2151
+ fillOpacity: number;
2152
+ areaMarker: boolean;
2153
+ }, {
2154
+ color: string;
2155
+ strokeOpacity: number;
2156
+ strokeWidth: number;
2157
+ strokeStyle: "solid" | "dashed" | "dotted";
2158
+ fillOpacity: number;
2159
+ areaMarker: boolean;
2160
+ }>;
2161
+ interface PolygonToolSettings extends zInfer<typeof PolygonToolSettingsSchema> {
2162
+ }
2163
+ declare const CircleToolSettingsSchema: z.ZodObject<{
2164
+ color: z.ZodString;
2165
+ strokeOpacity: z.ZodNumber;
2166
+ strokeWidth: z.ZodNumber;
2167
+ strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
2168
+ fillOpacity: z.ZodNumber;
2169
+ radiusMarker: z.ZodBoolean;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ color: string;
2172
+ strokeOpacity: number;
2173
+ strokeWidth: number;
2174
+ strokeStyle: "solid" | "dashed" | "dotted";
2175
+ fillOpacity: number;
2176
+ radiusMarker: boolean;
2177
+ }, {
2178
+ color: string;
2179
+ strokeOpacity: number;
2180
+ strokeWidth: number;
2181
+ strokeStyle: "solid" | "dashed" | "dotted";
2182
+ fillOpacity: number;
2183
+ radiusMarker: boolean;
2184
+ }>;
2185
+ interface CircleToolSettings extends zInfer<typeof CircleToolSettingsSchema> {
2186
+ }
2187
+ declare const MarkerToolSettingsSchema: z.ZodObject<{
2188
+ color: z.ZodString;
2189
+ opacity: z.ZodNumber;
2190
+ size: z.ZodNumber;
2191
+ }, "strip", z.ZodTypeAny, {
2192
+ color: string;
2193
+ opacity: number;
2194
+ size: number;
2195
+ }, {
2196
+ color: string;
2197
+ opacity: number;
2198
+ size: number;
2199
+ }>;
2200
+ interface MarkerToolSettings extends zInfer<typeof MarkerToolSettingsSchema> {
2201
+ }
2202
+ declare const HighlighterToolSettingsSchema: z.ZodObject<{
2203
+ color: z.ZodString;
2204
+ opacity: z.ZodNumber;
2205
+ size: z.ZodNumber;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ color: string;
2208
+ opacity: number;
2209
+ size: number;
2210
+ }, {
2211
+ color: string;
2212
+ opacity: number;
2213
+ size: number;
2214
+ }>;
2215
+ interface HighlighterToolSettings extends zInfer<typeof HighlighterToolSettingsSchema> {
2216
+ }
2217
+ declare const TextToolSettingsSchema: z.ZodObject<{
2218
+ color: z.ZodString;
2219
+ align: z.ZodEnum<["left", "center", "right"]>;
2220
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ color: string;
2223
+ align: "left" | "center" | "right";
2224
+ style: "italic" | "light" | "regular" | "caps";
2225
+ }, {
2226
+ color: string;
2227
+ align: "left" | "center" | "right";
2228
+ style: "italic" | "light" | "regular" | "caps";
2229
+ }>;
2230
+ interface TextToolSettings extends zInfer<typeof TextToolSettingsSchema> {
2231
+ }
2232
+ declare const NoteToolSettingsSchema: z.ZodObject<{
2233
+ color: z.ZodString;
2234
+ align: z.ZodEnum<["left", "center", "right"]>;
2235
+ style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
2236
+ }, "strip", z.ZodTypeAny, {
2237
+ color: string;
2238
+ align: "left" | "center" | "right";
2239
+ style: "italic" | "light" | "regular" | "caps";
2240
+ }, {
2241
+ color: string;
2242
+ align: "left" | "center" | "right";
2243
+ style: "italic" | "light" | "regular" | "caps";
2244
+ }>;
2245
+ interface NoteToolSettings extends zInfer<typeof NoteToolSettingsSchema> {
2246
+ }
2247
+ type InputToolSettings = {
2248
+ [K in ConfigurableToolType]: Partial<ToolSettingsMap[K]> & {
2249
+ tool: K;
2250
+ };
2251
+ }[ConfigurableToolType];
2252
+ type ToolSettingsChangeEvent = {
2253
+ [K in ConfigurableToolType]: ToolSettingsMap[K] & {
2254
+ tool: K;
2255
+ };
2256
+ }[ConfigurableToolType];
2257
+ type ToolSettingsMap = {
2258
+ pin: PinToolSettings;
2259
+ line: LineToolSettings;
2260
+ route: RouteToolSettings;
2261
+ polygon: PolygonToolSettings;
2262
+ circle: CircleToolSettings;
2263
+ marker: MarkerToolSettings;
2264
+ highlighter: HighlighterToolSettings;
2265
+ text: TextToolSettings;
2266
+ note: NoteToolSettings;
2267
+ };
2268
+ type PlaceFrame = "frame-circle" | "frame-square" | null;
2269
+ type PlaceSymbol = "dot" | "square" | "diamond" | "triangle" | "x" | "plus" | "circle-line" | "circle-slash" | "star" | "heart" | "hexagon" | "octagon" | "pedestrian" | "bicycle" | "wheelchair" | "airport" | "car" | "bus" | "train" | "truck" | "ferry" | "sailboat" | "electric-service" | "gas-service" | "blood-clinic" | "badge" | "traffic-light" | "traffic-cone" | "road-sign-caution" | "person" | "restroom" | "house" | "work" | "letter" | "hotel" | "factory" | "hospital" | "religious-facility" | "school" | "government" | "university" | "bank" | "landmark" | "museum" | "clothing" | "shopping" | "store" | "bar" | "pub" | "cafe" | "food" | "park" | "amusement-park" | "camping-tent" | "cabin" | "picnic" | "water-refill" | "trailhead" | "guidepost" | "viewpoint" | "camera" | "us-football" | "football" | "tennis" | "binoculars" | "swimming" | "zap" | "battery-full" | "battery-half" | "battery-low" | "boom" | "radar" | "wind-turbine" | "solar-panel" | "antenna" | "telephone-pole" | "oil-well" | "oil-barrel" | "railroad-track" | "bridge" | "lighthouse" | "lock-closed" | "lock-open" | "wifi" | "trash" | "recycle" | "tree" | "flower" | "leaf" | "fire" | "mountain" | "snowy-mountain" | "volcano" | "island" | "wave" | "hot-springs" | "water" | "lake" | "ocean" | "animal" | "bird" | "duck" | "dog" | "fish" | "beach" | "wetland" | "sun" | "moon" | "cloud" | "partial-sun" | "rain" | "lightning" | "snowflake" | "wind" | "snow" | "fog" | "sleet" | "hurricane" | "warning" | "parking" | "info" | "circle-exclamation" | "circle-triangle" | "circle-x" | "circle-plus" | (`:${string}:` & {});
2270
+
2271
+ /**
2272
+ * The input type for setting the viewport to a particular center and zoom.
2273
+ *
2274
+ * @group Types
2275
+ */
2276
+ interface ViewportCenterZoom extends zInfer<typeof ViewportCenterZoomSchema> {
2277
+ /**
2278
+ * The center of the viewport in latitude and longitude.
2279
+ */
2280
+ center: LatLng;
2281
+ /**
2282
+ * The zoom level of the viewport.
2283
+ */
2284
+ zoom: FeltZoom;
2285
+ }
2286
+ declare const ViewportCenterZoomSchema: z.ZodObject<{
2287
+ center: z.ZodObject<{
2288
+ latitude: z.ZodNumber;
2289
+ longitude: z.ZodNumber;
2290
+ }, "strip", z.ZodTypeAny, {
2291
+ latitude: number;
2292
+ longitude: number;
2293
+ }, {
2294
+ latitude: number;
2295
+ longitude: number;
2296
+ }>;
2297
+ zoom: z.ZodNumber;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ center: {
2300
+ latitude: number;
2301
+ longitude: number;
2302
+ };
2303
+ zoom: number;
2304
+ }, {
2305
+ center: {
2306
+ latitude: number;
2307
+ longitude: number;
2308
+ };
2309
+ zoom: number;
2310
+ }>;
2311
+ /**
2312
+ * The current state of the viewport, including the derived bounds.
2313
+ *
2314
+ * @group Types
2315
+ */
2316
+ interface ViewportState {
2317
+ /**
2318
+ * The center of the viewport in latitude and longitude.
2319
+ *
2320
+ * {@link LatLng}
2321
+ */
2322
+ center: LatLng;
2323
+ /**
2324
+ * The zoom level of the viewport.
2325
+ *
2326
+ * {@link FeltZoom}
2327
+ */
2328
+ zoom: FeltZoom;
2329
+ /**
2330
+ * The bounding box of the viewport.
2331
+ *
2332
+ * This is derived, and depends on the center and zoom of the viewport, as
2333
+ * well as its size.
2334
+ *
2335
+ * {@link FeltBoundary}
2336
+ */
2337
+ bounds: FeltBoundary;
2338
+ }
2339
+ /**
2340
+ * The parameters for the `setViewport` method.
2341
+ *
2342
+ * @group Types
2343
+ */
2344
+ interface SetViewportCenterZoomParams extends zInfer<typeof SetViewportCenterZoomParamsSchema> {
2345
+ }
2346
+ declare const SetViewportCenterZoomParamsSchema: z.ZodObject<{
2347
+ center: z.ZodOptional<z.ZodObject<{
2348
+ latitude: z.ZodNumber;
2349
+ longitude: z.ZodNumber;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ latitude: number;
2352
+ longitude: number;
2353
+ }, {
2354
+ latitude: number;
2355
+ longitude: number;
2356
+ }>>;
2357
+ zoom: z.ZodOptional<z.ZodNumber>;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ center?: {
2360
+ latitude: number;
2361
+ longitude: number;
2362
+ } | undefined;
2363
+ zoom?: number | undefined;
2364
+ }, {
2365
+ center?: {
2366
+ latitude: number;
2367
+ longitude: number;
2368
+ } | undefined;
2369
+ zoom?: number | undefined;
2370
+ }>;
2371
+ /**
2372
+ * The constraints for the viewport. Used to ensure that the viewport stays
2373
+ * within certain bounds and zoom levels.
2374
+ *
2375
+ * @group Types
2376
+ */
2377
+ interface ViewportConstraints {
2378
+ /**
2379
+ * The minimum zoom level for the viewport.
2380
+ *
2381
+ * {@link FeltZoom}
2382
+ */
2383
+ minZoom: FeltZoom | null;
2384
+ /**
2385
+ * The maximum zoom level for the viewport.
2386
+ *
2387
+ * {@link FeltZoom}
2388
+ */
2389
+ maxZoom: FeltZoom | null;
2390
+ /**
2391
+ * The bounds for the viewport.
2392
+ *
2393
+ * {@link FeltBoundary}
2394
+ */
2395
+ bounds: FeltBoundary | null;
2396
+ }
2397
+ /**
2398
+ * The parameters for the `fitViewportToBounds` method.
2399
+ *
2400
+ * @group Types
2401
+ */
2402
+ interface ViewportFitBoundsParams extends zInfer<typeof ViewportFitBoundsParamsSchema> {
2403
+ /**
2404
+ * The bounds to fit the viewport to.
2405
+ *
2406
+ * {@link FeltBoundary}
2407
+ */
2408
+ bounds: FeltBoundary;
2409
+ }
2410
+ declare const ViewportFitBoundsParamsSchema: z.ZodObject<{
2411
+ bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
2412
+ }, "strip", z.ZodTypeAny, {
2413
+ bounds: [number, number, number, number];
2414
+ }, {
2415
+ bounds: [number, number, number, number];
2416
+ }>;
2417
+
2418
+ export type { NoteElementUpdate as $, ViewportFitBoundsParams as A, ViewportCenterZoom as B, ConfigurableToolType as C, CircleElementCreate as D, Element as E, Filters as F, Geometry as G, CircleElementRead as H, InputToolSettings as I, CircleElementUpdate as J, HighlighterElementCreate as K, Layer as L, MapInteractionEvent as M, HighlighterElementRead as N, HighlighterElementUpdate as O, ImageElementCreate as P, ImageElementRead as Q, ImageElementUpdate as R, SetVisibilityRequest as S, ToolType as T, LinkElementRead as U, ViewportState as V, MarkerElementCreate as W, MarkerElementRead as X, MarkerElementUpdate as Y, NoteElementCreate as Z, NoteElementRead as _, GetElementsConstraint as a, PathElementCreate as a0, PathElementRead as a1, PathElementUpdate as a2, PlaceElementCreate as a3, PlaceElementRead as a4, PlaceElementUpdate as a5, PolygonElementCreate as a6, PolygonElementRead as a7, PolygonElementUpdate as a8, TextElementCreate as a9, PinToolSettings as aA, PlaceFrame as aB, PlaceSymbol as aC, PolygonToolSettings as aD, RouteToolSettings as aE, TextToolSettings as aF, UnionToIntersection as aG, PromiseOrNot as aH, TextElementRead as aa, TextElementUpdate as ab, LayerProcessingStatus as ac, RasterValue as ad, FilterExpression as ae, FilterLogicGate as af, FilterTernary as ag, ElementGroupNode as ah, ElementNode as ai, FeatureNode as aj, LayerGroupNode as ak, LayerNode as al, FeltBoundary as am, FeltZoom as an, LatLng as ao, LineStringGeometry as ap, LngLatTuple as aq, MultiLineStringGeometry as ar, MultiPolygonGeometry as as, PointGeometry as at, PolygonGeometry as au, CircleToolSettings as av, HighlighterToolSettings as aw, LineToolSettings as ax, MarkerToolSettings as ay, NoteToolSettings as az, ElementGroup as b, GetElementGroupsConstraint as c, ElementChangeCallbackParams as d, ElementGroupChangeCallbackParams as e, ElementCreate as f, ElementUpdate as g, GetLayersConstraint as h, LayerChangeCallbackParams as i, LayerGroup as j, GetLayerGroupsConstraint as k, LayerGroupChangeCallbackParams as l, LegendItemIdentifier as m, LegendItem as n, LegendItemsConstraint as o, LegendItemChangeCallbackParams as p, LayerFilters as q, GetRenderedFeaturesConstraint as r, Feature as s, EntityNode as t, FeatureSelection as u, ToolSettingsMap as v, ToolSettingsChangeEvent as w, SetViewportCenterZoomParams as x, ViewportConstraints as y, zInfer as z };