import { Document, Schema } from 'mongoose'; /** * Enhances a Mongoose schema by adding virtual fields for computed values. * * This function inspects the schema's definition for special tracking arrays * (such as `_viewedBy` or `_likedBy`). If those arrays exist, it adds * corresponding virtual properties (`views` and `likes`) to the schema. * These virtuals provide a clean way to access the number of views or likes * without needing to calculate them manually each time. * * @template T - A type extending the Mongoose Document interface. * @param {Schema} schema - The Mongoose schema to augment with virtuals. * @returns {void} - Modifies the schema in place; no return value. */ export declare function addViewsLikesVirtuals(schema: Schema): void;