import { AxiosResponse } from 'axios';
import { SearchParams } from '../components/types/Params';
import { OrderByInfo } from '../components/types/PageFieldInfo';
import { SelectOption } from '../components/types/SearchProps';
declare const starHorseAxios: import('axios').AxiosInstance;
export { starHorseAxios };
export declare function getMenuId(): string;
/**
 * 获取axios实例
 */
export declare function getAxiosInstance(): import('axios').AxiosInstance;
/**
 * 下载文件,
 * @param url 路径
 * @param param 参数
 */
export declare function download(url: string, param: any): Promise<unknown>;
/**
 * 下载文件,
 * @param data 数据
 * @param name 文件名称
 */
export declare function downloadData(data: any, name: string): void;
/**
 * 加载资源文件
 * @param url
 * @param method
 */
export declare function blobData(url: string, method?: string): Promise<any>;
/**
 * Post 请求
 * @param url
 * @param data
 */
export declare function postRequest(url: string, data: Array<any> | any): Promise<AxiosResponse<any, any, {}>>;
/**
 * Get请求
 * @param url
 */
export declare function getRequest(url: string): Promise<AxiosResponse<any, any, {}>>;
/**
 * Request 请求
 * @param url 请求地址
 * @param data 请求参数
 * @param method 请求方法
 */
export declare function httpRequest(url: string, method: string, data: any): Promise<AxiosResponse<any, any, {}>>;
/**
 * Post Upload 请求
 * @param url
 * @param data
 */
export declare function uploadRequest(url: string, data: Array<any>): Promise<AxiosResponse<any, any, {}>>;
/**
 * 加载Post 数据
 * @param url 接口地址
 * @param params 参数
 * @param orderBy 排序
 */
export declare function loadData(url: string, params: SearchParams[] | any, orderBy?: OrderByInfo[]): Promise<{
    data: any;
    error: string;
}>;
/**
 * 加载Get 数据
 * @param url 接口地址
 * @param params 参数
 */
export declare function loadGetData(url: string): Promise<{
    data: any;
    error: string;
}>;
/**
 * 加载Id数据
 * @param url
 * @param id
 * @param params
 */
export declare function loadById(url: string, id: any, params?: any): Promise<any>;
/**
 * 根据Id删除数据
 * @param url
 * @param ids
 * @param msg 删除提示
 */
export declare function deleteByIds(url: string, ids: any, msg?: string): Promise<boolean>;
/**
 * 根据字典类别获取字典数据
 * @param dictType 字典类别
 * @param exclusion 排除字典项
 * @param userUrl 用户自定义接口
 */
export declare function dictData(dictType: string, exclusion?: Array<string>, userUrl?: string): Promise<SelectOption[]>;
