import BaseInstanceRelationship from "./base.js"; /** * A generic query over some model type. * @template {typeof import("../index.js").default} MC * @template {typeof import("../index.js").default} TMC * @augments {BaseInstanceRelationship} */ export default class VelociousDatabaseRecordHasOneInstanceRelationship extends BaseInstanceRelationship { /** * Runs constructor. * @param {import("./base.js").InstanceRelationshipsBaseArgs} args - Options object. */ constructor(args: import("./base.js").InstanceRelationshipsBaseArgs); /** * Loaded. * @type {InstanceType | undefined} */ _loaded: InstanceType | undefined; /** * Runs build. * @param {ConstructorParameters[0]} data - Target model write attributes. * @returns {InstanceType} - The build. */ build(data: ConstructorParameters[0]): InstanceType; load(): Promise[] | InstanceType | undefined>; /** * Runs loaded. * @returns {InstanceType | Array> | undefined} The loaded model or models (depending on relationship type) */ loaded(): InstanceType | Array> | undefined; getLoadedOrUndefined(): InstanceType | undefined; /** * Runs set loaded. * @param {InstanceType | Array> | undefined} model - Related model(s). */ setLoaded(model: InstanceType | Array> | undefined): void; getTargetModelClass(): TMC | undefined; } //# sourceMappingURL=has-one.d.ts.map