1 | import { Schema } from 'mongoose';
|
2 | import { IModel } from './types';
|
3 | export declare class Model implements IModel {
|
4 | __model: boolean;
|
5 | static Schema: typeof Schema;
|
6 | static Types: typeof Schema.Types;
|
7 | static defaultOptions: {
|
8 | [key: string]: any;
|
9 | };
|
10 | static options: {
|
11 | [key: string]: any;
|
12 | };
|
13 | setState(state?: {}): void;
|
14 | getState(key: string, def: any): any;
|
15 | static prepareOne(obj: any, params: any): Promise<any>;
|
16 | static prepare(obj: any | any[], params?: any): Promise<any | any[]>;
|
17 | }
|
18 | export default Model;
|