import type { NetlifyAPI } from '@netlify/api'; import type { StatusCallback } from './status-cb.js'; export type UploadApi = Pick; interface UploadFileBase { filepath: string; normalizedPath: string; } export interface StaticUploadFile extends UploadFileBase { assetType: 'file'; body?: undefined; } export interface InlineUploadFile { assetType: 'file'; body: string; filepath?: undefined; normalizedPath: string; } export interface FunctionUploadFile extends UploadFileBase { assetType: 'function'; runtime?: string; invocationMode?: string; timeout?: number; } export interface EdgeFunctionUploadFile extends UploadFileBase { assetType: 'edge-function'; hash: string; } export interface ServerUploadFile extends UploadFileBase { assetType: 'server'; hash: string; } export type UploadFile = StaticUploadFile | InlineUploadFile | FunctionUploadFile | EdgeFunctionUploadFile | ServerUploadFile; interface UploadFilesOptions { concurrentUpload: number; maxRetry: number; statusCb: StatusCallback; } declare const uploadFiles: (api: UploadApi, deployId: string, uploadList: UploadFile[], { concurrentUpload, maxRetry, statusCb }: UploadFilesOptions) => Promise<({ id?: string; path?: string; sha?: string; mime_type?: string; size?: number; } | { id?: string; name?: string; sha?: string; region?: string; })[]>; export default uploadFiles; //# sourceMappingURL=upload-files.d.ts.map