import { SaveFileOptions } from "../types/http.js"; /** * Saves a file to disk with validation for file size and MIME type. * * @param options - The options for saving the file. * @param options.dest - The destination directory where the file will be saved. * @param options.originalname - The original name of the file. * @param options.data - The file data as a Buffer. * @param options.maxFileSize - (Optional) The maximum allowed file size in bytes. * @param options.allowedMimeTypes - (Optional) An array of allowed MIME types. * @param options.mimetype - The MIME type of the file. * @returns An object containing the generated filename and the full path to the saved file. * @throws Will throw an error if the file size exceeds the specified limit or if the MIME type is not allowed. */ export declare function saveFileToDisk(options: SaveFileOptions): { filename: string; path: string; }; //# sourceMappingURL=saveFileToDisk.d.ts.map