import type { UmbProblemDetails } from './types.js';
/**
 * Checks if the given error is an instance of ApiError.
 * @param {*} error The error to check
 * @returns {boolean} True if the error is an instance of ApiError, false otherwise
 * @deprecated Use {UmbApiError.isUmbApiError} instead and map your object to {UmbApiError} if needed.
 */
export declare function isApiError(error: unknown): error is {
    body?: string;
    status?: number;
    request?: unknown;
};
/**
 * Checks if the given error is an instance of CancelError.
 * @param {*} error The error to check
 * @returns {boolean} True if the error is an instance of CancelError, false otherwise
 * @deprecated Use {UmbApiCancelError.isUmbApiCancelError}` instead and map your object to {UmbApiCancelError} if needed.
 */
export declare function isCancelError(error: unknown): error is Error;
/**
 * Checks if the given promise is cancelable, i.e. if it has a cancel method.
 * @param {*} promise The promise to check
 * @returns {boolean} True if the promise is cancelable, false otherwise
 */
export declare function isCancelablePromise<T>(promise: unknown): promise is Promise<T> & {
    cancel: () => void;
};
/**
 * Checks if the given error is an instance of ProblemDetails.
 * @param {*} error The error to check
 * @returns {boolean} True if the error is an instance of ProblemDetails, false otherwise
 */
export declare function isProblemDetailsLike(error: unknown): error is UmbProblemDetails;
