import { StorageObject } from './storage'; import { ConnectionOptions } from './connection'; export interface ModelOptions extends ConnectionOptions { collection?: string; prefix?: string; indexes?: string[]; } export interface FieldOptions { type?: 'string' | 'number' | 'boolean' | 'date' | 'text' | 'string[]'; indexed?: boolean; sortable?: boolean; normalized?: boolean; separator?: string; required?: boolean; default?: any; } export declare function Model(options?: ModelOptions): (constructor: T) => { new (...args: any[]): {}; storage: StorageObject>; initialize(): Promise; create(data: any): Promise>>; findById(id: string): Promise> | null>; findAll(options?: any): Promise>[]>; findOne(query: any): Promise> | null>; find(query: any, options?: any): Promise>[]>; update(id: string, data: any): Promise> | null>; delete(id: string): Promise; count(query?: any): Promise; } & T; export declare function Field(options?: FieldOptions): (target: any, propertyKey: string) => void; //# sourceMappingURL=decorators.d.ts.map