import { MiddlewareHandler, Handler, Context } from 'hono';
import { a as CreateQuery, Q as QueryKey } from '../create-query-BP--HoKq.cjs';

type CacheKey = QueryKey | ((ctx: Context) => QueryKey);
type CacheOptions = Omit<CreateQuery, 'queryKey' | 'queryFn' | 'executionCtx' | 'throwOnError' | 'revalidate'> & {
    cacheKey: CacheKey;
    handler: Handler;
    revalidate?: boolean | ((ctx: Context) => boolean);
};
declare const cache: ({ cacheKey, handler, revalidate, ...options }: CacheOptions) => MiddlewareHandler;

export { cache };
