import { Options } from "../models/options"; import { ClientInstance } from "./clientInstance"; import { AssetMediaList, Media } from "../models/media"; import { assetGalleries } from "../models/assetGalleries"; import { assetMediaGrouping } from "../models/assetMediaGrouping"; import { assetContainer } from "../models/assetContainer"; export declare class AssetMethods { _options: Options; _clientInstance: ClientInstance; constructor(options: Options); deleteFile(mediaID: number, guid: string): Promise; moveFile(mediaID: number, newFolder: string, guid: string): Promise; getMediaList(pageSize: number, recordOffset: number, guid: string): Promise; getGalleries(guid: string, search?: string, pageSize?: number, rowIndex?: number): Promise; getGalleryById(guid: string, id: number): Promise; getGalleryByName(guid: string, galleryName: string): Promise; getDefaultContainer(guid: string): Promise; saveGallery(guid: string, gallery: assetMediaGrouping): Promise; deleteGallery(guid: string, id: number): Promise; getAssetByID(mediaID: number, guid: string): Promise; getAssetByUrl(url: string, guid: string): Promise; /** * Uploads a file to the specified folder path. * * @param {*} formData - FormData object that axios is expecting for the Upload. * @param {string} agilityFolderPath * @param {string} guid * @param {number} [groupingID=-1] * @returns * @memberof AssetMethods */ upload(formData: any, agilityFolderPath: string, guid: string, groupingID?: number): Promise; createFolder(originKey: string, guid: string): Promise; deleteFolder(originKey: string, guid: string, mediaID?: number): Promise; renameFolder(folderName: string, newFolderName: string, guid: string, mediaID?: number): Promise; }