import { TryCatchOpts, TryCatchResponse } from "../misc/try-catch.js"; import { NormalizedAxiosError } from "./lib/utils.js"; import { AxiosResponse } from "axios"; /** * Specialized tryCatch for Axios requests. * Returns the response data directly instead of the response object. * Automatically casts the error to AxiosError for better IDE support. * * @template T The type of the response data. * @param {Promise> | (() => Promise>)} promiseOrFn - The axios promise or thunk. * @param {TryCatchOpts} [options] - Optional configuration. * @returns {Promise>>} */ export declare function tryAxios(promiseOrFn: Promise> | (() => AxiosResponse | Promise>), options?: TryCatchOpts): Promise>>;