/** * Excel Image Extractor * Extracts embedded images from Excel files using exceljs * * @module @f5/cli/core/excel-image-extractor * @version 1.0.0 */ export interface ExtractedImage { id: string; filename: string; extension: string; path: string; relativePath: string; sheetName: string; cellRef?: string; range?: { tl: { col: number; row: number; }; br: { col: number; row: number; }; }; dimensions?: { width: number; height: number; }; base64?: string; } export interface ImageExtractionResult { success: boolean; images: ExtractedImage[]; outputDir: string; errors: string[]; } export interface ImageExtractionOptions { outputDir?: string; prefix?: string; includeBase64?: boolean; organizeBySheet?: boolean; } export declare class ExcelImageExtractor { private workbook; private filePath; private options; constructor(filePath: string, options?: ImageExtractionOptions); /** * Extract all images from the Excel file */ extract(): Promise; /** * Extract images from a specific worksheet */ private extractFromSheet; /** * Convert column/row numbers to cell reference (e.g., A1, B2) */ private colRowToRef; /** * Get standardized image extension */ private getImageExtension; /** * Generate markdown image references */ generateMarkdownReferences(images: ExtractedImage[]): string; /** * Generate image mapping for document converter */ generateImageMapping(images: ExtractedImage[]): Map; } /** * Quick extraction function */ export declare function extractExcelImages(filePath: string, options?: ImageExtractionOptions): Promise; /** * Check if file might contain images */ export declare function hasEmbeddedImages(filePath: string): Promise;