import { ExecutionContext } from '../../interfaces/features/execution-context.interface'; /** * Decorator that sets the cache ttl setting the duration for cache expiration. * * For example: `@CacheTTL(5)` * * @param ttl number set the cache expiration time * * @see [Caching](https://docs.nestjs.com/techniques/caching) * * @publicApi */ declare type CacheTTLFactory = (ctx: ExecutionContext) => Promise | number; export declare const CacheTTL: (ttl: number | CacheTTLFactory) => import("../../decorators").CustomDecorator; export {};