@@ -44,7 +44,51 @@ export function animateCache(): {
4444 */
4545 put ( key : string , value : any , isValid : boolean ) : void ;
4646} ;
47- export function AnimateCacheProvider ( ) : void ;
4847export class AnimateCacheProvider {
49- $get : ( typeof animateCache ) [ ] ;
48+ $get ( ) : {
49+ /**
50+ * Generates a unique cache key based on the node's parent and other parameters.
51+ * @param {HTMLElement } node - The DOM node to generate the cache key for.
52+ * @param {string } method - The animation method being applied.
53+ * @param {string } [addClass] - Class to add during the animation.
54+ * @param {string } [removeClass] - Class to remove during the animation.
55+ * @returns {string } - The generated cache key.
56+ */
57+ cacheKey (
58+ node : HTMLElement ,
59+ method : string ,
60+ addClass ?: string ,
61+ removeClass ?: string ,
62+ ) : string ;
63+ /**
64+ * Checks if a cached animation without a duration exists.
65+ * @param {string } key - The cache key to check.
66+ * @returns {boolean } - True if an invalid animation is cached, false otherwise.
67+ */
68+ containsCachedAnimationWithoutDuration ( key : string ) : boolean ;
69+ /**
70+ * Clears the cache.
71+ * @returns {void }
72+ */
73+ flush ( ) : void ;
74+ /**
75+ * Gets the count of a specific cache entry.
76+ * @param {string } key - The cache key to count.
77+ * @returns {number } - The count of the cache entry.
78+ */
79+ count ( key : string ) : number ;
80+ /**
81+ * Retrieves a value associated with a specific cache key.
82+ * @param {string } key - The cache key to retrieve.
83+ * @returns {any } - The value associated with the cache key.
84+ */
85+ get ( key : string ) : any ;
86+ /**
87+ * Adds or updates a cache entry.
88+ * @param {string } key - The cache key to add or update.
89+ * @param {any } value - The value to store.
90+ * @param {boolean } isValid - Whether the cache entry is valid.
91+ */
92+ put ( key : string , value : any , isValid : boolean ) : void ;
93+ } ;
5094}
0 commit comments