import { AmplifyErrorParams } from '@aws-amplify/core/internals/utils'; import { StorageError } from './StorageError'; /** * Internal-only class for CanceledError thrown by XHR handler or multipart upload when cancellation is invoked * without overwriting behavior. * * @internal */ export declare class CanceledError extends StorageError { constructor(params?: Partial); } /** * Check if an error is caused by user calling `cancel()` on a upload/download task. If an overwriting error is * supplied to `task.cancel(errorOverwrite)`, this function will return `false`. */ export declare const isCancelError: (error: unknown) => error is CanceledError;