import type { INode } from 'n8n-workflow'; /** * File validation utilities for n8n nodes */ /** * Validates file size against a maximum limit * @param buffer - The file buffer to validate * @param maxSizeMB - Maximum file size in megabytes * @throws Error if file size exceeds the limit */ export declare function validateFileSize(buffer: Buffer, maxSizeMB: number, node?: INode): void; /** * Validates file size from binary data object * @param fileSize - File size in bytes (from binary data, can be number or string) * @param maxSizeMB - Maximum file size in megabytes * @throws Error if file size exceeds the limit */ export declare function validateFileSizeFromMetadata(fileSize: number | string | undefined, maxSizeMB: number, node?: INode): void; //# sourceMappingURL=fileValidation.d.ts.map