/// /// /// /// /// import Model = NajsEloquent.Model.IModel; import IMorphToRelationship = NajsEloquent.Relation.IMorphToRelationship; import RelationshipFetchType = NajsEloquent.Relation.RelationshipFetchType; import IRelationDataBucket = NajsEloquent.Relation.IRelationDataBucket; import IQueryBuilder = NajsEloquent.QueryBuilder.IQueryBuilder; import { Relationship } from '../Relationship'; export declare class MorphTo extends Relationship implements IMorphToRelationship { static className: string; protected rootMorphTypeName: string; protected targetKeyNameMap: { [key in string]: string; }; private targetModelInstances; constructor(root: Model, relationName: string, rootType: string, rootKey: string, targetKeyNameMap: { [key in string]: string; }); getClassName(): string; getType(): string; makeTargetModel(modelName: string): Model; createQueryForTarget(targetModel: Model): IQueryBuilder; findTargetKeyName(targetModel: Model): string; collectDataInBucket(dataBucket: IRelationDataBucket, targetModel: Model): object[]; collectData(): T | undefined | null; getEagerFetchInfo(dataBucket: IRelationDataBucket): {}; eagerFetchData(): Promise; fetchData(type: RelationshipFetchType): Promise; isInverseOf(relationship: NajsEloquent.Relation.IRelationship): boolean; }