import type { CacheStats } from "./research-cache.js"; import type { StoredResultData } from "./storage.js"; export interface PurgeExpiredResult { removed: number; remaining: number; saved: boolean; } export interface DispatchDeps { getCacheStats: () => CacheStats; clearCache: () => boolean | void; purgeExpired: () => PurgeExpiredResult | void; resetCounters: () => void; listResults: () => StoredResultData[]; confirm: (title: string, message: string) => Promise; notify: (message: string, type?: "info" | "warning" | "error") => void; now: () => number; } declare function helpText(): string; export declare function dispatch(subcommand: string, _args: string, deps: DispatchDeps): Promise; export declare const __test: { SUBCOMMANDS: readonly ["stats", "clear-cache", "purge-expired", "recent", "help"]; helpText: typeof helpText; }; export {};