@baleada/logic 0.20.34 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -231,7 +231,7 @@ declare class Copyable {
231
231
  private computedResponse;
232
232
  private computedError;
233
233
  copy(options?: {
234
- type: 'clipboard' | 'deprecated';
234
+ kind: 'clipboard' | 'deprecated';
235
235
  }): Promise<this>;
236
236
  private copying;
237
237
  private copied;
@@ -276,6 +276,139 @@ declare class Delayable {
276
276
  private stopped;
277
277
  }
278
278
 
279
+ declare type DrawableState = ReturnType<typeof getStroke>;
280
+ declare type DrawableOptions = {
281
+ toD?: (stroke: DrawableState) => string;
282
+ };
283
+ declare type DrawableStatus = 'ready' | 'drawing' | 'drawn';
284
+ declare class Drawable {
285
+ private computedD;
286
+ private toD;
287
+ constructor(stroke: DrawableState, options?: DrawableOptions);
288
+ computedStatus: DrawableStatus;
289
+ private ready;
290
+ get stroke(): number[][];
291
+ set stroke(stroke: number[][]);
292
+ get status(): DrawableStatus;
293
+ get d(): string;
294
+ private computedStroke;
295
+ setStroke(stroke: DrawableState): this;
296
+ draw(points: Parameters<typeof getStroke>[0], options?: StrokeOptions): this;
297
+ private drawing;
298
+ private drawn;
299
+ }
300
+ declare function toD(stroke: number[][]): string;
301
+ declare function toFlattenedD(stroke: number[][]): string;
302
+
303
+ declare type ResolveableOptions = Record<string, never>;
304
+ declare type ResolveableGetPromise<Value> = (...args: any[]) => (Promise<Value> | Promise<Value>[]);
305
+ declare type ResolveableStatus = 'ready' | 'resolving' | 'resolved' | 'errored';
306
+ declare class Resolveable<Value> {
307
+ constructor(getPromise: ResolveableGetPromise<Value>, options?: ResolveableOptions);
308
+ private computedStatus;
309
+ private ready;
310
+ get getPromise(): (...args: any[]) => Promise<Value> | Promise<Value>[];
311
+ set getPromise(getPromise: (...args: any[]) => Promise<Value> | Promise<Value>[]);
312
+ get status(): ResolveableStatus;
313
+ get value(): Error | Value | Value[];
314
+ private computedGetPromise;
315
+ setGetPromise(getPromise: (...args: any[]) => (Promise<Value> | Promise<Value>[])): this;
316
+ private computedValue;
317
+ resolve(...args: any[]): Promise<this>;
318
+ private resolving;
319
+ private resolved;
320
+ private errored;
321
+ }
322
+
323
+ declare type FetchableOptions = Record<string, never>;
324
+ declare type FetchableStatus = 'ready' | 'fetching' | 'fetched' | 'aborted' | 'errored';
325
+ declare type FetchOptions = RequestInit | ((api: FetchOptionsApi) => RequestInit);
326
+ declare class Fetchable {
327
+ private computedArrayBuffer;
328
+ private computedBlob;
329
+ private computedFormData;
330
+ private computedJson;
331
+ private computedText;
332
+ constructor(resource: string, options?: FetchableOptions);
333
+ private computedStatus;
334
+ private ready;
335
+ get resource(): string;
336
+ set resource(resource: string);
337
+ private computedAbortController;
338
+ get abortController(): AbortController;
339
+ get status(): FetchableStatus;
340
+ get response(): Response;
341
+ get error(): Error;
342
+ get arrayBuffer(): Resolveable<ArrayBuffer> | Promise<Resolveable<ArrayBuffer>>;
343
+ get blob(): Resolveable<Blob> | Promise<Resolveable<Blob>>;
344
+ get formData(): Resolveable<FormData> | Promise<Resolveable<FormData>>;
345
+ get json(): Resolveable<any> | Promise<Resolveable<any>>;
346
+ get text(): Resolveable<string> | Promise<Resolveable<string>>;
347
+ private getUsedBody;
348
+ private computedResource;
349
+ setResource(resource: string): this;
350
+ private computedResponse;
351
+ private computedError;
352
+ fetch(options?: FetchOptions): Promise<this>;
353
+ get(options?: FetchOptions): Promise<this>;
354
+ patch(options?: FetchOptions): Promise<this>;
355
+ post(options?: FetchOptions): Promise<this>;
356
+ put(options?: FetchOptions): Promise<this>;
357
+ delete(options?: FetchOptions): Promise<this>;
358
+ abort(): this;
359
+ }
360
+ declare type FetchOptionsApi = {
361
+ withJson: (data: Record<any, any>) => {
362
+ body: string;
363
+ headers: {
364
+ 'Accept': 'application/json';
365
+ 'Content-Type': 'application/json';
366
+ };
367
+ };
368
+ };
369
+
370
+ declare type FullscreenableOptions = Record<string, never>;
371
+ declare type FullscreenableGetElement<ElementType> = ((...args: any[]) => ElementType);
372
+ declare type FullscreenableStatus = 'ready' | 'fullscreened' | 'errored' | 'exited';
373
+ declare class Fullscreenable<ElementType extends Element> {
374
+ constructor(getElement: FullscreenableGetElement<ElementType>, options?: FullscreenableOptions);
375
+ private computedStatus;
376
+ private ready;
377
+ get getElement(): (...args: any[]) => ElementType;
378
+ set getElement(getElement: (...args: any[]) => ElementType);
379
+ get status(): FullscreenableStatus;
380
+ get element(): ElementType;
381
+ get error(): Error;
382
+ private computedGetElement;
383
+ setGetElement(getElement: ((...args: any[]) => ElementType)): this;
384
+ enter(options?: FullscreenOptions): Promise<this>;
385
+ private computedError;
386
+ fullscreen(options?: FullscreenOptions): Promise<this>;
387
+ private fullscreened;
388
+ private errored;
389
+ exit(): Promise<this>;
390
+ private exited;
391
+ }
392
+
393
+ declare type GrantableOptions = Record<string, never>;
394
+ declare type GrantableStatus = 'ready' | 'querying' | 'queried' | 'errored';
395
+ declare class Grantable<DescriptorType extends PermissionDescriptor> {
396
+ constructor(descriptor: DescriptorType, options?: GrantableOptions);
397
+ private computedStatus;
398
+ private ready;
399
+ get descriptor(): DescriptorType;
400
+ set descriptor(descriptor: DescriptorType);
401
+ get permission(): Error | PermissionStatus;
402
+ get status(): GrantableStatus;
403
+ private computedDescriptor;
404
+ setDescriptor(descriptor: DescriptorType): this;
405
+ private computedPermission;
406
+ query(): Promise<this>;
407
+ private querying;
408
+ private queried;
409
+ private errored;
410
+ }
411
+
279
412
  declare type RecognizeableOptions<Type extends ListenableSupportedType, Metadata extends Record<any, any>> = {
280
413
  maxSequenceLength?: true | number;
281
414
  effectsIncludeCombos?: boolean;
@@ -430,276 +563,6 @@ declare function eventMatchesKeycombo({ event, keycombo }: {
430
563
  keycombo: ListenableKeycomboItem[];
431
564
  }): boolean;
432
565
 
433
- declare type DispatchableOptions = Record<string, never>;
434
- declare type DispatchableStatus = 'ready' | 'dispatched';
435
- declare type DispatchOptions<EventType extends ListenableSupportedEventType> = {
436
- init?: EventType extends ListenableClickcombo ? EventHandlersEventInitMap['mousedown'] : EventType extends ListenablePointercombo ? EventHandlersEventInitMap['pointerdown'] : EventType extends ListenableKeycombo ? EventHandlersEventInitMap['keydown'] : EventType extends keyof Omit<HTMLElementEventMap$1, 'resize'> ? EventHandlersEventInitMap[EventType] : EventType extends keyof Omit<DocumentEventMap, 'resize'> ? EventHandlersEventInitMap[EventType] : never;
437
- target?: Window & typeof globalThis | Document | Element;
438
- } & (EventType extends ListenableKeycombo ? {
439
- keyDirection?: 'up' | 'down';
440
- } : {});
441
- declare class Dispatchable<EventType extends ListenableSupportedEventType> {
442
- constructor(type: EventType, options?: DispatchableOptions);
443
- private computedStatus;
444
- private ready;
445
- get type(): EventType;
446
- set type(type: EventType);
447
- get cancelled(): boolean;
448
- get status(): DispatchableStatus;
449
- private computedType;
450
- setType(type: any): this;
451
- private computedCancelled;
452
- dispatch(options?: DispatchOptions<EventType>): this;
453
- private dispatched;
454
- }
455
- declare type EventHandlersEventInitMap = GlobalEventHandlersEventInitMap & DocumentAndElementEventHandlersEventInitMap & DocumentEventInitMap & HTMLElementEventMap$1;
456
- declare type HTMLElementEventMap$1 = {
457
- "fullscreenchange": EventInit;
458
- "fullscreenerror": EventInit;
459
- };
460
- declare type GlobalEventHandlersEventInitMap = {
461
- "abort": UIEventInit;
462
- "animationcancel": AnimationEventInit;
463
- "animationend": AnimationEventInit;
464
- "animationiteration": AnimationEventInit;
465
- "animationstart": AnimationEventInit;
466
- "auxclick": MouseEventInit;
467
- "beforeinput": InputEventInit;
468
- "blur": FocusEventInit;
469
- "canplay": EventInit;
470
- "canplaythrough": EventInit;
471
- "change": EventInit;
472
- "click": MouseEventInit;
473
- "close": EventInit;
474
- "compositionend": CompositionEventInit;
475
- "compositionstart": CompositionEventInit;
476
- "compositionupdate": CompositionEventInit;
477
- "contextmenu": MouseEventInit;
478
- "cuechange": EventInit;
479
- "dblclick": MouseEventInit;
480
- "drag": DragEventInit;
481
- "dragend": DragEventInit;
482
- "dragenter": DragEventInit;
483
- "dragleave": DragEventInit;
484
- "dragover": DragEventInit;
485
- "dragstart": DragEventInit;
486
- "drop": DragEventInit;
487
- "durationchange": EventInit;
488
- "emptied": EventInit;
489
- "ended": EventInit;
490
- "error": ErrorEventInit;
491
- "focus": FocusEventInit;
492
- "focusin": FocusEventInit;
493
- "focusout": FocusEventInit;
494
- "formdata": FormDataEventInit;
495
- "gotpointercapture": PointerEventInit;
496
- "input": EventInit;
497
- "invalid": EventInit;
498
- "keydown": KeyboardEventInit;
499
- "keypress": KeyboardEventInit;
500
- "keyup": KeyboardEventInit;
501
- "load": EventInit;
502
- "loadeddata": EventInit;
503
- "loadedmetadata": EventInit;
504
- "loadstart": EventInit;
505
- "lostpointercapture": PointerEventInit;
506
- "mousedown": MouseEventInit;
507
- "mouseenter": MouseEventInit;
508
- "mouseleave": MouseEventInit;
509
- "mousemove": MouseEventInit;
510
- "mouseout": MouseEventInit;
511
- "mouseover": MouseEventInit;
512
- "mouseup": MouseEventInit;
513
- "pause": EventInit;
514
- "play": EventInit;
515
- "playing": EventInit;
516
- "pointercancel": PointerEventInit;
517
- "pointerdown": PointerEventInit;
518
- "pointerenter": PointerEventInit;
519
- "pointerleave": PointerEventInit;
520
- "pointermove": PointerEventInit;
521
- "pointerout": PointerEventInit;
522
- "pointerover": PointerEventInit;
523
- "pointerup": PointerEventInit;
524
- "progress": ProgressEventInit;
525
- "ratechange": EventInit;
526
- "reset": EventInit;
527
- "resize": UIEventInit;
528
- "scroll": EventInit;
529
- "securitypolicyviolation": SecurityPolicyViolationEventInit;
530
- "seeked": EventInit;
531
- "seeking": EventInit;
532
- "select": EventInit;
533
- "selectionchange": EventInit;
534
- "selectstart": EventInit;
535
- "stalled": EventInit;
536
- "submit": EventInit;
537
- "suspend": EventInit;
538
- "timeupdate": EventInit;
539
- "toggle": EventInit;
540
- "touchcancel": TouchEventInit;
541
- "touchend": TouchEventInit;
542
- "touchmove": TouchEventInit;
543
- "touchstart": TouchEventInit;
544
- "transitioncancel": TransitionEventInit;
545
- "transitionend": TransitionEventInit;
546
- "transitionrun": TransitionEventInit;
547
- "transitionstart": TransitionEventInit;
548
- "volumechange": EventInit;
549
- "waiting": EventInit;
550
- "webkitanimationend": EventInit;
551
- "webkitanimationiteration": EventInit;
552
- "webkitanimationstart": EventInit;
553
- "webkittransitionend": EventInit;
554
- "wheel": WheelEventInit;
555
- };
556
- declare type DocumentAndElementEventHandlersEventInitMap = {
557
- "copy": ClipboardEventInit;
558
- "cut": ClipboardEventInit;
559
- "paste": ClipboardEventInit;
560
- };
561
- declare type DocumentEventInitMap = {
562
- "fullscreenchange": EventInit;
563
- "fullscreenerror": EventInit;
564
- "pointerlockchange": EventInit;
565
- "pointerlockerror": EventInit;
566
- "readystatechange": EventInit;
567
- "visibilitychange": EventInit;
568
- };
569
-
570
- declare type DrawableState = ReturnType<typeof getStroke>;
571
- declare type DrawableOptions = {
572
- toD?: (stroke: DrawableState) => string;
573
- };
574
- declare type DrawableStatus = 'ready' | 'drawing' | 'drawn';
575
- declare class Drawable {
576
- private computedD;
577
- private toD;
578
- constructor(stroke: DrawableState, options?: DrawableOptions);
579
- computedStatus: DrawableStatus;
580
- private ready;
581
- get stroke(): number[][];
582
- set stroke(stroke: number[][]);
583
- get status(): DrawableStatus;
584
- get d(): string;
585
- private computedStroke;
586
- setStroke(stroke: DrawableState): this;
587
- draw(points: Parameters<typeof getStroke>[0], options?: StrokeOptions): this;
588
- private drawing;
589
- private drawn;
590
- }
591
- declare function toD(stroke: number[][]): string;
592
- declare function toFlattenedD(stroke: number[][]): string;
593
-
594
- declare type ResolveableOptions = Record<string, never>;
595
- declare type ResolveableGetPromise<Value> = (...args: any[]) => (Promise<Value> | Promise<Value>[]);
596
- declare type ResolveableStatus = 'ready' | 'resolving' | 'resolved' | 'errored';
597
- declare class Resolveable<Value> {
598
- constructor(getPromise: ResolveableGetPromise<Value>, options?: ResolveableOptions);
599
- private computedStatus;
600
- private ready;
601
- get getPromise(): (...args: any[]) => Promise<Value> | Promise<Value>[];
602
- set getPromise(getPromise: (...args: any[]) => Promise<Value> | Promise<Value>[]);
603
- get status(): ResolveableStatus;
604
- get value(): Error | Value | Value[];
605
- private computedGetPromise;
606
- setGetPromise(getPromise: (...args: any[]) => (Promise<Value> | Promise<Value>[])): this;
607
- private computedValue;
608
- resolve(...args: any[]): Promise<this>;
609
- private resolving;
610
- private resolved;
611
- private errored;
612
- }
613
-
614
- declare type FetchableOptions = Record<string, never>;
615
- declare type FetchableStatus = 'ready' | 'fetching' | 'fetched' | 'aborted' | 'errored';
616
- declare type FetchOptions = RequestInit | ((api: FetchOptionsApi) => RequestInit);
617
- declare class Fetchable {
618
- private computedArrayBuffer;
619
- private computedBlob;
620
- private computedFormData;
621
- private computedJson;
622
- private computedText;
623
- constructor(resource: string, options?: FetchableOptions);
624
- private computedStatus;
625
- private ready;
626
- get resource(): string;
627
- set resource(resource: string);
628
- private computedAbortController;
629
- get abortController(): AbortController;
630
- get status(): FetchableStatus;
631
- get response(): Response;
632
- get error(): Error;
633
- get arrayBuffer(): Resolveable<ArrayBuffer> | Promise<Resolveable<ArrayBuffer>>;
634
- get blob(): Resolveable<Blob> | Promise<Resolveable<Blob>>;
635
- get formData(): Resolveable<FormData> | Promise<Resolveable<FormData>>;
636
- get json(): Resolveable<any> | Promise<Resolveable<any>>;
637
- get text(): Resolveable<string> | Promise<Resolveable<string>>;
638
- private getUsedBody;
639
- private computedResource;
640
- setResource(resource: string): this;
641
- private computedResponse;
642
- private computedError;
643
- fetch(options?: FetchOptions): Promise<this>;
644
- get(options?: FetchOptions): Promise<this>;
645
- patch(options?: FetchOptions): Promise<this>;
646
- post(options?: FetchOptions): Promise<this>;
647
- put(options?: FetchOptions): Promise<this>;
648
- delete(options?: FetchOptions): Promise<this>;
649
- abort(): this;
650
- }
651
- declare type FetchOptionsApi = {
652
- withJson: (data: Record<any, any>) => {
653
- body: string;
654
- headers: {
655
- 'Accept': 'application/json';
656
- 'Content-Type': 'application/json';
657
- };
658
- };
659
- };
660
-
661
- declare type FullscreenableOptions = Record<string, never>;
662
- declare type FullscreenableGetElement<ElementType> = ((...args: any[]) => ElementType);
663
- declare type FullscreenableStatus = 'ready' | 'fullscreened' | 'errored' | 'exited';
664
- declare class Fullscreenable<ElementType extends Element> {
665
- constructor(getElement: FullscreenableGetElement<ElementType>, options?: FullscreenableOptions);
666
- private computedStatus;
667
- private ready;
668
- get getElement(): (...args: any[]) => ElementType;
669
- set getElement(getElement: (...args: any[]) => ElementType);
670
- get status(): FullscreenableStatus;
671
- get element(): ElementType;
672
- get error(): Error;
673
- private computedGetElement;
674
- setGetElement(getElement: ((...args: any[]) => ElementType)): this;
675
- enter(options?: FullscreenOptions): Promise<this>;
676
- private computedError;
677
- fullscreen(options?: FullscreenOptions): Promise<this>;
678
- private fullscreened;
679
- private errored;
680
- exit(): Promise<this>;
681
- private exited;
682
- }
683
-
684
- declare type GrantableOptions = Record<string, never>;
685
- declare type GrantableStatus = 'ready' | 'querying' | 'queried' | 'errored';
686
- declare class Grantable<DescriptorType extends PermissionDescriptor> {
687
- constructor(descriptor: DescriptorType, options?: GrantableOptions);
688
- private computedStatus;
689
- private ready;
690
- get descriptor(): DescriptorType;
691
- set descriptor(descriptor: DescriptorType);
692
- get permission(): Error | PermissionStatus;
693
- get status(): GrantableStatus;
694
- private computedDescriptor;
695
- setDescriptor(descriptor: DescriptorType): this;
696
- private computedPermission;
697
- query(): Promise<this>;
698
- private querying;
699
- private queried;
700
- private errored;
701
- }
702
-
703
566
  declare type NavigateableOptions = {
704
567
  initialLocation?: number;
705
568
  };
@@ -744,6 +607,10 @@ declare type PickableOptions = {
744
607
  initialPicks?: number | number[];
745
608
  };
746
609
  declare type PickableStatus = 'ready' | 'picked' | 'omitted';
610
+ declare type PickOptions = {
611
+ replace?: 'none' | 'all' | 'fifo' | 'lifo';
612
+ allowsDuplicates?: boolean;
613
+ };
747
614
  declare class Pickable<Item> {
748
615
  constructor(array: Item[], options?: PickableOptions);
749
616
  private computedStatus;
@@ -767,11 +634,11 @@ declare class Pickable<Item> {
767
634
  private toPossiblePicks;
768
635
  setArray(array: Item[]): this;
769
636
  setPicks(indexOrIndices: number | number[]): this;
770
- pick(indexOrIndices: number | number[], options?: {
771
- replace?: 'none' | 'all' | 'fifo' | 'lifo';
772
- }): this;
637
+ pick(indexOrIndices: number | number[], options?: PickOptions): this;
773
638
  private picked;
774
- omit(indexOrIndices?: number | number[]): this;
639
+ omit(indexOrIndices?: number | number[], options?: {
640
+ reference?: 'array' | 'picks';
641
+ }): this;
775
642
  private omitted;
776
643
  }
777
644
 
@@ -814,12 +681,12 @@ declare class Searchable<Item extends string | object> {
814
681
  }
815
682
 
816
683
  declare type StoreableOptions = {
817
- type?: 'local' | 'session';
684
+ kind?: 'local' | 'session';
818
685
  statusKeySuffix?: string;
819
686
  };
820
687
  declare type StoreableStatus = 'ready' | 'constructing' | 'stored' | 'errored' | 'removed';
821
688
  declare class Storeable {
822
- private type;
689
+ private kind;
823
690
  private statusKeySuffix;
824
691
  constructor(key: string, options?: StoreableOptions);
825
692
  private constructing;
@@ -852,37 +719,16 @@ declare function createForEachAsync<Item>(forEach: (item?: Item, index?: number)
852
719
  declare function createMapAsync<Item, Mapped>(transform: (item?: Item, index?: number) => Promise<Mapped>): ArrayFunctionAsync<Item, Mapped[]>;
853
720
  declare function createFilterAsync<Item>(condition: (item?: Item, index?: number) => Promise<boolean>): ArrayFunctionAsync<Item, Item[]>;
854
721
  declare type ArrayFunction<Item, Returned> = (array: Item[]) => Returned;
855
- declare function createDelete<Item>(required: {
856
- index: number;
857
- } | {
858
- item: Item;
859
- }): ArrayFunction<Item, Item[]>;
860
- declare function createInsert<Item>(required: ({
861
- item: Item;
862
- } | {
863
- items: Item[];
864
- }) & {
865
- index: number;
866
- }): ArrayFunction<Item, Item[]>;
867
- declare function createReorder<Item>({ from, to }: {
868
- from: {
869
- start: number;
870
- itemCount: number;
871
- } | number;
872
- to: number;
873
- }): ArrayFunction<Item, Item[]>;
874
- declare function createSwap<Item>({ indices }: {
875
- indices: [number, number];
876
- }): ArrayFunction<Item, Item[]>;
877
- declare function createReplace<Item>({ index, item }: {
878
- index: number;
879
- item: Item;
880
- }): ArrayFunction<Item, Item[]>;
722
+ declare function createDelete<Item>(index: number): ArrayFunction<Item, Item[]>;
723
+ declare function createInsert<Item>(item: Item, index: number): ArrayFunction<Item, Item[]>;
724
+ declare function createReorder<Item>(from: {
725
+ start: number;
726
+ itemCount: number;
727
+ } | number, to: number): ArrayFunction<Item, Item[]>;
728
+ declare function createSwap<Item>(indices: [number, number]): ArrayFunction<Item, Item[]>;
729
+ declare function createReplace<Item>(index: number, item: Item): ArrayFunction<Item, Item[]>;
881
730
  declare function createUnique<Item>(): ArrayFunction<Item, Item[]>;
882
- declare function createSlice<Item>({ from, to }: {
883
- from: number;
884
- to?: number;
885
- }): ArrayFunction<Item, Item[]>;
731
+ declare function createSlice<Item>(from: number, to?: number): ArrayFunction<Item, Item[]>;
886
732
  declare function createFilter<Item>(condition: (item?: Item, index?: number) => boolean): ArrayFunction<Item, Item[]>;
887
733
  declare function createMap<Item, Transformed = Item>(transform: (item?: Item, index?: number) => Transformed): ArrayFunction<Item, Transformed[]>;
888
734
  declare function createConcat<Item>(...arrays: Item[][]): ArrayFunction<Item, Item[]>;
@@ -892,20 +738,14 @@ declare type StringFunction<Returned> = (string: string) => Returned;
892
738
  declare function createSlug(options?: Options): StringFunction<string>;
893
739
  declare function createClip(required: string | RegExp): StringFunction<string>;
894
740
  declare type NumberFunction<Returned> = (number: number) => Returned;
895
- declare function createClamp({ min, max }: {
896
- min: number;
897
- max: number;
898
- }): NumberFunction<number>;
741
+ declare function createClamp(min: number, max: number): NumberFunction<number>;
899
742
  declare type Potentiality<Outcome> = {
900
743
  outcome: Outcome;
901
744
  probability: number;
902
745
  };
903
746
  declare function createDetermine<Outcome>(potentialities: Potentiality<Outcome>[]): NumberFunction<Outcome>;
904
747
  declare type MapFunction<Key, Value, Returned> = (transform: Map<Key, Value>) => Returned;
905
- declare function createRename<Key, Value>({ from, to }: {
906
- from: Key;
907
- to: Key;
908
- }): MapFunction<Key, Value, Map<Key, Value>>;
748
+ declare function createRename<Key, Value>(from: Key, to: Key): MapFunction<Key, Value, Map<Key, Value>>;
909
749
  declare type ObjectFunction<Key extends string | number | symbol, Value, Returned> = (transform: Record<Key, Value>) => Returned;
910
750
  declare function createToEntries<Key extends string | number | symbol, Value>(): ObjectFunction<Key, Value, [Key, Value][]>;
911
751
  declare class Pipeable {
@@ -915,4 +755,4 @@ declare class Pipeable {
915
755
  pipeAsync(...fns: ((...args: any[]) => Promise<any>)[]): Promise<any>;
916
756
  }
917
757
 
918
- export { AnimateFrame, AnimateFrameEffect, AnimateOptions, Animateable, AnimateableKeyframe, AnimateableOptions, AnimateableStatus, ArrayFunction, ArrayFunctionAsync, CompleteOptions, Completeable, CompleteableOptions, CompleteableStatus, Copyable, CopyableOptions, CopyableStatus, Delayable, DelayableEffect, DelayableOptions, DelayableStatus, DispatchOptions, Dispatchable, DispatchableOptions, DispatchableStatus, Drawable, DrawableOptions, DrawableState, DrawableStatus, FetchOptions, FetchOptionsApi, Fetchable, FetchableOptions, FetchableStatus, Fullscreenable, FullscreenableGetElement, FullscreenableOptions, FullscreenableStatus, Grantable, GrantableOptions, GrantableStatus, ListenEffect, ListenEffectParam, ListenOptions, Listenable, ListenableActive, ListenableClickcombo, ListenableKeycombo, ListenableKeycomboItem, ListenableOptions, ListenablePointercombo, ListenableStatus, ListenableSupportedEventType, ListenableSupportedType, MapFunction, Navigateable, NavigateableOptions, NavigateableStatus, NumberFunction, ObjectFunction, Pickable, PickableOptions, PickableStatus, Pipeable, RecognizeOptions, Recognizeable, RecognizeableEffectApi, RecognizeableOptions, RecognizeableStatus, Resolveable, ResolveableGetPromise, ResolveableOptions, ResolveableStatus, Sanitizeable, SanitizeableOptions, SanitizeableStatus, Searchable, SearchableOptions, SearchableStatus, Storeable, StoreableOptions, StoreableStatus, StringFunction, createClamp, createClip, createConcat, createDelete, createDetermine, createFilter, createFilterAsync, createForEachAsync, createInsert, createMap, createMapAsync, createReduce, createReduceAsync, createRename, createReorder, createReplace, createReverse, createSlice, createSlug, createSort, createSwap, createToEntries, createUnique, easingsNetInBack, easingsNetInCirc, easingsNetInCubic, easingsNetInExpo, easingsNetInOutBack, easingsNetInOutCirc, easingsNetInOutCubic, easingsNetInOutExpo, easingsNetInOutQuad, easingsNetInOutQuint, easingsNetInOutSine, easingsNetInQuad, easingsNetInQuart, easingsNetInQuint, easingsNetInSine, easingsNetOutBack, easingsNetOutCirc, easingsNetOutCubic, easingsNetOutExpo, easingsNetOutQuad, easingsNetOutQuint, easingsNetOutSine, ensureKeycombo, eventMatchesKeycombo, linear, materialAccelerated, materialDecelerated, materialStandard, toD, toFlattenedD, verouEase, verouEaseIn, verouEaseInOut, verouEaseOut };
758
+ export { AnimateFrame, AnimateFrameEffect, AnimateOptions, Animateable, AnimateableKeyframe, AnimateableOptions, AnimateableStatus, ArrayFunction, ArrayFunctionAsync, CompleteOptions, Completeable, CompleteableOptions, CompleteableStatus, Copyable, CopyableOptions, CopyableStatus, Delayable, DelayableEffect, DelayableOptions, DelayableStatus, Drawable, DrawableOptions, DrawableState, DrawableStatus, FetchOptions, FetchOptionsApi, Fetchable, FetchableOptions, FetchableStatus, Fullscreenable, FullscreenableGetElement, FullscreenableOptions, FullscreenableStatus, Grantable, GrantableOptions, GrantableStatus, ListenEffect, ListenEffectParam, ListenOptions, Listenable, ListenableActive, ListenableClickcombo, ListenableKeycombo, ListenableKeycomboItem, ListenableOptions, ListenablePointercombo, ListenableStatus, ListenableSupportedEventType, ListenableSupportedType, MapFunction, Navigateable, NavigateableOptions, NavigateableStatus, NumberFunction, ObjectFunction, Pickable, PickableOptions, PickableStatus, Pipeable, RecognizeOptions, Recognizeable, RecognizeableEffectApi, RecognizeableOptions, RecognizeableStatus, Resolveable, ResolveableGetPromise, ResolveableOptions, ResolveableStatus, Sanitizeable, SanitizeableOptions, SanitizeableStatus, Searchable, SearchableOptions, SearchableStatus, Storeable, StoreableOptions, StoreableStatus, StringFunction, createClamp, createClip, createConcat, createDelete, createDetermine, createFilter, createFilterAsync, createForEachAsync, createInsert, createMap, createMapAsync, createReduce, createReduceAsync, createRename, createReorder, createReplace, createReverse, createSlice, createSlug, createSort, createSwap, createToEntries, createUnique, easingsNetInBack, easingsNetInCirc, easingsNetInCubic, easingsNetInExpo, easingsNetInOutBack, easingsNetInOutCirc, easingsNetInOutCubic, easingsNetInOutExpo, easingsNetInOutQuad, easingsNetInOutQuint, easingsNetInOutSine, easingsNetInQuad, easingsNetInQuart, easingsNetInQuint, easingsNetInSine, easingsNetOutBack, easingsNetOutCirc, easingsNetOutCubic, easingsNetOutExpo, easingsNetOutQuad, easingsNetOutQuint, easingsNetOutSine, ensureKeycombo, eventMatchesKeycombo, linear, materialAccelerated, materialDecelerated, materialStandard, toD, toFlattenedD, verouEase, verouEaseIn, verouEaseInOut, verouEaseOut };