interface IResult {
    state: boolean;
    data: any;
}
interface IPermission {
    permission: string;
    permlabel: string;
}
interface IHttp {
    /**
     * 后台数据存储逻辑
     */
    doCall: (url: string, param?: any, hasFile?: boolean, config?: any) => Promise<IResult>;
    tokenKey: string;
    baseUrl: string;
    getUrl: (url: string) => string;
    getPermission: (permission: IPermission) => boolean;
}
declare class Result implements IResult {
    state: boolean;
    data: any;
    constructor(state?: boolean, data?: any);
    static ok(data: any): Result;
    static error(data: any): Result;
}
declare class HttpService implements IHttp {
    tokenKey: string;
    baseUrl: string;
    getUrl: (url: string) => string;
    doCall: (url: string, param: any) => Promise<IResult>;
    getPermission: (permlabel: IPermission) => boolean;
    constructor();
}
export default IHttp;
export { Result, HttpService };
export type { IResult };
