/** * 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 { Transaction } from 'sequelize'; import { AggregateOptions, CreateOptions, DestroyOptions, TargetKey } from '../repository'; import { MultipleRelationRepository } from './multiple-relation-repository'; import { AssociatedOptions, PrimaryKeyWithThroughValues } from './types'; type CreateBelongsToManyOptions = CreateOptions; export declare class BelongsToManyRepository extends MultipleRelationRepository { aggregate(options: AggregateOptions): Promise; create(options?: CreateBelongsToManyOptions): Promise; destroy(options?: TargetKey | TargetKey[] | DestroyOptions): Promise; add(options: TargetKey | TargetKey[] | PrimaryKeyWithThroughValues | PrimaryKeyWithThroughValues[] | AssociatedOptions): Promise; set(options: TargetKey | TargetKey[] | PrimaryKeyWithThroughValues | PrimaryKeyWithThroughValues[] | AssociatedOptions): Promise; toggle(options: TargetKey | { tk?: TargetKey; transaction?: Transaction; }): Promise; throughName(): any; throughModel(): any; protected setTargets(call: 'add' | 'set', options: TargetKey | TargetKey[] | PrimaryKeyWithThroughValues | PrimaryKeyWithThroughValues[] | AssociatedOptions): Promise; } export {};