/** * @name useGarbageCollection * @author Fajar Rizky Hidayat */ interface GarbageProps { key: string; ttl?: number; periodTime?: number; periodically?: boolean; } type UseGarbageCollection = { cache: any; has: (key: string) => boolean; add: (value: any,key?: string) => void; clear:(key?: string) => void; get: (key: string) => any; }; export default function useGarbageCollection( props: GarbageProps ): UseGarbageCollection;