image-asset-manager
Version:
A comprehensive image asset management tool for frontend projects
55 lines • 1.73 kB
TypeScript
import { CLIOptions, CLICommand } from "../types";
import { ConfigManager } from "../config";
export declare class ImageAssetManager implements CLICommand {
private configManager;
private fileScanner;
constructor(configManager?: ConfigManager);
private formatBytes;
start(options: CLIOptions): Promise<void>;
scan(options: CLIOptions, scanOptions?: {
outputFormat?: "table" | "json" | "csv";
showDuplicates?: boolean;
showUnused?: boolean;
showStats?: boolean;
silent?: boolean;
verbose?: boolean;
}): Promise<void>;
serve(options: CLIOptions, serveOptions?: {
host?: string;
cors?: boolean;
auth?: string;
ssl?: {
cert: string;
key: string;
};
silent?: boolean;
verbose?: boolean;
}): Promise<void>;
optimize(options: CLIOptions, optimizeOptions?: {
outputDir?: string;
quality?: number;
pngQuality?: number;
jpgQuality?: number;
webpQuality?: number;
progressive?: boolean;
keepOriginal?: boolean;
batchSize?: number;
parallel?: number;
dryRun?: boolean;
silent?: boolean;
verbose?: boolean;
}): Promise<void>;
generate(options: CLIOptions, generateOptions?: {
framework?: string;
outputDir?: string;
typescript?: boolean;
componentPrefix?: string;
barrelFile?: boolean;
watch?: boolean;
silent?: boolean;
verbose?: boolean;
}): Promise<void>;
scanImagesForServer(options: CLIOptions): Promise<any[]>;
private getCategoryFromPath;
}
//# sourceMappingURL=ImageAssetManager.d.ts.map