import type { AuthorizationResultBasedUpdateMutator } from './AuthorizationResultBasedEntityMutator.ts'; import { EnforcingEntityUpdater } from './EnforcingEntityUpdater.ts'; import type { IEntityClass } from './Entity.ts'; import type { EntityPrivacyPolicy } from './EntityPrivacyPolicy.ts'; import type { EntityQueryContext } from './EntityQueryContext.ts'; import type { ReadonlyEntity } from './ReadonlyEntity.ts'; import type { ViewerContext } from './ViewerContext.ts'; /** * The primary interface for updating entities. */ export declare class EntityUpdater, TIDField extends keyof NonNullable>, TViewerContext extends ViewerContext, TEntity extends ReadonlyEntity, TPrivacyPolicy extends EntityPrivacyPolicy, TSelectedFields extends keyof TFields> { private readonly existingEntity; private readonly queryContext; private readonly entityClass; constructor(existingEntity: TEntity, queryContext: EntityQueryContext, entityClass: IEntityClass); /** * Enforcing entity updater. All updates through this updater are * guaranteed to be successful and will throw otherwise. */ enforcing(): EnforcingEntityUpdater; /** * Authorization-result-based entity updater. All updates through this * updater are results, where an unsuccessful result means an authorization * error or entity construction error occurred. Other errors are thrown. */ withAuthorizationResults(): AuthorizationResultBasedUpdateMutator; }