import { AxiosInstance, AxiosResponse } from 'axios'; import { Environment, Utility, XmlBuilder, BaseNFE } from '@nfewizard/shared'; import { EventoNFe, GenericObject, TipoEvento } from '@nfewizard/types/nfe'; import { GerarConsultaImpl, NFERecepcaoEventoServiceImpl, SaveFilesImpl } from '@nfewizard/types/shared'; import { Agent } from 'http'; export declare class NFERecepcaoEventoService extends BaseNFE implements NFERecepcaoEventoServiceImpl { tpEvento: string; modelo?: string; xmlEventosNacionais: string[]; xmlEventosRegionais: string[]; xMotivoPorEvento: any[]; constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl); /** * Método para gerar o Id do evento */ private getID; /** * Verifica se o evento será disparado para o ambiente nacional ou para o estado pré-definido */ private isAmbienteNacional; /** * Retorna o nome do Evento */ private getTipoEventoName; private separaEventosPorAmbiente; /** * Criação do XML */ private gerarXmlRecepcaoEvento; private trataRetorno; protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise>; protected enviaEvento(evento: TipoEvento[], idLote: number, tipoAmbiente: number): Promise; Exec(data: EventoNFe): Promise<{ success: boolean; xMotivos: any[]; response: GenericObject[]; }>; } export default NFERecepcaoEventoService;