import { JunctionAttachOptions, JunctionFilterOptions, SmrtJunction } from '@happyvertical/smrt-core'; import { AssetAssociation } from './asset-association'; export declare class AssetAssociationCollection extends SmrtJunction { static readonly _itemClass: typeof AssetAssociation; protected leftField: string; protected rightField: string; /** * List associations for a polymorphic owner. * * Composite left key — pass both halves. */ byLeft(metaType: string, metaId: string, opts?: JunctionFilterOptions): Promise; /** * Create an association. Composite left (metaType, metaId) precedes right (assetId). */ attach(metaType: string, metaId: string, assetId: string, opts?: JunctionAttachOptions): Promise; /** * Delete matching associations. Composite left (metaType, metaId) precedes right (assetId). */ detach(metaType: string, metaId: string, assetId: string, opts?: JunctionFilterOptions): Promise; /** * Replace all associations for a polymorphic owner with the given asset IDs. * Not transactional — see `SmrtJunction.setLinks` for caveats. */ setLinks(metaType: string, metaId: string, assetIds: string[], opts?: JunctionAttachOptions): Promise; } //# sourceMappingURL=asset-associations.d.ts.map