/** * @athenna/database * * (c) João Lenon * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import type { HasOneOptions } from '#src/types'; import type { BaseModel } from '#src/models/BaseModel'; import type { Driver } from '#src/database/drivers/Driver'; export declare class HasOneRelation { /** * Load a has one relation. */ static load(model: BaseModel, relation: HasOneOptions): Promise; /** * Load all models that has one relation. */ static loadAll(models: BaseModel[], relation: HasOneOptions): Promise; /** * Apply a where has relation to the query when the given model * has one of the relation. */ static whereHas(Model: typeof BaseModel, query: Driver, relation: HasOneOptions): void; }