import { ITree } from '../../Bulldog'; import { Processor } from '../../Processor'; import { Process } from '../Process'; export interface IManifestOptions { /** Directory to store the manifest */ output?: string; /** A prefix template for denoting the resolution of the images. */ prefixTemplate?: string; } /** * Manifest template */ export interface IManifest { image: { [x: string]: any; }; fonts: { [x: string]: any; }; audio: { [x: string]: any; }; model: { [x: string]: any; }; json: { [x: string]: any; }; atlas: { [x: string]: any; }; animate: { [x: string]: any; }; misc: { [x: string]: any; }; } export declare const defaultManifestOptions: IManifestOptions; /** * Creates a json manifest that contains references to all assets. */ export declare class Manifest extends Process { /** * The manifest object that will be saved. */ manifests: { [x: string]: IManifest; }; /** * Directory to store the manifest. * @defaultValue './manifest.json' */ output: string; /** * Root of the tree. */ root: ITree; /** * A hash of shortcuts used to generate the smallest unique name for an asset. */ shortcutHash: { [x: string]: any; }; /** * A flag that lets the process know if the manifest should be regenerated * when bulldog transforms have completed */ private dirty; /** * @param options - Options to set the manifest output location */ constructor(options?: IManifestOptions); /** * Tests if an item has been deleted of added * @override */ test(tree: ITree): boolean; /** * Sets default values and forces the trees manifest tag * @override */ start(tree: ITree): void; /** * flags the manifest as dirty as an asset will have been deleted * @override */ delete(): Promise; /** * Recursively loops through the trees files and adds them to the manifest * @param tree - Tree to be processed * @param manifest - Manifest object to be added to * @param processor - Processor that called this plugin */ collect(tree: ITree, manifest: IManifest, processor: Processor): void; /** * Saves the manifest to the output file */ saveManifest(): void; /** * Creates the manifest and saves the output * @override */ finish(tree: ITree, processor: Processor): void; private _processAnimate; private _processTPS; private _processGBOP; private _processOther; private _processImageType; private _processAtlas; } //# sourceMappingURL=Manifest.d.ts.map