import type { CachedFunction } from "ocache"; import type { EventHandler } from "h3"; import type { CacheOptions, CachedEventHandlerOptions } from "nitro/types"; export declare function defineCachedFunction< T, ArgsT extends unknown[] = any[] >(fn: (...args: ArgsT) => T | Promise, opts?: CacheOptions): CachedFunction; export declare function defineCachedHandler(handler: EventHandler, opts?: CachedEventHandlerOptions): EventHandler;