import { FetchClient, IApplication } from '@c8y/client'; import { ApplicationService } from '@c8y/client'; import { AppStateService, DroppedFile, FilesService, ZipService } from '@c8y/ngx-components'; import { StaticAsset, StaticAssetType } from './static-assets.model'; import * as i0 from "@angular/core"; export declare class StaticAssetsService { private appstate; private appService; private fetchClient; private fileService; private zip; readonly fileNames: { readonly contents: "contents.json"; readonly manifest: "cumulocity.json"; readonly exportZipName: "static-assets.zip"; }; private listFilesCachePromises; constructor(appstate: AppStateService, appService: ApplicationService, fetchClient: FetchClient, fileService: FilesService, zip: ZipService); /** * Lists all files of the given type. * Forces a cache renewal. */ listFiles(type: T): Promise; /** * Lists all files of the given type. * Uses a cache. */ listFilesCached(type: T, forceCacheRenewal?: boolean): Promise; /** * Clones all assets of the given type from parent tenants into the current tenant. */ cloneAssetsIntoTenant(type: T): Promise<{ oldAssets: StaticAsset[]; newAssets: StaticAsset[]; }>; /** * Adds the given files to the static assets of the given type. */ addFilesToStaticAssets(type: T, files: DroppedFile[] | File[], existingFiles: StaticAsset[], throwErrorOnExistingFiles?: boolean): Promise; /** * Gets the static assets app for the given type. */ getAppForTenant(type: T): Promise; private getContentJSONForType; private getContentJSONFromPath; private ensureAddedFilesArePresent; private ensureFileIsPresent; private sleep; private _listFiles; private getPathForContent; private getContextPath; private createEmptyApp; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=static-assets.service.d.ts.map