ablok-components 0.3.40 → 0.3.42

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.
Files changed (33) hide show
  1. package/dist/ablok-components.css +1 -1
  2. package/dist/ablok-components.es.js +7150 -46652
  3. package/dist/ablok-components.umd.js +4 -179
  4. package/dist/components/atoms/base-button/base-button.vue.d.ts +1 -1
  5. package/dist/components/atoms/input-file/input-file.vue.d.ts +9 -9
  6. package/dist/components/atoms/input-passcode/input-passcode.vue.d.ts +1 -1
  7. package/dist/components/atoms/zoom-slider/zoom-slider.spec.d.ts +1 -0
  8. package/dist/components/atoms/zoom-slider/zoom-slider.vue.d.ts +54 -0
  9. package/dist/components/molecules/auto-suggest/auto-suggest.vue.d.ts +9 -0
  10. package/dist/components/molecules/base-camera/base-camera.vue.d.ts +20 -0
  11. package/dist/components/molecules/base-map/base-map.spec.d.ts +1 -0
  12. package/dist/components/molecules/base-map/base-map.vue.d.ts +284 -0
  13. package/dist/components/molecules/hint-system/hint-system.vue.d.ts +1 -1
  14. package/dist/components/molecules/image-crop/image-crop.vue.d.ts +6 -10
  15. package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.d.ts +210 -2
  16. package/dist/components/molecules/image-resize/image-resize.vue.d.ts +420 -4
  17. package/dist/components/molecules/image-upload/image-upload.vue.d.ts +1 -1
  18. package/dist/components/molecules/location-list/location-list.vue.d.ts +75 -0
  19. package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.d.ts +2 -4
  20. package/dist/components/molecules/progress-steps/progress-steps.vue.d.ts +1 -1
  21. package/dist/components/molecules/upload-group/upload-group.vue.d.ts +1 -1
  22. package/dist/components/organisms/asset-uploader/asset-uploader.vue.d.ts +1 -1
  23. package/dist/components/organisms/location-finder/location-finder.spec.d.ts +1 -0
  24. package/dist/components/organisms/location-finder/location-finder.vue.d.ts +472 -0
  25. package/dist/components/templates/modal-dialog/modal-dialog.vue.d.ts +1 -1
  26. package/dist/composables/useConfetti.d.ts +1 -2
  27. package/dist/composables/useDirections.d.ts +38 -0
  28. package/dist/composables/useGeocoding.d.ts +53 -0
  29. package/dist/composables/useGeolocation.d.ts +20 -0
  30. package/dist/i18n.d.ts +21 -0
  31. package/dist/index.d.ts +9 -0
  32. package/dist/locales/en.d.ts +21 -0
  33. package/package.json +2 -1
@@ -0,0 +1,75 @@
1
+ import { PropType } from '../../../../vue/dist/vue.esm-bundler.js';
2
+ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
3
+ modelValue: {
4
+ type: null;
5
+ default: null;
6
+ };
7
+ locations: {
8
+ type: PropType<Array<any>>;
9
+ default: () => never[];
10
+ };
11
+ label: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ titleKey: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ descriptionKey: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ emptyText: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ showDistance: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ }>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
32
+ select: (...args: any[]) => void;
33
+ "update:modelValue": (...args: any[]) => void;
34
+ }, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
35
+ modelValue: {
36
+ type: null;
37
+ default: null;
38
+ };
39
+ locations: {
40
+ type: PropType<Array<any>>;
41
+ default: () => never[];
42
+ };
43
+ label: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ titleKey: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ descriptionKey: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ emptyText: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ showDistance: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ }>> & Readonly<{
64
+ onSelect?: ((...args: any[]) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
+ }>, {
67
+ label: string;
68
+ modelValue: any;
69
+ locations: any[];
70
+ titleKey: string;
71
+ descriptionKey: string;
72
+ emptyText: string;
73
+ showDistance: boolean;
74
+ }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
75
+ export default _default;
@@ -151,9 +151,7 @@ declare const _default: __VLS_WithTemplateSlots<import('../../../../vue/dist/vue
151
151
  readonly closeTimeout: number;
152
152
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
153
153
  } & import('../../../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps, "type" | "footer" | "header" | "title" | "id" | "modelValue" | "classes" | "hover" | "hoverDelay" | "closeTimeout">;
154
- $attrs: {
155
- [x: string]: unknown;
156
- };
154
+ $attrs: import('../../../../vue/dist/vue.esm-bundler.js').Attrs;
157
155
  $refs: {
158
156
  [x: string]: unknown;
159
157
  } & {
@@ -297,7 +295,7 @@ declare const _default: __VLS_WithTemplateSlots<import('../../../../vue/dist/vue
297
295
  };
298
296
  }>> & Readonly<{
299
297
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
300
- }>, "type" | "footer" | "header" | "title" | "id" | "modelValue" | "classes" | "hover" | "hoverDelay" | "closeTimeout"> & import('../../../../vue/dist/vue.esm-bundler.js').ShallowUnwrapRef<{}> & {} & import('../../../../vue/dist/vue.esm-bundler.js').ComponentCustomProperties & {} & {
298
+ }>, "type" | "footer" | "header" | "title" | "id" | "modelValue" | "classes" | "hover" | "hoverDelay" | "closeTimeout"> & {} & import('../../../../vue/dist/vue.esm-bundler.js').ComponentCustomProperties & {} & {
301
299
  $slots: {
302
300
  default?(_: {}): any;
303
301
  };
@@ -90,8 +90,8 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
90
90
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
91
91
  "onUpdate:progress"?: ((...args: any[]) => any) | undefined;
92
92
  }>, {
93
- progress: number;
94
93
  label: string;
94
+ progress: number;
95
95
  modelValue: number;
96
96
  reveal: boolean;
97
97
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -169,7 +169,7 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
169
169
  authToken: string;
170
170
  baseResponsePath: string;
171
171
  previewWidth: number;
172
- useImageUpload: boolean;
173
172
  maxImageWidth: number;
173
+ useImageUpload: boolean;
174
174
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
175
175
  export default _default;
@@ -203,8 +203,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
203
203
  authToken: string;
204
204
  baseResponsePath: string;
205
205
  previewWidth: number;
206
- useImageUpload: boolean;
207
206
  maxImageWidth: number;
207
+ useImageUpload: boolean;
208
208
  mediaTypeMap: Record<string, any>;
209
209
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
210
210
  export default _default;
@@ -0,0 +1,472 @@
1
+ import { PropType } from '../../../../vue/dist/vue.esm-bundler.js';
2
+ import { MapStylePreset } from '../../molecules/base-map/base-map.vue';
3
+ interface LocationFinderItem {
4
+ id?: string | number;
5
+ title?: string;
6
+ label?: string;
7
+ name?: string;
8
+ address?: string;
9
+ description?: string;
10
+ subtitle?: string;
11
+ lat: number | string;
12
+ lng: number | string;
13
+ distance?: number;
14
+ source?: string;
15
+ [key: string]: any;
16
+ }
17
+ export interface LocationFinderMessages {
18
+ searchLabel?: string;
19
+ searchPlaceholder?: string;
20
+ resultsLabel?: string;
21
+ emptyText?: string;
22
+ locateButtonLabel?: string;
23
+ stopTrackingLabel?: string;
24
+ mapHelperText?: string;
25
+ directionsTitle?: string;
26
+ directionsEmptyText?: string;
27
+ distanceLabel?: string;
28
+ durationLabel?: string;
29
+ loadingRoute?: string;
30
+ legendAriaLabel?: string;
31
+ legendLocations?: string;
32
+ legendSelected?: string;
33
+ legendSearchResult?: string;
34
+ userLocationLabel?: string;
35
+ pinnedLocationTitle?: string;
36
+ selectedLocationLabel?: string;
37
+ }
38
+ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
39
+ modelValue: {
40
+ type: PropType<LocationFinderItem | null>;
41
+ default: null;
42
+ };
43
+ locations: {
44
+ type: PropType<LocationFinderItem[]>;
45
+ default: () => never[];
46
+ };
47
+ center: {
48
+ type: PropType<{
49
+ lat: number;
50
+ lng: number;
51
+ } | null>;
52
+ default: null;
53
+ };
54
+ distance: {
55
+ type: PropType<number | null>;
56
+ default: null;
57
+ };
58
+ userLocation: {
59
+ type: PropType<{
60
+ lat: number;
61
+ lng: number;
62
+ } | null>;
63
+ default: null;
64
+ };
65
+ messages: {
66
+ type: PropType<LocationFinderMessages>;
67
+ default: () => {};
68
+ };
69
+ mapHeight: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ searchLabel: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ searchPlaceholder: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ resultsLabel: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ emptyText: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ locateButtonLabel: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ stopTrackingLabel: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ mapHelperText: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ enableGeocoding: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ geocodingEndpoint: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ reverseGeocodingEndpoint: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ geocodingLimit: {
114
+ type: NumberConstructor;
115
+ default: number;
116
+ };
117
+ geocodingMinQueryLength: {
118
+ type: NumberConstructor;
119
+ default: number;
120
+ };
121
+ customGeocodingFetch: null;
122
+ enableDirections: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ directionsEndpoint: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ routeProfile: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ customDirectionsFetch: null;
135
+ showDirectionsSummary: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ showDirectionsSteps: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ directionsTitle: {
144
+ type: StringConstructor;
145
+ default: string;
146
+ };
147
+ directionsEmptyText: {
148
+ type: StringConstructor;
149
+ default: string;
150
+ };
151
+ distanceLabel: {
152
+ type: StringConstructor;
153
+ default: string;
154
+ };
155
+ durationLabel: {
156
+ type: StringConstructor;
157
+ default: string;
158
+ };
159
+ routeColor: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ routeWeight: {
164
+ type: NumberConstructor;
165
+ default: number;
166
+ };
167
+ selectionRadius: {
168
+ type: NumberConstructor;
169
+ default: number;
170
+ };
171
+ selectionRadiusColor: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ selectionRadiusFillColor: {
176
+ type: StringConstructor;
177
+ default: string;
178
+ };
179
+ mapStyle: {
180
+ type: PropType<MapStylePreset>;
181
+ default: string;
182
+ };
183
+ tileLayerUrl: {
184
+ type: StringConstructor;
185
+ default: string;
186
+ };
187
+ tileLayerAttribution: {
188
+ type: StringConstructor;
189
+ default: string;
190
+ };
191
+ disabled: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ interactive: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ showSearch: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ showLegend: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ showSidebar: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ showTrackButton: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ trackUser: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ autoLocate: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ };
223
+ }>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
224
+ select: (...args: any[]) => void;
225
+ search: (...args: any[]) => void;
226
+ "update:modelValue": (...args: any[]) => void;
227
+ "update:distance": (...args: any[]) => void;
228
+ "track-user": (...args: any[]) => void;
229
+ }, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
230
+ modelValue: {
231
+ type: PropType<LocationFinderItem | null>;
232
+ default: null;
233
+ };
234
+ locations: {
235
+ type: PropType<LocationFinderItem[]>;
236
+ default: () => never[];
237
+ };
238
+ center: {
239
+ type: PropType<{
240
+ lat: number;
241
+ lng: number;
242
+ } | null>;
243
+ default: null;
244
+ };
245
+ distance: {
246
+ type: PropType<number | null>;
247
+ default: null;
248
+ };
249
+ userLocation: {
250
+ type: PropType<{
251
+ lat: number;
252
+ lng: number;
253
+ } | null>;
254
+ default: null;
255
+ };
256
+ messages: {
257
+ type: PropType<LocationFinderMessages>;
258
+ default: () => {};
259
+ };
260
+ mapHeight: {
261
+ type: StringConstructor;
262
+ default: string;
263
+ };
264
+ searchLabel: {
265
+ type: StringConstructor;
266
+ default: string;
267
+ };
268
+ searchPlaceholder: {
269
+ type: StringConstructor;
270
+ default: string;
271
+ };
272
+ resultsLabel: {
273
+ type: StringConstructor;
274
+ default: string;
275
+ };
276
+ emptyText: {
277
+ type: StringConstructor;
278
+ default: string;
279
+ };
280
+ locateButtonLabel: {
281
+ type: StringConstructor;
282
+ default: string;
283
+ };
284
+ stopTrackingLabel: {
285
+ type: StringConstructor;
286
+ default: string;
287
+ };
288
+ mapHelperText: {
289
+ type: StringConstructor;
290
+ default: string;
291
+ };
292
+ enableGeocoding: {
293
+ type: BooleanConstructor;
294
+ default: boolean;
295
+ };
296
+ geocodingEndpoint: {
297
+ type: StringConstructor;
298
+ default: string;
299
+ };
300
+ reverseGeocodingEndpoint: {
301
+ type: StringConstructor;
302
+ default: string;
303
+ };
304
+ geocodingLimit: {
305
+ type: NumberConstructor;
306
+ default: number;
307
+ };
308
+ geocodingMinQueryLength: {
309
+ type: NumberConstructor;
310
+ default: number;
311
+ };
312
+ customGeocodingFetch: null;
313
+ enableDirections: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ directionsEndpoint: {
318
+ type: StringConstructor;
319
+ default: string;
320
+ };
321
+ routeProfile: {
322
+ type: StringConstructor;
323
+ default: string;
324
+ };
325
+ customDirectionsFetch: null;
326
+ showDirectionsSummary: {
327
+ type: BooleanConstructor;
328
+ default: boolean;
329
+ };
330
+ showDirectionsSteps: {
331
+ type: BooleanConstructor;
332
+ default: boolean;
333
+ };
334
+ directionsTitle: {
335
+ type: StringConstructor;
336
+ default: string;
337
+ };
338
+ directionsEmptyText: {
339
+ type: StringConstructor;
340
+ default: string;
341
+ };
342
+ distanceLabel: {
343
+ type: StringConstructor;
344
+ default: string;
345
+ };
346
+ durationLabel: {
347
+ type: StringConstructor;
348
+ default: string;
349
+ };
350
+ routeColor: {
351
+ type: StringConstructor;
352
+ default: string;
353
+ };
354
+ routeWeight: {
355
+ type: NumberConstructor;
356
+ default: number;
357
+ };
358
+ selectionRadius: {
359
+ type: NumberConstructor;
360
+ default: number;
361
+ };
362
+ selectionRadiusColor: {
363
+ type: StringConstructor;
364
+ default: string;
365
+ };
366
+ selectionRadiusFillColor: {
367
+ type: StringConstructor;
368
+ default: string;
369
+ };
370
+ mapStyle: {
371
+ type: PropType<MapStylePreset>;
372
+ default: string;
373
+ };
374
+ tileLayerUrl: {
375
+ type: StringConstructor;
376
+ default: string;
377
+ };
378
+ tileLayerAttribution: {
379
+ type: StringConstructor;
380
+ default: string;
381
+ };
382
+ disabled: {
383
+ type: BooleanConstructor;
384
+ default: boolean;
385
+ };
386
+ interactive: {
387
+ type: BooleanConstructor;
388
+ default: boolean;
389
+ };
390
+ showSearch: {
391
+ type: BooleanConstructor;
392
+ default: boolean;
393
+ };
394
+ showLegend: {
395
+ type: BooleanConstructor;
396
+ default: boolean;
397
+ };
398
+ showSidebar: {
399
+ type: BooleanConstructor;
400
+ default: boolean;
401
+ };
402
+ showTrackButton: {
403
+ type: BooleanConstructor;
404
+ default: boolean;
405
+ };
406
+ trackUser: {
407
+ type: BooleanConstructor;
408
+ default: boolean;
409
+ };
410
+ autoLocate: {
411
+ type: BooleanConstructor;
412
+ default: boolean;
413
+ };
414
+ }>> & Readonly<{
415
+ onSelect?: ((...args: any[]) => any) | undefined;
416
+ onSearch?: ((...args: any[]) => any) | undefined;
417
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
418
+ "onUpdate:distance"?: ((...args: any[]) => any) | undefined;
419
+ "onTrack-user"?: ((...args: any[]) => any) | undefined;
420
+ }>, {
421
+ modelValue: LocationFinderItem | null;
422
+ disabled: boolean;
423
+ messages: LocationFinderMessages;
424
+ center: {
425
+ lat: number;
426
+ lng: number;
427
+ } | null;
428
+ routeColor: string;
429
+ routeWeight: number;
430
+ selectionRadius: number;
431
+ selectionRadiusColor: string;
432
+ selectionRadiusFillColor: string;
433
+ userLocation: {
434
+ lat: number;
435
+ lng: number;
436
+ } | null;
437
+ interactive: boolean;
438
+ mapStyle: MapStylePreset;
439
+ tileLayerUrl: string;
440
+ tileLayerAttribution: string;
441
+ locations: LocationFinderItem[];
442
+ emptyText: string;
443
+ distance: number | null;
444
+ searchLabel: string;
445
+ searchPlaceholder: string;
446
+ resultsLabel: string;
447
+ locateButtonLabel: string;
448
+ stopTrackingLabel: string;
449
+ mapHelperText: string;
450
+ directionsTitle: string;
451
+ directionsEmptyText: string;
452
+ distanceLabel: string;
453
+ durationLabel: string;
454
+ mapHeight: string;
455
+ enableGeocoding: boolean;
456
+ geocodingEndpoint: string;
457
+ reverseGeocodingEndpoint: string;
458
+ geocodingLimit: number;
459
+ geocodingMinQueryLength: number;
460
+ enableDirections: boolean;
461
+ directionsEndpoint: string;
462
+ routeProfile: string;
463
+ showDirectionsSummary: boolean;
464
+ showDirectionsSteps: boolean;
465
+ showSearch: boolean;
466
+ showLegend: boolean;
467
+ showSidebar: boolean;
468
+ showTrackButton: boolean;
469
+ trackUser: boolean;
470
+ autoLocate: boolean;
471
+ }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
472
+ export default _default;
@@ -82,9 +82,9 @@ declare const _default: __VLS_WithTemplateSlots<import('../../../../vue/dist/vue
82
82
  footer: boolean;
83
83
  title: string;
84
84
  modelValue: boolean;
85
- classes: string;
86
85
  modal: boolean;
87
86
  dismiss: boolean;
87
+ classes: string;
88
88
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {
89
89
  dialog: HTMLDialogElement;
90
90
  }, HTMLDialogElement>, {
@@ -1,2 +1 @@
1
- import { default as useConfetti } from 'canvas-confetti';
2
- export default useConfetti;
1
+ export declare function getConfetti(): Promise<any>;
@@ -0,0 +1,38 @@
1
+ import { ofetch } from 'ofetch';
2
+ export interface RoutePoint {
3
+ lat: number;
4
+ lng: number;
5
+ }
6
+ export interface RouteStep {
7
+ instruction: string;
8
+ name: string;
9
+ distance: number;
10
+ duration: number;
11
+ }
12
+ interface DirectionsOptions {
13
+ endpoint?: string;
14
+ profile?: string;
15
+ customFetch?: typeof ofetch | any;
16
+ }
17
+ export declare function useDirections(): {
18
+ routeCoordinates: import('../../vue/dist/vue.esm-bundler.js').Ref<[number, number][], [number, number][]>;
19
+ distanceMeters: import('../../vue/dist/vue.esm-bundler.js').Ref<number | null, number | null>;
20
+ durationSeconds: import('../../vue/dist/vue.esm-bundler.js').Ref<number | null, number | null>;
21
+ steps: import('../../vue/dist/vue.esm-bundler.js').Ref<{
22
+ instruction: string;
23
+ name: string;
24
+ distance: number;
25
+ duration: number;
26
+ }[], RouteStep[] | {
27
+ instruction: string;
28
+ name: string;
29
+ distance: number;
30
+ duration: number;
31
+ }[]>;
32
+ pending: import('../../vue/dist/vue.esm-bundler.js').Ref<boolean, boolean>;
33
+ error: import('../../vue/dist/vue.esm-bundler.js').Ref<string, string>;
34
+ hasRoute: import('../../vue/dist/vue.esm-bundler.js').ComputedRef<boolean>;
35
+ fetchRoute: (origin: RoutePoint, destination: RoutePoint, options?: DirectionsOptions) => Promise<any>;
36
+ clearRoute: () => void;
37
+ };
38
+ export {};