rattail 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __exportAll = (all, no_symbols) => {
7
+ let target = {};
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ return target;
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
17
+ key = keys[i];
18
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: ((k) => from[k]).bind(null, key),
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
26
+ //#endregion
27
+ export { __reExport as n, __exportAll as t };
@@ -0,0 +1,542 @@
1
+ import { v4 as uuid, v6 as uuidV6 } from "uuid";
2
+ import mitt from "mitt";
3
+ export * from "mitt";
4
+
5
+ //#region src/array/at.d.ts
6
+ declare function at<T>(arr: T[], index: number): T | undefined;
7
+ //#endregion
8
+ //#region src/array/chunk.d.ts
9
+ declare function chunk<T>(arr: T[], size?: number): T[][];
10
+ //#endregion
11
+ //#region src/array/removeItem.d.ts
12
+ declare function removeItem<T>(arr: T[], item: T): T[] | undefined;
13
+ //#endregion
14
+ //#region src/array/removeItemBy.d.ts
15
+ declare function removeItemBy<T>(arr: T[], fn: (v: T) => any): T[] | undefined;
16
+ //#endregion
17
+ //#region src/array/removeItemsBy.d.ts
18
+ declare function removeItemsBy<T>(arr: T[], fn: (v: T) => any): T[];
19
+ //#endregion
20
+ //#region src/array/toggleItem.d.ts
21
+ declare function toggleItem<T>(arr: T[], item: T): T[];
22
+ //#endregion
23
+ //#region src/array/uniq.d.ts
24
+ declare function uniq<T>(arr: T[]): T[];
25
+ //#endregion
26
+ //#region src/array/uniqBy.d.ts
27
+ declare function uniqBy<T>(arr: T[], fn: (a: T, b: T) => any): T[];
28
+ //#endregion
29
+ //#region src/array/find.d.ts
30
+ declare function find<T>(arr: T[], fn: (item: T, index: number, array: T[]) => any, from?: 'start' | 'end'): [T, number] | [null, -1];
31
+ //#endregion
32
+ //#region src/array/shuffle.d.ts
33
+ declare function shuffle<T>(arr: T[]): T[];
34
+ //#endregion
35
+ //#region src/array/removeArrayBlank.d.ts
36
+ declare function removeArrayBlank<T>(arr: (T | null | undefined)[]): T[];
37
+ //#endregion
38
+ //#region src/array/removeArrayEmpty.d.ts
39
+ declare function removeArrayEmpty<T>(arr: (T | null | undefined | '')[]): T[];
40
+ //#endregion
41
+ //#region src/array/normalizeToArray.d.ts
42
+ declare function normalizeToArray<T>(value: T | T[]): T[];
43
+ //#endregion
44
+ //#region src/array/difference.d.ts
45
+ declare function difference<T>(arr: T[], ...values: T[][]): T[];
46
+ //#endregion
47
+ //#region src/array/differenceWith.d.ts
48
+ type Fn$4<T> = (a: T, b: T) => any;
49
+ declare function differenceWith<T>(arr: T[], ...values: [...T[][], fn: Fn$4<T>]): T[];
50
+ //#endregion
51
+ //#region src/array/intersection.d.ts
52
+ declare function intersection<T>(...values: T[][]): T[];
53
+ //#endregion
54
+ //#region src/array/intersectionWith.d.ts
55
+ type Fn$3<T> = (a: T, b: T) => any;
56
+ declare function intersectionWith<T>(...values: [...T[][], fn: Fn$3<T>]): T[];
57
+ //#endregion
58
+ //#region src/array/groupBy.d.ts
59
+ type Fn$2<T, K> = (val: T) => K;
60
+ declare function groupBy<T, K extends PropertyKey>(arr: T[], fn: Fn$2<T, K>): Record<K, T[]>;
61
+ //#endregion
62
+ //#region src/array/xor.d.ts
63
+ declare function xor<T>(...values: T[][]): T[];
64
+ //#endregion
65
+ //#region src/array/xorWith.d.ts
66
+ type Fn$1<T> = (a: T, b: T) => any;
67
+ declare function xorWith<T>(...values: [...T[][], fn: Fn$1<T>]): T[];
68
+ //#endregion
69
+ //#region src/object/pick.d.ts
70
+ declare function pick<T, K extends keyof T>(object: T, keys: K[]): Pick<T, K>;
71
+ //#endregion
72
+ //#region src/object/pickBy.d.ts
73
+ declare function pickBy<T extends object>(object: T, fn: (value: any, key: keyof T) => any): Partial<T>;
74
+ //#endregion
75
+ //#region src/object/omit.d.ts
76
+ declare function omit<T extends object, K extends keyof T>(object: T, keys: K[]): Omit<T, K>;
77
+ //#endregion
78
+ //#region src/object/omitBy.d.ts
79
+ declare function omitBy<T extends object>(object: T, fn: (value: any, key: keyof T) => any): Partial<T>;
80
+ //#endregion
81
+ //#region src/object/mapObject.d.ts
82
+ declare function mapObject<K extends PropertyKey, V, NK extends PropertyKey = K, NV = V>(object: Record<K, V>, fn: (key: K, value: V) => [PropertyKey, NV] | undefined): Record<NK, NV>;
83
+ //#endregion
84
+ //#region src/object/promiseWithResolvers.d.ts
85
+ type PromiseWithResolvers<T> = {
86
+ promise: Promise<T>;
87
+ resolve: (value: T | PromiseLike<T>) => void;
88
+ reject: (reason?: any) => void;
89
+ };
90
+ declare function promiseWithResolvers<T>(): PromiseWithResolvers<T>;
91
+ //#endregion
92
+ //#region src/object/set.d.ts
93
+ declare function set<T extends object | any[]>(object: T, path: (string | number)[], value: any): void;
94
+ //#endregion
95
+ //#region src/object/objectKeys.d.ts
96
+ declare function objectKeys<T extends object>(object: T): `${keyof T & string}`[];
97
+ //#endregion
98
+ //#region src/object/objectEntries.d.ts
99
+ declare function objectEntries<T extends object>(object: T): [keyof T & string, T[keyof T & string]][];
100
+ declare namespace index_d_exports$1 {
101
+ export { mitt, uuid, uuidV6 };
102
+ }
103
+ //#endregion
104
+ //#region src/util/cancelAnimationFrame.d.ts
105
+ declare function cancelAnimationFrame(handle: number): void;
106
+ //#endregion
107
+ //#region src/util/classes.d.ts
108
+ type ClassName = string | undefined | null;
109
+ type Classes = (ClassName | [any, ClassName, ClassName?])[];
110
+ declare function classes(...classes: Classes): any[];
111
+ //#endregion
112
+ //#region src/util/copyText.d.ts
113
+ declare function copyText(value: string): void;
114
+ //#endregion
115
+ //#region src/util/createNamespaceFn.d.ts
116
+ type BEM<S extends string | undefined, N extends string, NC extends string> = S extends undefined ? NC : S extends `$--${infer CM}` ? `${N}--${CM}` : S extends `--${infer M}` ? `${NC}--${M}` : `${NC}__${S}`;
117
+ declare function createNamespaceFn<N extends string>(namespace: N): <C extends string>(name: C) => {
118
+ name: string;
119
+ n: <S extends string | undefined = undefined>(suffix?: S | undefined) => BEM<S, N, `${N}-${C}`>;
120
+ classes: typeof classes;
121
+ };
122
+ //#endregion
123
+ //#region src/util/doubleRaf.d.ts
124
+ declare function doubleRaf(): Promise<unknown>;
125
+ //#endregion
126
+ //#region src/util/getAllParentScroller.d.ts
127
+ declare function getAllParentScroller(el: HTMLElement): (HTMLElement | Window)[];
128
+ //#endregion
129
+ //#region src/util/getParentScroller.d.ts
130
+ declare function getParentScroller(el: HTMLElement): HTMLElement | Window;
131
+ //#endregion
132
+ //#region src/util/getRect.d.ts
133
+ declare function getRect(element: Element | Window): DOMRect;
134
+ //#endregion
135
+ //#region src/util/getScrollLeft.d.ts
136
+ declare function getScrollLeft(element: Element | Window): number;
137
+ //#endregion
138
+ //#region src/util/getScrollTop.d.ts
139
+ declare function getScrollTop(element: Element | Window): number;
140
+ //#endregion
141
+ //#region src/util/getStyle.d.ts
142
+ declare function getStyle(element: Element): CSSStyleDeclaration;
143
+ //#endregion
144
+ //#region src/util/inViewport.d.ts
145
+ declare function inViewport(element: HTMLElement): boolean;
146
+ //#endregion
147
+ //#region src/util/prettyJSONObject.d.ts
148
+ declare function prettyJSONObject(jsonObject: Record<string, any>): string;
149
+ //#endregion
150
+ //#region src/util/preventDefault.d.ts
151
+ declare function preventDefault(event: Event): void;
152
+ //#endregion
153
+ //#region src/util/raf.d.ts
154
+ declare function raf(): Promise<unknown>;
155
+ //#endregion
156
+ //#region src/util/requestAnimationFrame.d.ts
157
+ declare function requestAnimationFrame(fn: FrameRequestCallback): number;
158
+ //#endregion
159
+ //#region src/util/storage.d.ts
160
+ interface Storage extends globalThis.Storage {
161
+ set(key: string, value: any): void;
162
+ get(key: string): any;
163
+ remove(key: string): void;
164
+ }
165
+ declare function createStorage(storage: globalThis.Storage): Storage;
166
+ declare const sessionStorage: Storage;
167
+ declare const localStorage: Storage;
168
+ //#endregion
169
+ //#region src/util/tryParseJSON.d.ts
170
+ declare function tryParseJSON<T>(json: string): T | undefined;
171
+ //#endregion
172
+ //#region src/util/download.d.ts
173
+ declare function download(val: string | Blob | File, filename?: string): void;
174
+ //#endregion
175
+ //#region src/util/enumOf.d.ts
176
+ type ValueOf<T> = T[keyof T];
177
+ type EnumOfValue = string | number | boolean;
178
+ type EnumOfStringOrGetter = string | (() => string);
179
+ type EnumOfValueObject = {
180
+ value: EnumOfValue;
181
+ label?: EnumOfStringOrGetter;
182
+ description?: EnumOfStringOrGetter;
183
+ };
184
+ type EnumOfConfigValue = EnumOfValue | (EnumOfValueObject & Record<string, unknown>);
185
+ type EnumOfNormalizeToOption<V> = V extends {
186
+ value: unknown;
187
+ } ? V : {
188
+ value: V;
189
+ label?: EnumOfStringOrGetter;
190
+ description?: EnumOfStringOrGetter;
191
+ };
192
+ type EnumOfResolvedField<V> = V extends ((...args: any[]) => infer R) ? R : V;
193
+ type EnumOfResolvedOption<O> = O extends unknown ? { [K in keyof O]: EnumOfResolvedField<O[K]> } : never;
194
+ type EnumOfExtractOptionShape<T extends Record<string, EnumOfConfigValue>> = EnumOfResolvedOption<EnumOfNormalizeToOption<ValueOf<T>>>;
195
+ type EnumOfExtractValues<T extends object> = { [P in keyof T]: T[P] extends {
196
+ value: infer V;
197
+ } ? V : T[P] };
198
+ type EnumOfKeyForValue<T extends object, V> = { [K in keyof T]: EnumOfExtractValues<T>[K] extends V ? (V extends EnumOfExtractValues<T>[K] ? K : never) : never }[keyof T];
199
+ type EnumOfOptionForValue<T extends Record<string, EnumOfConfigValue>, Value> = Value extends infer V ? EnumOfKeyForValue<T, V> extends keyof T ? EnumOfResolvedOption<EnumOfNormalizeToOption<T[EnumOfKeyForValue<T, V>]>> : EnumOfExtractOptionShape<T> : never;
200
+ type EnumOfResultMethods<V, T extends Record<string, EnumOfConfigValue>> = {
201
+ values(): V[];
202
+ label(v: V): string;
203
+ labels(): string[];
204
+ description(v: V): string;
205
+ descriptions(): string[];
206
+ option<Value extends V>(v: Value): EnumOfOptionForValue<T, Value>;
207
+ options(): EnumOfExtractOptionShape<T>[];
208
+ };
209
+ type EnumOfResult<T extends Record<string, EnumOfConfigValue>> = EnumOfExtractValues<T> & EnumOfResultMethods<ValueOf<EnumOfExtractValues<T>>, T>;
210
+ declare function enumOf<const T extends Record<string, EnumOfConfigValue>>(config: T): EnumOfResult<T>;
211
+ type EnumOf<T extends {
212
+ values: () => any[];
213
+ }> = ReturnType<T['values']>[number];
214
+ //#endregion
215
+ //#region src/util/motion.d.ts
216
+ interface MotionOptions {
217
+ from: number;
218
+ to: number;
219
+ duration?: number;
220
+ frame?: ({
221
+ value,
222
+ done
223
+ }: {
224
+ value: number;
225
+ done: boolean;
226
+ }) => void;
227
+ timingFunction?: (v: number) => number;
228
+ onStateChange?: (state: MotionState) => void;
229
+ }
230
+ type MotionState = 'running' | 'paused' | 'pending' | 'finished';
231
+ interface Motion {
232
+ start: () => void;
233
+ pause: () => void;
234
+ reset: () => void;
235
+ getState: () => MotionState;
236
+ }
237
+ declare function motion(options: MotionOptions): Motion;
238
+ //#endregion
239
+ //#region src/util/duration.d.ts
240
+ interface DurationContext {
241
+ years(value: number): this;
242
+ months(value: number): this;
243
+ weeks(value: number): this;
244
+ days(value: number): this;
245
+ hours(value: number): this;
246
+ minutes(value: number): this;
247
+ seconds(value: number): this;
248
+ milliseconds(value: number): this;
249
+ valueOf(options?: {
250
+ milliseconds: boolean;
251
+ }): number;
252
+ }
253
+ declare function duration(): DurationContext;
254
+ //#endregion
255
+ //#region src/util/createCacheManager.d.ts
256
+ interface CreateCacheManagerOptions {
257
+ ttl?: number;
258
+ }
259
+ declare function createCacheManager<T = any>(options?: CreateCacheManagerOptions): {
260
+ has: (key: any) => boolean;
261
+ get: (key: any) => T | undefined;
262
+ set: (key: any, value: T, options?: {
263
+ ttl: number;
264
+ }) => void;
265
+ remove: (key: any) => boolean;
266
+ clear: () => void;
267
+ };
268
+ //#endregion
269
+ //#region src/util/navigation.d.ts
270
+ interface NavigationTarget {
271
+ to: string;
272
+ query?: Record<string, any>;
273
+ hash?: string;
274
+ }
275
+ declare function buildNavigationUrl(target: string | NavigationTarget): string;
276
+ declare const navigation: {
277
+ push(target: string | NavigationTarget): void;
278
+ replace(target: string | NavigationTarget): void;
279
+ open(target: string | NavigationTarget): void;
280
+ back(): void;
281
+ go(delta: number): void;
282
+ };
283
+ //#endregion
284
+ //#region src/function/call.d.ts
285
+ declare function call<P extends any[], R>(fn?: ((...arg: P) => R) | ((...arg: P) => R)[] | null, ...args: P): R | R[] | undefined;
286
+ //#endregion
287
+ //#region src/function/once.d.ts
288
+ declare function once<F extends (...args: any[]) => any>(fn: F): (this: unknown, ...args: Parameters<F>) => ReturnType<F>;
289
+ //#endregion
290
+ //#region src/function/debounce.d.ts
291
+ declare function debounce<F extends (...args: any[]) => any>(fn: F, delay?: number): (this: unknown, ...args: Parameters<F>) => void;
292
+ //#endregion
293
+ //#region src/function/throttle.d.ts
294
+ declare function throttle<F extends (...args: any[]) => any>(fn: F, delay?: number): (this: unknown, ...args: Parameters<F>) => void;
295
+ //#endregion
296
+ //#region src/function/NOOP.d.ts
297
+ declare function NOOP(): void;
298
+ //#endregion
299
+ //#region src/function/callOrReturn.d.ts
300
+ declare function callOrReturn<T, A extends any[]>(fnOrValue: T | ((...args: A) => T), ...args: A): T;
301
+ //#endregion
302
+ //#region src/general/getGlobalThis.d.ts
303
+ declare function getGlobalThis(): typeof globalThis;
304
+ //#endregion
305
+ //#region src/general/hasOwn.d.ts
306
+ declare function hasOwn<T extends object>(val: T, key: PropertyKey): key is keyof T;
307
+ //#endregion
308
+ //#region src/general/inBrowser.d.ts
309
+ declare function inBrowser(): boolean;
310
+ //#endregion
311
+ //#region src/general/inMobile.d.ts
312
+ declare function inMobile(): boolean;
313
+ //#endregion
314
+ //#region src/general/isArray.d.ts
315
+ declare function isArray(val: unknown): val is any[];
316
+ //#endregion
317
+ //#region src/general/isArrayBuffer.d.ts
318
+ declare function isArrayBuffer(val: unknown): val is ArrayBuffer;
319
+ //#endregion
320
+ //#region src/general/isBoolean.d.ts
321
+ declare function isBoolean(val: unknown): val is boolean;
322
+ //#endregion
323
+ //#region src/general/isDataView.d.ts
324
+ declare function isDataView(val: unknown): val is DataView;
325
+ //#endregion
326
+ //#region src/general/isDate.d.ts
327
+ declare function isDate(val: unknown): val is Date;
328
+ //#endregion
329
+ //#region src/general/isDOMException.d.ts
330
+ declare function isDOMException(val: unknown): val is DOMException;
331
+ //#endregion
332
+ //#region src/general/isEmpty.d.ts
333
+ declare function isEmpty(val: unknown): boolean;
334
+ //#endregion
335
+ //#region src/general/isEqual.d.ts
336
+ declare function isEqual(value: any, other: any): boolean;
337
+ //#endregion
338
+ //#region src/general/isEqualWith.d.ts
339
+ declare function isEqualWith(value: any, other: any, fn: (value: any, other: any) => any): boolean;
340
+ //#endregion
341
+ //#region src/general/isError.d.ts
342
+ declare function isError(val: unknown): val is Error;
343
+ //#endregion
344
+ //#region src/general/isFunction.d.ts
345
+ declare function isFunction(val: unknown): val is Function;
346
+ //#endregion
347
+ //#region src/general/isMap.d.ts
348
+ declare function isMap(val: unknown): val is Map<any, any>;
349
+ //#endregion
350
+ //#region src/general/isNonEmptyArray.d.ts
351
+ declare function isNonEmptyArray(val: unknown): val is any[];
352
+ //#endregion
353
+ //#region src/general/isNullish.d.ts
354
+ declare function isNullish(val: unknown): val is null | undefined;
355
+ //#endregion
356
+ //#region src/general/isNumber.d.ts
357
+ declare function isNumber(val: unknown): val is number;
358
+ //#endregion
359
+ //#region src/general/isNumeric.d.ts
360
+ declare function isNumeric(val: unknown): val is number | string;
361
+ //#endregion
362
+ //#region src/general/isObject.d.ts
363
+ declare function isObject(val: unknown): val is Record<string, any>;
364
+ //#endregion
365
+ //#region src/general/isPlainObject.d.ts
366
+ declare function isPlainObject(val: unknown): val is Record<string, any>;
367
+ //#endregion
368
+ //#region src/general/isPromise.d.ts
369
+ declare function isPromise<T = any>(val: unknown): val is Promise<T>;
370
+ //#endregion
371
+ //#region src/general/isRegExp.d.ts
372
+ declare function isRegExp(val: unknown): val is RegExp;
373
+ //#endregion
374
+ //#region src/general/isSet.d.ts
375
+ declare function isSet(val: unknown): val is Set<any>;
376
+ //#endregion
377
+ //#region src/general/isString.d.ts
378
+ declare function isString(val: unknown): val is string;
379
+ //#endregion
380
+ //#region src/general/isSymbol.d.ts
381
+ declare function isSymbol(val: unknown): val is symbol;
382
+ //#endregion
383
+ //#region src/general/isTruthy.d.ts
384
+ declare function isTruthy<T>(v: T): v is NonNullable<T>;
385
+ //#endregion
386
+ //#region src/general/isTypedArray.d.ts
387
+ declare function isTypedArray(val: unknown): val is Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
388
+ //#endregion
389
+ //#region src/general/isWeakMap.d.ts
390
+ declare function isWeakMap(val: unknown): val is WeakMap<any, any>;
391
+ //#endregion
392
+ //#region src/general/isWeakSet.d.ts
393
+ declare function isWeakSet(val: unknown): val is WeakSet<any>;
394
+ //#endregion
395
+ //#region src/general/isWindow.d.ts
396
+ declare function isWindow(val: unknown): val is Window;
397
+ //#endregion
398
+ //#region src/general/supportTouch.d.ts
399
+ declare function supportTouch(): boolean;
400
+ //#endregion
401
+ //#region src/general/toRawType.d.ts
402
+ declare function toRawType(value: unknown): string;
403
+ //#endregion
404
+ //#region src/general/toTypeString.d.ts
405
+ declare const objectToString: typeof Object.prototype.toString;
406
+ declare function toTypeString(value: unknown): string;
407
+ //#endregion
408
+ //#region src/general/isFile.d.ts
409
+ declare function isFile(val: unknown): val is File;
410
+ //#endregion
411
+ //#region src/general/isBlob.d.ts
412
+ declare function isBlob(val: unknown): val is Blob;
413
+ //#endregion
414
+ //#region src/general/isPrimitive.d.ts
415
+ declare function isPrimitive(val: unknown): boolean;
416
+ //#endregion
417
+ //#region src/general/isEmptyPlainObject.d.ts
418
+ declare function isEmptyPlainObject(val: unknown): val is Record<string, any>;
419
+ //#endregion
420
+ //#region src/general/assert.d.ts
421
+ declare function assert(condition: boolean, message: string): asserts condition;
422
+ //#endregion
423
+ //#region src/general/hasDuplicates.d.ts
424
+ declare function hasDuplicates<T>(arr: T[]): boolean;
425
+ //#endregion
426
+ //#region src/general/hasDuplicatesBy.d.ts
427
+ declare function hasDuplicatesBy<T>(arr: T[], fn: (a: T, b: T) => any): boolean;
428
+ //#endregion
429
+ //#region src/number/clamp.d.ts
430
+ declare function clamp(num: number, min: number, max: number): number;
431
+ //#endregion
432
+ //#region src/number/clampArrayRange.d.ts
433
+ declare function clampArrayRange(index: number, arr: unknown[]): number;
434
+ //#endregion
435
+ //#region src/number/delay.d.ts
436
+ declare function delay(time: number): Promise<void>;
437
+ //#endregion
438
+ //#region src/number/randomNumber.d.ts
439
+ declare function randomNumber(min?: number, max?: number): number;
440
+ //#endregion
441
+ //#region src/number/times.d.ts
442
+ declare function times<T>(num: number, fn: (index: number) => T): T[];
443
+ //#endregion
444
+ //#region src/number/toNumber.d.ts
445
+ declare function toNumber(val: number | string | boolean | undefined | null): number;
446
+ //#endregion
447
+ //#region src/number/genNumberKey.d.ts
448
+ declare function genNumberKey(): number;
449
+ //#endregion
450
+ //#region src/string/camelize.d.ts
451
+ declare function camelize(s: string): string;
452
+ //#endregion
453
+ //#region src/string/ensurePrefix.d.ts
454
+ declare function ensurePrefix(s: string, prefix: string): string;
455
+ //#endregion
456
+ //#region src/string/ensureSuffix.d.ts
457
+ declare function ensureSuffix(s: string, suffix: string): string;
458
+ //#endregion
459
+ //#region src/string/genStringKey.d.ts
460
+ declare function genStringKey(): string;
461
+ //#endregion
462
+ //#region src/string/kebabCase.d.ts
463
+ declare function kebabCase(s: string): string;
464
+ //#endregion
465
+ //#region src/string/pascalCase.d.ts
466
+ declare function pascalCase(s: string): string;
467
+ //#endregion
468
+ //#region src/string/lowerFirst.d.ts
469
+ declare function lowerFirst(s: string): string;
470
+ //#endregion
471
+ //#region src/string/upperFirst.d.ts
472
+ declare function upperFirst(s: string): string;
473
+ //#endregion
474
+ //#region src/string/randomColor.d.ts
475
+ declare function randomColor(): string;
476
+ //#endregion
477
+ //#region src/string/randomString.d.ts
478
+ declare function randomString(length?: number): string;
479
+ //#endregion
480
+ //#region src/string/slash.d.ts
481
+ declare function slash(path: string): string;
482
+ //#endregion
483
+ //#region src/collection/cloneDeep.d.ts
484
+ declare function cloneDeep<T>(value: T): T;
485
+ //#endregion
486
+ //#region src/collection/cloneDeepWith.d.ts
487
+ declare function cloneDeepWith<T>(value: T, fn: (value: any) => any): T;
488
+ //#endregion
489
+ //#region src/collection/merge.d.ts
490
+ declare function merge<T extends Record<string, any>, K extends Record<string, any>>(object: T, ...sources: K[]): T & K;
491
+ //#endregion
492
+ //#region src/collection/mergeWith.d.ts
493
+ type Fn = (objValue: any, srcValue: any, key: string | number | symbol, object?: any, source?: any) => any;
494
+ declare function mergeWith<T extends Record<string, any>, K extends Record<string, any>>(object: T, ...sources: [...K[], fn: Fn]): T & K;
495
+ //#endregion
496
+ //#region src/file/toArrayBuffer.d.ts
497
+ declare function toArrayBuffer(file: File): Promise<ArrayBuffer>;
498
+ //#endregion
499
+ //#region src/file/toDataURL.d.ts
500
+ declare function toDataURL(file: File): Promise<string>;
501
+ //#endregion
502
+ //#region src/file/toText.d.ts
503
+ declare function toText(file: File): Promise<string>;
504
+ //#endregion
505
+ //#region src/math/maxBy.d.ts
506
+ declare function maxBy<T>(arr: T[], fn: (val: T) => number): T;
507
+ //#endregion
508
+ //#region src/math/minBy.d.ts
509
+ declare function minBy<T>(arr: T[], fn: (val: T) => number): T;
510
+ //#endregion
511
+ //#region src/math/sum.d.ts
512
+ declare function sum(arr: number[]): number;
513
+ //#endregion
514
+ //#region src/math/sumBy.d.ts
515
+ declare function sumBy<T>(arr: T[], fn: (val: T) => number): number;
516
+ //#endregion
517
+ //#region src/math/sumHash.d.ts
518
+ declare function sumHash(value: any): string;
519
+ //#endregion
520
+ //#region src/math/mean.d.ts
521
+ declare function mean(arr: number[]): number;
522
+ //#endregion
523
+ //#region src/math/meanBy.d.ts
524
+ declare function meanBy<T>(arr: T[], fn: (val: T) => number): number;
525
+ //#endregion
526
+ //#region src/math/sample.d.ts
527
+ declare function sample<T>(arr: T[]): T | undefined;
528
+ //#endregion
529
+ //#region src/math/round.d.ts
530
+ declare function round(val: number, precision?: number): number;
531
+ declare function baseRound(val: number, precision: number, fn: (val: number) => number): number;
532
+ //#endregion
533
+ //#region src/math/floor.d.ts
534
+ declare function floor(val: number, precision?: number): number;
535
+ //#endregion
536
+ //#region src/math/ceil.d.ts
537
+ declare function ceil(val: number, precision?: number): number;
538
+ declare namespace index_d_exports {
539
+ export { BEM, ClassName, Classes, CreateCacheManagerOptions, DurationContext, EnumOf, EnumOfConfigValue, EnumOfExtractOptionShape, EnumOfExtractValues, EnumOfKeyForValue, EnumOfNormalizeToOption, EnumOfOptionForValue, EnumOfResolvedField, EnumOfResolvedOption, EnumOfResult, EnumOfResultMethods, EnumOfStringOrGetter, EnumOfValue, EnumOfValueObject, Motion, MotionOptions, MotionState, NOOP, NavigationTarget, PromiseWithResolvers, Storage, assert, at, baseRound, buildNavigationUrl, call, callOrReturn, camelize, cancelAnimationFrame, ceil, chunk, clamp, clampArrayRange, classes, cloneDeep, cloneDeepWith, copyText, createCacheManager, createNamespaceFn, createStorage, debounce, delay, difference, differenceWith, doubleRaf, download, duration, ensurePrefix, ensureSuffix, enumOf, find, floor, genNumberKey, genStringKey, getAllParentScroller, getGlobalThis, getParentScroller, getRect, getScrollLeft, getScrollTop, getStyle, groupBy, hasDuplicates, hasDuplicatesBy, hasOwn, inBrowser, inMobile, inViewport, intersection, intersectionWith, isArray, isArrayBuffer, isBlob, isBoolean, isDOMException, isDataView, isDate, isEmpty, isEmptyPlainObject, isEqual, isEqualWith, isError, isFile, isFunction, isMap, isNonEmptyArray, isNullish, isNumber, isNumeric, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isTruthy, isTypedArray, isWeakMap, isWeakSet, isWindow, kebabCase, localStorage, lowerFirst, mapObject, maxBy, mean, meanBy, merge, mergeWith, minBy, mitt, motion, navigation, normalizeToArray, objectEntries, objectKeys, objectToString, omit, omitBy, once, pascalCase, pick, pickBy, prettyJSONObject, preventDefault, promiseWithResolvers, raf, randomColor, randomNumber, randomString, removeArrayBlank, removeArrayEmpty, removeItem, removeItemBy, removeItemsBy, requestAnimationFrame, round, sample, sessionStorage, set, shuffle, slash, sum, sumBy, sumHash, supportTouch, throttle, times, toArrayBuffer, toDataURL, toNumber, toRawType, toText, toTypeString, toggleItem, tryParseJSON, uniq, uniqBy, upperFirst, uuid, uuidV6, xor, xorWith };
540
+ }
541
+ //#endregion
542
+ export { BEM, ClassName, Classes, CreateCacheManagerOptions, DurationContext, EnumOf, EnumOfConfigValue, EnumOfExtractOptionShape, EnumOfExtractValues, EnumOfKeyForValue, EnumOfNormalizeToOption, EnumOfOptionForValue, EnumOfResolvedField, EnumOfResolvedOption, EnumOfResult, EnumOfResultMethods, EnumOfStringOrGetter, EnumOfValue, EnumOfValueObject, Motion, MotionOptions, MotionState, NOOP, NavigationTarget, PromiseWithResolvers, Storage, assert, at, baseRound, buildNavigationUrl, call, callOrReturn, camelize, cancelAnimationFrame, ceil, chunk, clamp, clampArrayRange, classes, cloneDeep, cloneDeepWith, copyText, createCacheManager, createNamespaceFn, createStorage, debounce, delay, difference, differenceWith, doubleRaf, download, duration, ensurePrefix, ensureSuffix, enumOf, find, floor, genNumberKey, genStringKey, getAllParentScroller, getGlobalThis, getParentScroller, getRect, getScrollLeft, getScrollTop, getStyle, groupBy, hasDuplicates, hasDuplicatesBy, hasOwn, inBrowser, inMobile, inViewport, intersection, intersectionWith, isArray, isArrayBuffer, isBlob, isBoolean, isDOMException, isDataView, isDate, isEmpty, isEmptyPlainObject, isEqual, isEqualWith, isError, isFile, isFunction, isMap, isNonEmptyArray, isNullish, isNumber, isNumeric, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isTruthy, isTypedArray, isWeakMap, isWeakSet, isWindow, kebabCase, localStorage, lowerFirst, mapObject, maxBy, mean, meanBy, merge, mergeWith, minBy, mitt, motion, navigation, normalizeToArray, objectEntries, objectKeys, objectToString, omit, omitBy, once, pascalCase, pick, pickBy, prettyJSONObject, preventDefault, promiseWithResolvers, raf, randomColor, randomNumber, randomString, removeArrayBlank, removeArrayEmpty, removeItem, removeItemBy, removeItemsBy, requestAnimationFrame, round, sample, sessionStorage, set, shuffle, slash, sum, sumBy, sumHash, supportTouch, throttle, times, toArrayBuffer, toDataURL, toNumber, toRawType, toText, toTypeString, toggleItem, tryParseJSON, uniq, uniqBy, upperFirst, uuid, uuidV6, xor, xorWith };