/**
 * 速停车开票接口模块
 */
import { AxiosInstance } from "axios";
/**
 * 速停车开票接口客户端
 */
export default class StcInvoiceApiClient {
    /**
     * 根据订单号和车场id开票
     *
     * 接口文档上的同路劲的接口实际上是同路劲的get接口，post的看不到接口文档
     * /ei/service/api/ei/invoice
     * https://ts.keytop.cn/eitest/doc.html#/%E9%BB%98%E8%AE%A4%E6%8E%A5%E5%8F%A3/%E5%8F%91%E7%A5%A8API/invoiceUsingPOST
     *
     * @param request {@link InvoiceResquest}
     */
    invoice(url: any, request: string): Promise<ApiResponse<InvoiceResponse>>;
    /**
     * 新江南查票
     *
     * /ei/service/v1/invoice/open/queryByOrderId
     *
     * https://ts.keytop.cn/eitest/doc.html#/%E9%BB%98%E8%AE%A4%E6%8E%A5%E5%8F%A3/%E5%8F%91%E7%A5%A8API/queryByOrderIdV1UsingPOST
     */
    queryByOrderId(url: any, request: QueryByOrderIdRequest): Promise<ApiResponse<QueryByOrderIdResponse>>;
}
export declare class InvoiceResquest {
    lotId: string;
    orderAmount: number;
    requestId: string;
    type: string;
    title: string;
    sn: string;
    phone: string;
    email: string;
    sign: string;
}
export declare class InvoiceResponse {
    /**
     *
     */
    fileUrl?: string;
    /**
     *
     */
    invoiceCode?: string;
    /**
     *
     */
    invoiceNo?: string;
    /**
     * 成功=successful
     */
    resultCode?: 'successful' | string;
    /**
     *
     */
    resultMsg?: string;
    /**
     *
     */
    returnCode?: string;
    /**
     *
     */
    returnMsg?: string;
    /**
     *
     */
    sign?: string;
}
export declare class QueryByOrderIdRequest {
    /**
     * 外部系统订单号（开票时传入的） ,示例值(MERCOUPON1611815103780)
     */
    orderNo: string;
    /**
     * 	开票类型，是否查红票（蓝票false，红票true）
     */
    redInvoice?: boolean;
}
export declare class QueryByOrderIdResponse {
    /**
     * 开票金额单位：分
     */
    amount?: number;
    /**
     * EI号（发票系统订单号）
     */
    eiNo?: string;
    /**
     * 发票代码（实际发票上的发票代码）
     */
    invoiceCode?: string;
    /**
     *
     */
    invoiceDate?: string;
    /**
     * 发票号码（实际发票上的发票号码）
     */
    invoiceNo?: string;
    /**
     * 发票类型00蓝票，01蓝票
     */
    invoiceType?: string;
    /**
     * 车场名称
     */
    lotName?: string;
    /**
     * 请求ID（外部订单号）
     */
    orderId?: string;
    /**
     * 发票url
     */
    pdfUrl?: string;
    /**
     * 状态代码（00申请成功、01开票中、02开票成功、03开票失败）
     */
    status?: string;
    /**
     * 状态（00申请成功、01开票中、02开票成功、03开票失败）
     */
    statusName?: string;
}
/**
 * 速停车开票接口响应
 */
export declare class ApiResponse<T = any> {
    code: string;
    message: string;
    data: T;
    static codeIsSuccess(code: string): boolean;
}
export declare function throwIfCodeNoSuccess(apiResponse: ApiResponse): void;
export declare class SignUtils {
    static sign(data: any, appKey: any): string;
}
export declare let axiosInstance: AxiosInstance;
export { StcInvoiceApiClient };
