import { SmrtCollectionOptions } from '@happyvertical/smrt-core'; import { Asset } from './asset'; export declare const OWNED_ASSET_RELATIONSHIP_PATTERN: RegExp; export interface AssetOwnerRecord { getAssets(relationship?: string): Promise; addAsset(asset: Asset, relationship?: string, sortOrder?: number): Promise; removeAsset(assetId: string, relationship?: string): Promise; } export interface AssetOwnerCollection { get(where: { id: string; }): Promise; } export declare function assertValidOwnedAssetRelationship(relationship: string): void; export declare function assertValidOwnedAssetSortOrder(sortOrder: number): void; export declare function resolveOwnedAssetsById(db: SmrtCollectionOptions['db'], assetIds: string[], tenantId?: string | null): Promise; export declare function getOwnedAssetsFromCollection(collection: AssetOwnerCollection, ownerId: string, relationship?: string): Promise; export declare function addOwnedAssetFromCollection(collection: AssetOwnerCollection, ownerType: string, ownerId: string, asset: Asset, relationship?: string, sortOrder?: number): Promise; export declare function removeOwnedAssetFromCollection(collection: AssetOwnerCollection, ownerType: string, ownerId: string, assetId: string, relationship?: string): Promise; //# sourceMappingURL=owned-asset-helpers.d.ts.map