import { ErrorUnion, OkUnion } from '../outputs'; /** * Stops the uploading of a file. Supported only for files uploaded by using uploadFile. * For other files the behavior is undefined * @param {Object} params * @param {number} [params.fileId] - Identifier of the file to stop uploading * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type CancelUploadFileMethod = (params: CancelUploadFileParams, state?: Record) => Promise; export interface CancelUploadFileParams { /** Identifier of the file to stop uploading */ fileId?: number; }