import { Document, Schema } from "mongoose"; import HookErrorCallback from "../interfaces/HookErrorCallback"; export declare type PrivacyFuncOptions = { /** * Model attributes you want to hide while fetching data */ hidden?: Array; /** * Attributes visible while fetching data */ visible?: Array; /** * Error callback */ errorCb?: HookErrorCallback; }; /** * Project model from mass assignment * @param schema mongoose schem * @param options options */ export default function privacy(schema: Schema, options: PrivacyFuncOptions): void;