///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
import type { Query } from 'mongoose';
import type { AnyParamConstructor, QueryHelperThis } from './types';
/**
* Adds a query method to the Class which will then be added to the Schema.
* @param func The Query Method to add
* @example
* ```ts
* interface FindHelpers {
* findByTitle: AsQueryMethod;
* }
*
* function findByTitle(this: ReturnModelType, title: string) {
* return this.find({ title });
* }
*
* @queryMethod(findByTitle)
* class Event {
* @prop()
* public title: string;
* }
*
* const EventModel = getModelForClass(Event);
* ```
*/
export declare function queryMethod>(func: (this: QueryHelperThis, ...params: any[]) => Query): ClassDecorator;
export { queryMethod as QueryMethod };