/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import Database, { Collection, MagicAttributeModel, Transactionable } from '@nocobase/database'; interface LoadOptions extends Transactionable { skipExist?: boolean; } export declare class FieldModel extends MagicAttributeModel { get db(): Database; set(key: any, value?: any, options?: any): this; isAssociationField(): boolean; load(loadOptions?: LoadOptions): Promise; syncSortByField(options: Transactionable): Promise; remove(options?: any): Promise; syncUniqueIndex(options: Transactionable): Promise; syncDefaultValue(options: Transactionable & { defaultValue: any; }): Promise; syncReferenceCheckOption(options: Transactionable): Promise; protected getFieldCollection(): Collection | null; toJSON(): any; } export {};