import { AuthorizationResultBasedEntityAssociationLoader } from './AuthorizationResultBasedEntityAssociationLoader.ts'; import { EnforcingEntityAssociationLoader } from './EnforcingEntityAssociationLoader.ts'; import type { EntityQueryContext } from './EntityQueryContext.ts'; import type { ReadonlyEntity } from './ReadonlyEntity.ts'; import type { ViewerContext } from './ViewerContext.ts'; /** * An association loader is a set of convenience methods for loading entities * associated with an entity. In relational databases, these entities are often referenced * by foreign keys. */ export declare class EntityAssociationLoader, TIDField extends keyof NonNullable>, TViewerContext extends ViewerContext, TEntity extends ReadonlyEntity, TSelectedFields extends keyof TFields> { private readonly entity; private readonly queryContext; constructor(entity: TEntity, queryContext?: EntityQueryContext); /** * Enforcing entity association loader. All loads through this loader are * guaranteed to be the values of successful results (or null for some loader methods), * and will throw otherwise. */ enforcing(): EnforcingEntityAssociationLoader; /** * Authorization-result-based entity loader. All loads through this * loader are results, where an unsuccessful result * means an authorization error or entity construction error occurred. Other errors are thrown. */ withAuthorizationResults(): AuthorizationResultBasedEntityAssociationLoader; }