import type { Cache, Store } from "cache-manager"; import type { FastifyInstance } from "fastify"; import type { StarscreamServer } from "../types"; declare module "fastify" { interface FastifyInstance { cache: Cache; } interface FastifyRequest { cache: Cache; } } export type StarscreamCacheOptions = { cache?: false | ((server: StarscreamServer) => Promise>); }; export declare const StarscreamCache: (server: FastifyInstance, options: StarscreamCacheOptions) => Promise;