import { getCacheStats } from "../../../cache/store.js";
async function getCacheStatsAction() {
  try {
    const stats = getCacheStats();
    return {
      totalEntries: stats.total_urls,
      sizeMb: stats.total_size_mb,
      oldest: stats.oldest,
      newest: stats.newest
    };
  } catch (err) {
    return {
      totalEntries: 0,
      sizeMb: 0,
      oldest: "",
      newest: "",
      error: err instanceof Error ? err.message : String(err)
    };
  }
}
export {
  getCacheStatsAction
};
//# sourceMappingURL=cache-stats.js.map