/** * Model namespace */ export declare namespace Model { /** * Model errors * * @param T {Model} */ type Errors = Record, string>; } /** * @package [react3l-common](https://www.npmjs.com/package/react3l-common) * @description Auto mapper model */ export declare class Model { errors?: Model.Errors; static create(...args: any[]): T; private static asCreatable; /** * Used for circular relationship only. * * @param Parent * @param Child * @param field */ static hasMany(Parent: new () => T1, Child: new () => T2, field: keyof T1): void; /** * Used for circular relationship only. * * @param Child * @param Parent * @param field */ static belongsTo(Child: new () => T1, Parent: new () => T2, field: keyof T1): void; /** * Serialize this model to JSON string * * @return {string} */ toString(): string; } //# sourceMappingURL=Model.d.ts.map