export default class Model { constructor(obj?: any) find(obj?: any): Model skip(number?: any): Model limit(number?: any): Model findByText(str: string); projection(str: string) : Model; sort(key: any, direction?: string) : Model; set(obj: any, value?: any); get(key: string, defaultValue?: any): any getStringId(): string toJSON(): any; unset(key: string): T inArray(target: Model): boolean required(message?: string): T with(key: string, obj: Model | { (...args): any }): T exclude(target: Model, key: string) add(target: Model, key: string): Promise> equals(target: Model): boolean save(): Promise> remove(): Promise>; removeAll(): Promise first(): Promise> count(): Promise firstRandom(): Promise> all(): Promise[]> paginate(obj: any): Promise drop(): Promise static drop(): Promise static find(obj?: any): Model; static createCollection(opts? : any); static collectionExists(name? : string) : Promise; static tail(opts? : any, criteria? : any) : Promise; static getConnection() : any; }