import { type File } from '../types';
/**
 * Represents a file fetched from a URL, compatible with the upload pipeline
 */
interface UrlFetchedFile {
    filepath: string;
    originalFilename: string;
    mimetype: string;
    size: number;
    tmpWorkingDirectory?: string;
}
interface FetchUrlResult {
    file: UrlFetchedFile;
}
/**
 * Progress of a URL fetch.
 *
 * `bytesWritten` is cumulative and non-decreasing (the first report is always 0).
 * `totalBytes` is the parsed Content-Length when the header is present and valid, `null` otherwise.
 */
interface UrlFetchProgress {
    bytesWritten: number;
    totalBytes: number | null;
}
export type { UrlFetchedFile, FetchUrlResult, UrlFetchProgress };
declare const _default: {
    getFolderPath: (folderId?: number | null) => Promise<any>;
    deleteByIds: (ids?: number[]) => Promise<any[]>;
    signFileUrls: (file: File) => Promise<File>;
    fetchUrlToInputFile: (url: string, tmpWorkingDirectory: string, sizeLimit?: number, onProgress?: (progress: UrlFetchProgress) => void) => Promise<FetchUrlResult>;
};
export default _default;
//# sourceMappingURL=file.d.ts.map