/** * File content processing options */ export interface FileContentProcessorOptions { /** Requested output format: 'auto' (smart detection), 'text', 'base64', 'raw' */ format?: 'auto' | 'text' | 'base64' | 'raw'; /** Maximum file size to process (in bytes) */ maxFileSize?: number; /** Whether to include extraction warnings */ includeWarnings?: boolean; } /** * Result of file content processing */ export interface FileContentProcessorResult { /** Processed content */ content: string; /** Detected/processed format */ format: string; /** Original content type */ contentType: string; /** File size in bytes */ size: number; /** Extraction method used */ extractionMethod: string; /** Optional warning message */ warning?: string; /** Processing success status */ success: boolean; /** Error message if processing failed */ error?: string; } /** * Reusable file content processor for Form Builders actions * Handles intelligent content extraction from various file formats */ export declare class FileContentProcessor { private static readonly DEFAULT_MAX_FILE_SIZE; /** * Process file content based on content type and requested format */ static processContent(buffer: Buffer, contentType: string, options?: FileContentProcessorOptions): Promise; /** * Intelligent content extraction based on file type */ private static intelligentProcessing; /** * Check if content type is an image format */ private static isImage; /** * Check if content type is a text-based format */ private static isTextFormat; /** * Check if content type is PDF */ private static isPDF; /** * Check if content type is Excel */ private static isExcel; /** * Check if content type is Word */ private static isWord; /** * Extract filename from URL or Content-Disposition header */ static extractFilename(fileUrl: string, contentDisposition?: string): string; /** * Get content format description for easy processing */ static getContentFormat(contentType: string): string; } //# sourceMappingURL=file-content-processor.d.ts.map