import { BaseNFe, Environment, Utility, XmlBuilder } from '@treeunfe/shared'; import { GenericObject, LayoutNFe, NFe, ProtNFe } from '@treeunfe/types'; import { AxiosInstance, AxiosResponse } from 'axios'; import { Agent } from 'http'; import { GerarConsultaImpl, NFEAutorizacaoServiceImpl, SaveFilesImpl } from '@treeunfe/types/interfaces'; declare class NFEAutorizacaoService extends BaseNFe implements NFEAutorizacaoServiceImpl { xmlNFe: string[]; constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl); protected gerarXml(data: NFe): string; protected salvaArquivos(_xmlConsulta: string, responseInJson: GenericObject, _xmlRetorno: AxiosResponse, _options?: Record): GenericObject; private trataRetorno; /** * Método utilitário para criação do XML a partir de um Objeto */ private anoMesEmissao; private calcularModulo11; private calcularDigitoVerificador; private validaDocumento; private gerarXmlNFeAutorizacao; protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise>; Exec(data: NFe): Promise<{ success: boolean; xMotivo: GenericObject; xmls: { NFe: LayoutNFe; protNFe: ProtNFe; }[]; }>; } export default NFEAutorizacaoService;