/** * Interface of cache */ export interface ICache { /** * Get translation */ get: (text: string, from: string, to: string) => Promise; /** * Set translation */ set: (text: string, translate: string, from: string, to: string) => Promise; /** * Clear cache */ clear: () => Promise; }