import { Fiscal } from "../../constants/fiscal.type"; import { FPrinter } from "../../constants/fprinter.type"; export declare class EpsonXmlHttpClient extends FPrinter.Client { private static XML_ROOT; private static XML_BODY; private static XML_RES_ROOT; private static XML_RES_BODY; private static XML_RESPONSE; private static COMMAND_CODE; /** * commercial document * @param receipt */ printFiscalReceipt(receipt: Fiscal.Receipt): Promise; /** * daily closure (X and Z reports) * @param report */ printFiscalReport(report: Fiscal.Report): Promise; /** * print a commercial refund/void document * @param cancel */ printCancel(cancel: Fiscal.Cancel): Promise; /** * management document * @param nonFiscal */ /** * fiscal document * @param invoice */ /** * send Command to fiscal printer * @param commands */ executeCommand(...commands: Fiscal.Command[]): Promise; /** * send to the printer server * @param xmlDoc * @returns */ private send; /** * Request Message Format: * * * * ... * * * @param xmlDoc * @returns */ private parseRequest; /** * Response Message Format: * * * * * * * @param xmlStr */ private parseResponse; /** * convert `Fiscal.Receipt` to the object that xml2js builder and cgi server supports. * @param receipt * @returns */ private convertReceiptToXmlDoc; /** * convert `Fiscal.Report` to the object that printer server supports. * @param report * @returns */ private convertReportToXmlDoc; /** * convert `Fiscal.Cancel` to the object that printer server supports. * @param cancel * @returns */ private convertCancelToXmlDoc; /** * convert `Fiscal.NonFiscal` to the object that printer server supports. * @param nonFiscal * @returns */ /** * convert `Fiscal.Invoice` to the object that printer server supports. * @param invoice * @returns */ /** * convert `Fiscal.Command` to the object that printer server supports. * @param commands * @returns */ private convertCommandToXmlDoc; }