export function isAbortError(error) {
    return typeof error === "object" &&
        error !== null &&
        "name" in error &&
        (error.name === "AbortError" || error.name === "APIUserAbortError");
}
export function getErrorMessage(error) {
    return error instanceof Error ? error.message : String(error);
}
