export declare function whereHas(query: any, Model: any, path: string, callback?: (q: any) => void): any;