import { type LucidModel, type LucidRow } from '../../types/model.js'; import { type BelongsToRelationContract } from '../../types/relations.js'; import { type RelationCallback, type FactoryModelContract, type FactoryRelationContract, type FactoryBuilderQueryContract } from '../../types/factory.js'; import { BaseRelation } from './base.js'; /** * A belongs to factory relation */ export declare class BelongsTo extends BaseRelation implements FactoryRelationContract { relation: BelongsToRelationContract; constructor(relation: BelongsToRelationContract, factory: () => FactoryBuilderQueryContract>); /** * Make relationship and set it on the parent model instance */ make(parent: LucidRow, callback?: RelationCallback): Promise; /** * Persist relationship and set it on the parent model instance */ create(parent: LucidRow, callback?: RelationCallback): Promise; }