import { Schema, Document } from "mongoose"; import HookErrorCallback from "../interfaces/HookErrorCallback"; export declare type RequiredIfAllDefinitionType = { message?: string; validator: (instance: T) => Promise | boolean; }; export declare type RequiredIfAllFuncOptions = { /** * Error callback */ errorCb?: HookErrorCallback; }; /** * Project model from mass assignment * @param schema mongoose schem * @param options options */ export default function RequiredIfAll(schema: Schema, options: RequiredIfAllFuncOptions): Promise;