import { FileBrowser } from './browFiles.js'; import type { FileUploaderProvider } from './storage/types.js'; export interface UploadedFile extends FileBrowser { mimetype: string; size: number; url: string; } /** * The built-in uploader for a provider id, registry-free. The registry's * `fileUploader` processors (cms bootstrap) remain authoritative when the * app is bootstrapped — they let extensions override providers — but code * that runs OUTSIDE a bootstrapped app (the seed CLI) has an empty * registry, and the previous default of "always local" silently ignored a * configured cloud provider: seeded product images landed on the local * filesystem of an S3-configured store. */ export declare const builtinUploaderFor: (provider: string) => FileUploaderProvider; /** * Upload files to the specified destination path. * @param {Array} files an array of files in the format of {name: String, data: Buffer} * @param {String} destinationPath the destination path */ export declare const uploadFile: (files: Express.Multer.File[], destinationPath: string) => Promise;