import { type AssetContentArg, FetchRepositoryBase } from "../../../shared/index.js"; import type { ParamsSchema as GetAssetsParams } from "../../../tools/content/assets/Get.js"; import type { ParamsSchema as ListAssetsParams } from "../../../tools/content/assets/List.js"; import type { AssetCreateResponse, BulkCreateAssetResponse, ListAssetsResponse, UpdateAssetImageFromURL } from "./AssetsTypes.js"; type AssetData = { input: string | Buffer; modyoType: string; name: string; /** * Skip byte-sniffing and trust this extension/MIME instead. Use when the * caller already knows the real extension (e.g. copying an existing asset * by its `data_file_name`) — file-type can't reliably sniff text-based * formats (.csv, .txt, etc.). */ knownFileType?: { ext: string; mime: string; }; }; type BulkCreateAssetsParams = { spaceId: number; assets: AssetData[]; }; type CreateAssetsParams = { spaceId: number; }; type DeleteAssetsParams = { spaceId: number; assetId: number; }; type UpdateMetadataAssetsParams = { spaceId: number; assetId: number; }; type UpdateAssetImageParams = { spaceId: number; assetId: number; }; type ListAssetsQuery = Omit; type AssetMetadata = { name?: string | undefined; title?: string | undefined; description?: string | undefined; alt?: string | undefined; alt_text?: string | undefined; tags?: string[] | undefined; }; export declare class AssetsRepository extends FetchRepositoryBase { bulkCreate(spaceId: BulkCreateAssetsParams["spaceId"], assets: BulkCreateAssetsParams["assets"]): Promise; createAsset(spaceId: CreateAssetsParams["spaceId"], asset: AssetData): Promise; deleteAsset(spaceId: DeleteAssetsParams["spaceId"], assetId: DeleteAssetsParams["assetId"]): Promise; getAsset(spaceId: GetAssetsParams["spaceId"], assetId: GetAssetsParams["assetId"]): Promise; getAssets(spaceId: ListAssetsParams["spaceId"], queryParams?: ListAssetsQuery): Promise; updateAssetMetadata(spaceId: UpdateMetadataAssetsParams["spaceId"], assetId: UpdateMetadataAssetsParams["assetId"], assetMetadata: Partial): Promise; updateAssetImageFromUrl(spaceId: number, assetId: number, asset: UpdateAssetImageFromURL): Promise; updateAssetImage(spaceId: UpdateAssetImageParams["spaceId"], assetId: UpdateAssetImageParams["assetId"], asset: AssetContentArg): Promise; } export {}; //# sourceMappingURL=AssetsRepository.d.ts.map