tiny-essentials 1.28.1 → 1.28.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.
Files changed (218) hide show
  1. package/changelog/1/28/2.md +43 -0
  2. package/changelog/1/28/3.md +9 -0
  3. package/dist/_/numbers.d.mts +91 -16
  4. package/dist/v1/TinyBasicsEs.min.js +1 -1
  5. package/dist/v1/TinyEssentials.min.js +1 -1
  6. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  7. package/dist/v1/TinyRadioFm.min.js +1 -1
  8. package/dist/v1/basics/array.d.mts +14 -14
  9. package/dist/v1/basics/clock.cjs +15 -15
  10. package/dist/v1/basics/clock.d.mts +21 -21
  11. package/dist/v1/basics/clock.mjs +15 -15
  12. package/dist/v1/basics/collision.d.mts +245 -104
  13. package/dist/v1/basics/deprecated/html.d.mts +33 -33
  14. package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
  15. package/dist/v1/basics/fullScreen.d.mts +47 -7
  16. package/dist/v1/basics/html.d.mts +52 -61
  17. package/dist/v1/basics/index.cjs +2 -0
  18. package/dist/v1/basics/index.d.mts +11 -67
  19. package/dist/v1/basics/index.mjs +2 -2
  20. package/dist/v1/basics/mediaContent.cjs +65 -23
  21. package/dist/v1/basics/mediaContent.d.mts +144 -73
  22. package/dist/v1/basics/mediaContent.mjs +65 -23
  23. package/dist/v1/basics/objChecker.d.mts +2 -2
  24. package/dist/v1/basics/objFilter.cjs +50 -16
  25. package/dist/v1/basics/objFilter.d.mts +34 -13
  26. package/dist/v1/basics/objFilter.mjs +48 -16
  27. package/dist/v1/basics/simpleMath.d.mts +21 -21
  28. package/dist/v1/basics/text.d.mts +34 -46
  29. package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
  30. package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
  31. package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
  32. package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
  33. package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
  34. package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
  35. package/dist/v1/build/TinyClassManager.d.mts +1 -1
  36. package/dist/v1/build/TinyClipboard.d.mts +1 -1
  37. package/dist/v1/build/TinyColorConverter.d.mts +1 -1
  38. package/dist/v1/build/TinyColorValidator.d.mts +1 -1
  39. package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
  40. package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
  41. package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
  42. package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
  43. package/dist/v1/build/TinyDragger.d.mts +1 -1
  44. package/dist/v1/build/TinyElementObserver.d.mts +1 -1
  45. package/dist/v1/build/TinyGamepad.d.mts +1 -1
  46. package/dist/v1/build/TinyHtml.d.mts +1 -1
  47. package/dist/v1/build/TinyI18.d.mts +1 -1
  48. package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
  49. package/dist/v1/build/TinyInventory.d.mts +1 -1
  50. package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
  51. package/dist/v1/build/TinyLevelUp.d.mts +1 -1
  52. package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
  53. package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
  54. package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
  55. package/dist/v1/build/TinyNeedBar.d.mts +1 -1
  56. package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
  57. package/dist/v1/build/TinyNotifications.d.mts +1 -1
  58. package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
  59. package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
  60. package/dist/v1/build/TinyRadioFm.d.mts +1 -1
  61. package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
  62. package/dist/v1/build/TinySimpleDice.d.mts +1 -1
  63. package/dist/v1/build/TinySmartScroller.d.mts +1 -1
  64. package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
  65. package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
  66. package/dist/v1/build/TinyTextarea.d.mts +1 -1
  67. package/dist/v1/build/TinyTimeout.d.mts +1 -1
  68. package/dist/v1/build/TinyToastNotify.d.mts +1 -1
  69. package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
  70. package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
  71. package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
  72. package/dist/v1/fileManager/index.d.mts +3 -29
  73. package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
  74. package/dist/v1/index.cjs +2 -0
  75. package/dist/v1/index.d.mts +53 -139
  76. package/dist/v1/index.mjs +2 -2
  77. package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
  78. package/dist/v1/libs/TinyAdvancedRaffle.d.mts +60 -103
  79. package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +11 -18
  80. package/dist/v1/libs/TinyAnalogClock.d.mts +8 -11
  81. package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
  82. package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
  83. package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
  84. package/dist/v1/libs/TinyClassManager.cjs +5 -7
  85. package/dist/v1/libs/TinyClassManager.d.mts +16 -16
  86. package/dist/v1/libs/TinyClassManager.mjs +5 -6
  87. package/dist/v1/libs/TinyClipboard.d.mts +8 -3
  88. package/dist/v1/libs/TinyColorConverter.d.mts +8 -31
  89. package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
  90. package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
  91. package/dist/v1/libs/TinyDayNightCycle.d.mts +85 -110
  92. package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
  93. package/dist/v1/libs/TinyDragDropDetector.d.mts +30 -30
  94. package/dist/v1/libs/TinyDragger.d.mts +82 -81
  95. package/dist/v1/libs/TinyElementObserver.d.mts +25 -28
  96. package/dist/v1/libs/TinyGamepad.cjs +0 -1
  97. package/dist/v1/libs/TinyGamepad.d.mts +50 -122
  98. package/dist/v1/libs/TinyGamepad.mjs +0 -1
  99. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
  100. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
  101. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
  102. package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
  103. package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
  104. package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
  105. package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
  106. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
  107. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
  108. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
  109. package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
  110. package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
  111. package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
  112. package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
  113. package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
  114. package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
  115. package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
  116. package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
  117. package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
  118. package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
  119. package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
  120. package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
  121. package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
  122. package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
  123. package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
  124. package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
  125. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
  126. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
  127. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
  128. package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
  129. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
  130. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
  131. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
  132. package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
  133. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
  134. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
  135. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
  136. package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
  137. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
  138. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
  139. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
  140. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
  141. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
  142. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
  143. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
  144. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
  145. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
  146. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
  147. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
  148. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
  149. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
  150. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
  151. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
  152. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
  153. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
  154. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
  155. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
  156. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
  157. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
  158. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
  159. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
  160. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
  161. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
  162. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
  163. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
  164. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
  165. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
  166. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
  167. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
  168. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
  169. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
  170. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
  171. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
  172. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
  173. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
  174. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
  175. package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
  176. package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
  177. package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
  178. package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
  179. package/dist/v1/libs/TinyHtml.cjs +3 -4
  180. package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
  181. package/dist/v1/libs/TinyHtml.mjs +3 -4
  182. package/dist/v1/libs/TinyI18.d.mts +23 -61
  183. package/dist/v1/libs/TinyIframeEvents.cjs +1 -1
  184. package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
  185. package/dist/v1/libs/TinyIframeEvents.mjs +1 -1
  186. package/dist/v1/libs/TinyInventory.d.mts +78 -141
  187. package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
  188. package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
  189. package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
  190. package/dist/v1/libs/TinyLocalStorage.d.mts +11 -36
  191. package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
  192. package/dist/v1/libs/TinyMediaPlayer.cjs +5 -3
  193. package/dist/v1/libs/TinyMediaPlayer.d.mts +102 -109
  194. package/dist/v1/libs/TinyMediaPlayer.mjs +5 -3
  195. package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
  196. package/dist/v1/libs/TinyNewWinEvents.d.mts +29 -32
  197. package/dist/v1/libs/TinyNotifications.d.mts +6 -6
  198. package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -21
  199. package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
  200. package/dist/v1/libs/TinyRadioFm.cjs +32 -12
  201. package/dist/v1/libs/TinyRadioFm.d.mts +44 -80
  202. package/dist/v1/libs/TinyRadioFm.mjs +29 -12
  203. package/dist/v1/libs/TinyRateLimiter.d.mts +26 -39
  204. package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
  205. package/dist/v1/libs/TinySmartScroller.d.mts +50 -60
  206. package/dist/v1/libs/TinyTextDiffer.d.mts +11 -14
  207. package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
  208. package/dist/v1/libs/TinyTextarea.d.mts +31 -31
  209. package/dist/v1/libs/TinyTimeout.d.mts +14 -14
  210. package/dist/v1/libs/TinyToastNotify.cjs +1 -1
  211. package/dist/v1/libs/TinyToastNotify.d.mts +15 -23
  212. package/dist/v1/libs/TinyToastNotify.mjs +1 -1
  213. package/dist/v1/libs/TinyUploadClicker.d.mts +38 -14
  214. package/dist/v1/libs/UltraRandomMsgGen.d.mts +44 -84
  215. package/dist/v1/libs/utils.d.mts +5 -1
  216. package/docs/v1/basics/deprecated/objFilter.md +14 -0
  217. package/docs/v1/basics/objFilter.md +31 -17
  218. package/package.json +2 -2
@@ -1,12 +1,4 @@
1
- export default TinyAfterScrollWatcher;
2
- /**
3
- * - Function with no arguments and no return value
4
- */
5
1
  export type FnData = (() => void);
6
- /**
7
- * A function that handles a scroll event.
8
- * It receives a standard `Event` object when a scroll occurs.
9
- */
10
2
  export type OnScrollFunc = (ev: Event) => void;
11
3
  /**
12
4
  * @typedef {(() => void)} FnData - Function with no arguments and no return value
@@ -23,6 +15,11 @@ export type OnScrollFunc = (ev: Event) => void;
23
15
  * @template {Element|Window} ScrollElement
24
16
  */
25
17
  declare class TinyAfterScrollWatcher<ScrollElement extends Element | Window> {
18
+ #private;
19
+ lastScrollTime: number | undefined;
20
+ get scrollTarget(): ScrollElement;
21
+ get afterScrollQueueSize(): number;
22
+ get destroyed(): boolean;
26
23
  /**
27
24
  * @param {ScrollElement} scrollTarget - The element or window to track scrolling on
28
25
  * @param {number} [inactivityTime=100] - Time in milliseconds to wait after scroll ends before executing the queue
@@ -30,13 +27,15 @@ declare class TinyAfterScrollWatcher<ScrollElement extends Element | Window> {
30
27
  * @throws {TypeError} If inactivityTime is not a positive number
31
28
  */
32
29
  constructor(scrollTarget: ScrollElement, inactivityTime?: number);
33
- get scrollTarget(): ScrollElement;
34
- get afterScrollQueueSize(): number;
35
- get destroyed(): boolean;
36
30
  /**
37
31
  * @private
38
32
  */
39
33
  private _checkTimer;
34
+ /**
35
+ * Gets the current inactivity time in milliseconds.
36
+ * @returns {number}
37
+ */
38
+ get inactivityTime(): number;
40
39
  /**
41
40
  * Sets a new inactivity time.
42
41
  * Must be a positive number (in milliseconds).
@@ -44,11 +43,6 @@ declare class TinyAfterScrollWatcher<ScrollElement extends Element | Window> {
44
43
  * @throws {Error} If value is not a positive number
45
44
  */
46
45
  set inactivityTime(value: number);
47
- /**
48
- * Gets the current inactivity time in milliseconds.
49
- * @returns {number}
50
- */
51
- get inactivityTime(): number;
52
46
  /**
53
47
  * Adds a function to be executed after scroll has stopped.
54
48
  * The scroll is considered "stopped" after the configured inactivity time.
@@ -57,7 +51,6 @@ declare class TinyAfterScrollWatcher<ScrollElement extends Element | Window> {
57
51
  * @throws {TypeError} If the argument is not a function.
58
52
  */
59
53
  doAfterScroll(fn: () => void): void;
60
- lastScrollTime: number | undefined;
61
54
  /**
62
55
  * Registers a function to run once after scrolling has stopped,
63
56
  * before any afterScrollQueue functions.
@@ -91,6 +84,6 @@ declare class TinyAfterScrollWatcher<ScrollElement extends Element | Window> {
91
84
  * Destroys the watcher by removing internal listeners and clearing data.
92
85
  */
93
86
  destroy(): void;
94
- #private;
95
87
  }
88
+ export default TinyAfterScrollWatcher;
96
89
  //# sourceMappingURL=TinyAfterScrollWatcher.d.mts.map
@@ -1,7 +1,3 @@
1
- export default TinyAnalogClock;
2
- /**
3
- * Configuration object for the Analog Clock.
4
- */
5
1
  export type ClockConfig = {
6
2
  /**
7
3
  * - The background color of the clock face (e.g., '#ffffff', 'rgb(0,0,0)').
@@ -104,12 +100,7 @@ export type ClockConfig = {
104
100
  * @property {number} phM - Minute tick height as a percentage of clock size (0.0 to 1.0).
105
101
  */
106
102
  declare class TinyAnalogClock {
107
- /**
108
- * Creates an instance of TinyAnalogClock.
109
- * Initializes the DOM structure and starts the animation loop.
110
- * @param {Partial<ClockConfig>} [options] - Optional configuration overrides.
111
- */
112
- constructor(options?: Partial<ClockConfig>);
103
+ #private;
113
104
  /**
114
105
  * Gets the current destruction status of the instance.
115
106
  *
@@ -122,6 +113,12 @@ declare class TinyAnalogClock {
122
113
  * @private
123
114
  */
124
115
  private _getDate;
116
+ /**
117
+ * Creates an instance of TinyAnalogClock.
118
+ * Initializes the DOM structure and starts the animation loop.
119
+ * @param {Partial<ClockConfig>} [options] - Optional configuration overrides.
120
+ */
121
+ constructor(options?: Partial<ClockConfig>);
125
122
  /**
126
123
  * Applies the current configuration to the DOM elements (colors, sizes, visibility).
127
124
  * @private
@@ -343,6 +340,6 @@ declare class TinyAnalogClock {
343
340
  * @returns {void}
344
341
  */
345
342
  destroy(): void;
346
- #private;
347
343
  }
344
+ export default TinyAnalogClock;
348
345
  //# sourceMappingURL=TinyAnalogClock.d.mts.map
@@ -1,8 +1,8 @@
1
- export default TinyArrayComparator;
2
1
  /**
3
- * Holds the internal tracking variables during the comparison process.
2
+ * @fileoverview Array comparison utility.
3
+ * @module TinyArrayComparator
4
4
  */
5
- export type InternalState<ArrayItem extends unknown> = {
5
+ export type InternalState<ArrayItem extends any> = {
6
6
  /**
7
7
  * - A map storing the hash as the key and the original item as the value.
8
8
  */
@@ -12,17 +12,10 @@ export type InternalState<ArrayItem extends unknown> = {
12
12
  */
13
13
  affectedItems: AffectedItems<ArrayItem>;
14
14
  };
15
- /**
16
- * The final array that collects added or deleted items.
17
- */
18
- export type AffectedItems<ArrayItem extends unknown> = Array<{
15
+ export type AffectedItems<ArrayItem extends any> = Array<{
19
16
  item: ArrayItem;
20
- status: "added" | "deleted";
17
+ status: 'added' | 'deleted';
21
18
  }>;
22
- /**
23
- * @fileoverview Array comparison utility.
24
- * @module TinyArrayComparator
25
- */
26
19
  /**
27
20
  * @template {any} ArrayItem
28
21
  * @typedef {Object} InternalState
@@ -39,7 +32,8 @@ export type AffectedItems<ArrayItem extends unknown> = Array<{
39
32
  * Compares two arrays efficiently by hashing their items to detect additions and deletions.
40
33
  * @template {any} ArrayItem
41
34
  */
42
- declare class TinyArrayComparator<ArrayItem extends unknown> {
35
+ declare class TinyArrayComparator<ArrayItem extends any> {
36
+ #private;
43
37
  /**
44
38
  * Generates a simple 32-bit integer hash converted to a base36 string.
45
39
  * @param {any} item - The item to be hashed (can be an object, array, string, or number).
@@ -47,10 +41,10 @@ declare class TinyArrayComparator<ArrayItem extends unknown> {
47
41
  */
48
42
  static generateHash(item: any): string;
49
43
  /**
50
- * Initializes the comparator with an optional base array.
51
- * @param {ArrayItem[]} [oldArray] - The initial state of the array to be stored.
44
+ * Gets the current base array used for comparisons.
45
+ * @returns {ArrayItem[]} The current initial state of the array.
52
46
  */
53
- constructor(oldArray?: ArrayItem[]);
47
+ get oldArray(): ArrayItem[];
54
48
  /**
55
49
  * Sets a new base array for future comparisons.
56
50
  * @param {ArrayItem[]} oldArray - The initial state of the array.
@@ -58,10 +52,10 @@ declare class TinyArrayComparator<ArrayItem extends unknown> {
58
52
  */
59
53
  set oldArray(oldArray: ArrayItem[]);
60
54
  /**
61
- * Gets the current base array used for comparisons.
62
- * @returns {ArrayItem[]} The current initial state of the array.
55
+ * Initializes the comparator with an optional base array.
56
+ * @param {ArrayItem[]} [oldArray] - The initial state of the array to be stored.
63
57
  */
64
- get oldArray(): ArrayItem[];
58
+ constructor(oldArray?: ArrayItem[]);
65
59
  /**
66
60
  * Proxy to generates a hash converted to a string.
67
61
  * @param {ArrayItem} item - The item to be hashed (can be an object, array, string, or number).
@@ -77,6 +71,6 @@ declare class TinyArrayComparator<ArrayItem extends unknown> {
77
71
  * @throws {TypeError} Throws an error if the provided value is not an array.
78
72
  */
79
73
  compare(newArray: ArrayItem[]): AffectedItems<ArrayItem>;
80
- #private;
81
74
  }
75
+ export default TinyArrayComparator;
82
76
  //# sourceMappingURL=TinyArrayComparator.d.mts.map
@@ -1,10 +1,16 @@
1
- export default TinyArrayPaginator;
2
1
  /**
3
2
  * A predicate function used to determine whether an item should be included in the filtered results.
4
3
  * Works similarly to the callback function of `Array.prototype.filter`.
4
+ *
5
+ * @template {any} ArrayItem
6
+ * @callback GetFilter
7
+ * @param {ArrayItem} value - The current element being processed in the array.
8
+ * @param {number} index - The index of the current element within the array.
9
+ * @param {ArrayItem[]} array - The full array being processed.
10
+ * @returns {boolean} Returns `true` to include the element in the results, or `false` to exclude it.
5
11
  */
6
- export type GetFilter<ArrayItem extends unknown> = (value: ArrayItem, index: number, array: ArrayItem[]) => boolean;
7
- export type GetterResult<ArrayItem extends unknown> = {
12
+ export type GetFilter<ArrayItem extends any> = (value: ArrayItem, index: number, array: ArrayItem[]) => boolean;
13
+ export type GetterResult<ArrayItem extends any> = {
8
14
  /**
9
15
  * - The subset of items for the requested page.
10
16
  */
@@ -34,17 +40,6 @@ export type GetterResult<ArrayItem extends unknown> = {
34
40
  */
35
41
  hasNext: boolean;
36
42
  };
37
- /**
38
- * A predicate function used to determine whether an item should be included in the filtered results.
39
- * Works similarly to the callback function of `Array.prototype.filter`.
40
- *
41
- * @template {any} ArrayItem
42
- * @callback GetFilter
43
- * @param {ArrayItem} value - The current element being processed in the array.
44
- * @param {number} index - The index of the current element within the array.
45
- * @param {ArrayItem[]} array - The full array being processed.
46
- * @returns {boolean} Returns `true` to include the element in the results, or `false` to exclude it.
47
- */
48
43
  /**
49
44
  * @template {any} ArrayItem
50
45
  * @typedef {Object} GetterResult
@@ -62,29 +57,30 @@ export type GetterResult<ArrayItem extends unknown> = {
62
57
  * while keeping the source array safe from direct modifications.
63
58
  * @template {any} ArrayItem
64
59
  */
65
- declare class TinyArrayPaginator<ArrayItem extends unknown> {
60
+ declare class TinyArrayPaginator<ArrayItem extends any> {
61
+ #private;
66
62
  /**
67
- * Creates a new paginator instance for the given data array.
68
- * @param {ArrayItem[]|Set<ArrayItem>} data - The array to be paginated.
69
- * @throws {TypeError} If the provided data is not an array.
63
+ * Gets current stored array.
64
+ * @returns {ArrayItem[]|Set<ArrayItem>}
70
65
  */
71
- constructor(data: ArrayItem[] | Set<ArrayItem>);
66
+ get data(): ArrayItem[] | Set<ArrayItem>;
72
67
  /**
73
68
  * Replaces the current data array.
74
69
  * @param {ArrayItem[]|Set<ArrayItem>} value - The new array to be used as the data source.
75
70
  * @throws {TypeError} If the provided value is not an array.
76
71
  */
77
72
  set data(value: ArrayItem[] | Set<ArrayItem>);
78
- /**
79
- * Gets current stored array.
80
- * @returns {ArrayItem[]|Set<ArrayItem>}
81
- */
82
- get data(): ArrayItem[] | Set<ArrayItem>;
83
73
  /**
84
74
  * Gets the total number of items in the current data array.
85
75
  * @returns {number} Total number of stored items.
86
76
  */
87
77
  get size(): number;
78
+ /**
79
+ * Creates a new paginator instance for the given data array.
80
+ * @param {ArrayItem[]|Set<ArrayItem>} data - The array to be paginated.
81
+ * @throws {TypeError} If the provided data is not an array.
82
+ */
83
+ constructor(data: ArrayItem[] | Set<ArrayItem>);
88
84
  /**
89
85
  * Filters data according to a search query and returns paginated results.
90
86
  * @param {Object} settings
@@ -98,8 +94,8 @@ declare class TinyArrayPaginator<ArrayItem extends unknown> {
98
94
  get({ page, perPage, filter }: {
99
95
  page: number;
100
96
  perPage: number;
101
- filter?: Record<string, RegExp | ArrayItem> | GetFilter<ArrayItem> | undefined;
97
+ filter?: Record<string, ArrayItem | RegExp> | GetFilter<ArrayItem>;
102
98
  }): GetterResult<ArrayItem>;
103
- #private;
104
99
  }
100
+ export default TinyArrayPaginator;
105
101
  //# sourceMappingURL=TinyArrayPaginator.d.mts.map
@@ -1,4 +1,3 @@
1
- export default TinyPluginInliner;
2
1
  export type RootReplacement = {
3
2
  /**
4
3
  * - The directory name to replace (e.g., 'src').
@@ -25,7 +24,7 @@ export type InlinerConfig = {
25
24
  /**
26
25
  * - Optional customization to remap project import roots.
27
26
  */
28
- rootReplacement?: RootReplacement | undefined;
27
+ rootReplacement?: RootReplacement;
29
28
  };
30
29
  /**
31
30
  * @typedef {Object} RootReplacement
@@ -40,12 +39,6 @@ export type InlinerConfig = {
40
39
  * @property {RootReplacement} [rootReplacement] - Optional customization to remap project import roots.
41
40
  */
42
41
  declare class TinyPluginInliner {
43
- /**
44
- * Creates an instance of the TinyPluginInliner.
45
- *
46
- * @param {InlinerConfig} config - The configuration object for the build process.
47
- */
48
- constructor(config: InlinerConfig);
49
42
  config: InlinerConfig;
50
43
  entryFile: string;
51
44
  outDir: string;
@@ -53,6 +46,12 @@ declare class TinyPluginInliner {
53
46
  entryDir: string;
54
47
  hoistedImports: Set<any>;
55
48
  hoistedTypedefs: Set<any>;
49
+ /**
50
+ * Creates an instance of the TinyPluginInliner.
51
+ *
52
+ * @param {InlinerConfig} config - The configuration object for the build process.
53
+ */
54
+ constructor(config: InlinerConfig);
56
55
  /**
57
56
  * Rewrites all import paths (both standard and inside JSDocs) in a given code string.
58
57
  * Handles local path root replacements and NPM package absolute path conversion.
@@ -89,4 +88,5 @@ declare class TinyPluginInliner {
89
88
  */
90
89
  build(): Promise<void>;
91
90
  }
91
+ export default TinyPluginInliner;
92
92
  //# sourceMappingURL=TinyPluginInliner.d.mts.map
@@ -9,7 +9,7 @@
9
9
  * @typedef {Object} PluginDefinition
10
10
  * @property {string} name - The unique identifier for the plugin.
11
11
  * @property {string[]} [dependencies] - Array of plugin names required before applying this one.
12
- * @property {function(TBase, AppliedPluginClasses): TExtended} apply - Function that receives the base class and returns the extended class.
12
+ * @property {(Base: TBase, classes: AppliedPluginClasses) => TExtended} apply - Function that receives the base class and returns the extended class.
13
13
  */
14
14
 
15
15
  /**
@@ -18,8 +18,6 @@
18
18
  * @template {T|NewTinyClass} oldT
19
19
  */
20
20
  class TinyClassManager {
21
- /** @typedef {[...oldT[], T]} AppliedPluginClasses */
22
-
23
21
  /**
24
22
  * @type {Set<string>}
25
23
  * Tracks the names of successfully applied plugins to prevent duplication and check dependencies.
@@ -36,7 +34,7 @@ class TinyClassManager {
36
34
  }
37
35
 
38
36
  /**
39
- * @type {AppliedPluginClasses}
37
+ * @type {[...oldT[], T]}
40
38
  * Tracks the classes of successfully applied plugins to prevent duplication and check dependencies.
41
39
  */
42
40
  // @ts-ignore
@@ -44,7 +42,7 @@ class TinyClassManager {
44
42
 
45
43
  /**
46
44
  * Gets the list of plugin classes currently applied to this instance.
47
- * @returns {AppliedPluginClasses} Array of applied plugin classes.
45
+ * @returns {[...oldT[], T]} Array of applied plugin classes.
48
46
  */
49
47
  get appliedPluginClasses() {
50
48
  if (this.#used) throw new Error(`[TinyClassManager] Cannot get a consumed manager instance.`);
@@ -140,7 +138,7 @@ class TinyClassManager {
140
138
  * Applies a plugin to the class chain using a definition object.
141
139
  * @deprecated Use {@link insert} instead.
142
140
  * @template {NewTinyClass} R
143
- * @param {PluginDefinition<T, R, AppliedPluginClasses>} plugin - The plugin module to be integrated.
141
+ * @param {PluginDefinition<T, R, [...oldT[], T]>} plugin - The plugin module to be integrated.
144
142
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
145
143
  * @throws {Error} Throws if instance is already consumed, plugin is duplicate, or dependencies are missing.
146
144
  */
@@ -164,7 +162,7 @@ class TinyClassManager {
164
162
  * Inserts a plugin directly by passing its apply function.
165
163
  * It reads `_tinyDepName` and `_tinyDeps` statically from the returned class.
166
164
  * @template {NewTinyClass} R
167
- * @param {function(T, AppliedPluginClasses): R} applyFn - Function that receives the base class and returns the extended class.
165
+ * @param {(ClassItem: T, classes: [...oldT[], T]) => R} applyFn - Function that receives the base class and returns the extended class.
168
166
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
169
167
  * @throws {Error} Throws if static properties are missing, instance is consumed, or validation fails.
170
168
  */
@@ -1,4 +1,4 @@
1
- export default TinyClassManager;
1
+ /** @typedef {new (...args: any[]) => any} NewTinyClass */
2
2
  export type NewTinyClass = new (...args: any[]) => any;
3
3
  export type PluginDefinition<TBase extends NewTinyClass, TExtended extends NewTinyClass, AppliedPluginClasses extends NewTinyClass[]> = {
4
4
  /**
@@ -8,13 +8,12 @@ export type PluginDefinition<TBase extends NewTinyClass, TExtended extends NewTi
8
8
  /**
9
9
  * - Array of plugin names required before applying this one.
10
10
  */
11
- dependencies?: string[] | undefined;
11
+ dependencies?: string[];
12
12
  /**
13
13
  * - Function that receives the base class and returns the extended class.
14
14
  */
15
- apply: (arg0: TBase, arg1: AppliedPluginClasses) => TExtended;
15
+ apply: (Base: TBase, classes: AppliedPluginClasses) => TExtended;
16
16
  };
17
- /** @typedef {new (...args: any[]) => any} NewTinyClass */
18
17
  /**
19
18
  * @template {NewTinyClass} TBase
20
19
  * @template {NewTinyClass} TExtended
@@ -22,7 +21,7 @@ export type PluginDefinition<TBase extends NewTinyClass, TExtended extends NewTi
22
21
  * @typedef {Object} PluginDefinition
23
22
  * @property {string} name - The unique identifier for the plugin.
24
23
  * @property {string[]} [dependencies] - Array of plugin names required before applying this one.
25
- * @property {function(TBase, AppliedPluginClasses): TExtended} apply - Function that receives the base class and returns the extended class.
24
+ * @property {(Base: TBase, classes: AppliedPluginClasses) => TExtended} apply - Function that receives the base class and returns the extended class.
26
25
  */
27
26
  /**
28
27
  * Manages the composition of a base class with multiple optional plugins (Mixins).
@@ -30,12 +29,7 @@ export type PluginDefinition<TBase extends NewTinyClass, TExtended extends NewTi
30
29
  * @template {T|NewTinyClass} oldT
31
30
  */
32
31
  declare class TinyClassManager<T extends NewTinyClass, oldT extends T | NewTinyClass> {
33
- /**
34
- * Initializes the manager with a core class.
35
- * @param {T} coreClass - The foundational class to be extended.
36
- * @param {oldT[]} [oldClasses=[]]
37
- */
38
- constructor(coreClass: T, oldClasses?: oldT[]);
32
+ #private;
39
33
  /**
40
34
  * Gets the list of plugins currently applied to this instance.
41
35
  * @returns {string[]} Array of applied plugin names.
@@ -43,7 +37,7 @@ declare class TinyClassManager<T extends NewTinyClass, oldT extends T | NewTinyC
43
37
  get appliedPlugins(): string[];
44
38
  /**
45
39
  * Gets the list of plugin classes currently applied to this instance.
46
- * @returns {AppliedPluginClasses} Array of applied plugin classes.
40
+ * @returns {[...oldT[], T]} Array of applied plugin classes.
47
41
  */
48
42
  get appliedPluginClasses(): [...oldT[], T];
49
43
  /**
@@ -59,11 +53,17 @@ declare class TinyClassManager<T extends NewTinyClass, oldT extends T | NewTinyC
59
53
  * Protects the instance from being consumed or reused after transition.
60
54
  */
61
55
  get used(): boolean;
56
+ /**
57
+ * Initializes the manager with a core class.
58
+ * @param {T} coreClass - The foundational class to be extended.
59
+ * @param {oldT[]} [oldClasses=[]]
60
+ */
61
+ constructor(coreClass: T, oldClasses?: oldT[]);
62
62
  /**
63
63
  * Applies a plugin to the class chain using a definition object.
64
64
  * @deprecated Use {@link insert} instead.
65
65
  * @template {NewTinyClass} R
66
- * @param {PluginDefinition<T, R, AppliedPluginClasses>} plugin - The plugin module to be integrated.
66
+ * @param {PluginDefinition<T, R, [...oldT[], T]>} plugin - The plugin module to be integrated.
67
67
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
68
68
  * @throws {Error} Throws if instance is already consumed, plugin is duplicate, or dependencies are missing.
69
69
  */
@@ -72,17 +72,17 @@ declare class TinyClassManager<T extends NewTinyClass, oldT extends T | NewTinyC
72
72
  * Inserts a plugin directly by passing its apply function.
73
73
  * It reads `_tinyDepName` and `_tinyDeps` statically from the returned class.
74
74
  * @template {NewTinyClass} R
75
- * @param {function(T, AppliedPluginClasses): R} applyFn - Function that receives the base class and returns the extended class.
75
+ * @param {(ClassItem: T, classes: [...oldT[], T]) => R} applyFn - Function that receives the base class and returns the extended class.
76
76
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
77
77
  * @throws {Error} Throws if static properties are missing, instance is consumed, or validation fails.
78
78
  */
79
- insert<R extends NewTinyClass>(applyFn: (arg0: T, arg1: [...oldT[], T]) => R): TinyClassManager<R, T | oldT>;
79
+ insert<R extends NewTinyClass>(applyFn: (ClassItem: T, classes: [...oldT[], T]) => R): TinyClassManager<R, T | oldT>;
80
80
  /**
81
81
  * Finalizes the composition and returns the fully built class.
82
82
  * @returns {T} The final class representing the last extended version in the chain.
83
83
  * @throws {Error} Throws if the manager instance has already been used or finalized.
84
84
  */
85
85
  build(): T;
86
- #private;
87
86
  }
87
+ export default TinyClassManager;
88
88
  //# sourceMappingURL=TinyClassManager.d.mts.map
@@ -6,7 +6,7 @@
6
6
  * @typedef {Object} PluginDefinition
7
7
  * @property {string} name - The unique identifier for the plugin.
8
8
  * @property {string[]} [dependencies] - Array of plugin names required before applying this one.
9
- * @property {function(TBase, AppliedPluginClasses): TExtended} apply - Function that receives the base class and returns the extended class.
9
+ * @property {(Base: TBase, classes: AppliedPluginClasses) => TExtended} apply - Function that receives the base class and returns the extended class.
10
10
  */
11
11
  /**
12
12
  * Manages the composition of a base class with multiple optional plugins (Mixins).
@@ -14,7 +14,6 @@
14
14
  * @template {T|NewTinyClass} oldT
15
15
  */
16
16
  class TinyClassManager {
17
- /** @typedef {[...oldT[], T]} AppliedPluginClasses */
18
17
  /**
19
18
  * @type {Set<string>}
20
19
  * Tracks the names of successfully applied plugins to prevent duplication and check dependencies.
@@ -30,14 +29,14 @@ class TinyClassManager {
30
29
  return [...this.#appliedPlugins];
31
30
  }
32
31
  /**
33
- * @type {AppliedPluginClasses}
32
+ * @type {[...oldT[], T]}
34
33
  * Tracks the classes of successfully applied plugins to prevent duplication and check dependencies.
35
34
  */
36
35
  // @ts-ignore
37
36
  #appliedPluginClasses = [];
38
37
  /**
39
38
  * Gets the list of plugin classes currently applied to this instance.
40
- * @returns {AppliedPluginClasses} Array of applied plugin classes.
39
+ * @returns {[...oldT[], T]} Array of applied plugin classes.
41
40
  */
42
41
  get appliedPluginClasses() {
43
42
  if (this.#used)
@@ -120,7 +119,7 @@ class TinyClassManager {
120
119
  * Applies a plugin to the class chain using a definition object.
121
120
  * @deprecated Use {@link insert} instead.
122
121
  * @template {NewTinyClass} R
123
- * @param {PluginDefinition<T, R, AppliedPluginClasses>} plugin - The plugin module to be integrated.
122
+ * @param {PluginDefinition<T, R, [...oldT[], T]>} plugin - The plugin module to be integrated.
124
123
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
125
124
  * @throws {Error} Throws if instance is already consumed, plugin is duplicate, or dependencies are missing.
126
125
  */
@@ -141,7 +140,7 @@ class TinyClassManager {
141
140
  * Inserts a plugin directly by passing its apply function.
142
141
  * It reads `_tinyDepName` and `_tinyDeps` statically from the returned class.
143
142
  * @template {NewTinyClass} R
144
- * @param {function(T, AppliedPluginClasses): R} applyFn - Function that receives the base class and returns the extended class.
143
+ * @param {(ClassItem: T, classes: [...oldT[], T]) => R} applyFn - Function that receives the base class and returns the extended class.
145
144
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
146
145
  * @throws {Error} Throws if static properties are missing, instance is consumed, or validation fails.
147
146
  */
@@ -1,9 +1,14 @@
1
- export default TinyClipboard;
2
1
  /**
3
2
  * Utility class to handle clipboard operations for text and blob data.
4
3
  * Supports modern Clipboard API, custom platform, and legacy execCommand fallback.
5
4
  */
6
5
  declare class TinyClipboard {
6
+ #private;
7
+ /**
8
+ * Constructs a new TinyClipboard instance.
9
+ * Automatically detects and configures available clipboard APIs.
10
+ */
11
+ constructor();
7
12
  /**
8
13
  * Override the default text copy behavior.
9
14
  * This allows you to provide your own clipboard implementation or
@@ -102,7 +107,7 @@ declare class TinyClipboard {
102
107
  * @param {string|null} [mimeFormat=null] - The MIME type or prefix to match.
103
108
  * @returns {Promise<Array<Blob|string>>} A promise resolving with matching data array.
104
109
  */
105
- readAllData(type?: "text" | "custom" | null, mimeFormat?: string | null): Promise<Array<Blob | string>>;
110
+ readAllData(type?: 'text' | 'custom' | null, mimeFormat?: string | null): Promise<Array<Blob | string>>;
106
111
  /**
107
112
  * Read clipboard data at a specific index or all if null.
108
113
  *
@@ -152,6 +157,6 @@ declare class TinyClipboard {
152
157
  * @returns {((blob: Blob) => Promise<void>) | null} The current blob copy function or null if unavailable.
153
158
  */
154
159
  getCopyBlobFunc(): ((blob: Blob) => Promise<void>) | null;
155
- #private;
156
160
  }
161
+ export default TinyClipboard;
157
162
  //# sourceMappingURL=TinyClipboard.d.mts.map
@@ -1,32 +1,19 @@
1
- export default TinyColorConverter;
2
1
  /**
3
2
  * Represents a color in RGBA format.
4
3
  * Each element must be a number between 0 and 255.
5
4
  * The fourth value represents the alpha (transparency) channel.
5
+ *
6
+ * @typedef {number[]} RgbaColor
7
+ * @property {number} 0 - Red component (0–255)
8
+ * @property {number} 1 - Green component (0–255)
9
+ * @property {number} 2 - Blue component (0–255)
10
+ * @property {number} 3 - Alpha component (0–255)
6
11
  */
7
12
  export type RgbaColor = number[];
8
- /**
9
- * Represents a color in RGB format.
10
- * Each element must be a number between 0 and 255.
11
- */
12
13
  export type RgbColor = number[];
13
- /**
14
- * Represents a color in HSLA format.
15
- * The fourth value represents the alpha (transparency) channel.
16
- */
17
14
  export type HslaColor = number[];
18
- /**
19
- * Represents a color in HSL format.
20
- */
21
15
  export type HslColor = number[];
22
- /**
23
- * Represents a hex color.
24
- */
25
16
  export type HexColor = string;
26
- /**
27
- * A union type representing various accepted color formats.
28
- * Can be a hex color string, a numeric value, or an array-based RGB/RGBA representation.
29
- */
30
17
  export type ColorTypes = HexColor | number | RgbColor | RgbaColor;
31
18
  export type RgbaResult = {
32
19
  /**
@@ -80,17 +67,6 @@ export type HslResult = {
80
67
  */
81
68
  l: number;
82
69
  };
83
- /**
84
- * Represents a color in RGBA format.
85
- * Each element must be a number between 0 and 255.
86
- * The fourth value represents the alpha (transparency) channel.
87
- *
88
- * @typedef {number[]} RgbaColor
89
- * @property {number} 0 - Red component (0–255)
90
- * @property {number} 1 - Green component (0–255)
91
- * @property {number} 2 - Blue component (0–255)
92
- * @property {number} 3 - Alpha component (0–255)
93
- */
94
70
  /**
95
71
  * Represents a color in RGB format.
96
72
  * Each element must be a number between 0 and 255.
@@ -156,6 +132,7 @@ export type HslResult = {
156
132
  * A class that allows converting colors between all common formats.
157
133
  */
158
134
  declare class TinyColorConverter {
135
+ #private;
159
136
  /**
160
137
  * Generates a smooth gradient of colors based on sine wave patterns.
161
138
  *
@@ -392,6 +369,6 @@ declare class TinyColorConverter {
392
369
  * @returns {ColorTypes}
393
370
  */
394
371
  getOriginal(): ColorTypes;
395
- #private;
396
372
  }
373
+ export default TinyColorConverter;
397
374
  //# sourceMappingURL=TinyColorConverter.d.mts.map