import { XmlBuilder, Environment, Utility, BaseNFe } from '@treeunfe/shared'; import { GerarConsultaImpl, NFERecepcaoEventoServiceImpl, SaveFilesImpl } from '@treeunfe/types/interfaces'; import { EventoNFe, GenericObject, TipoEvento } from '@treeunfe/types'; import { AxiosInstance, AxiosResponse } from 'axios'; import { Agent } from 'http'; 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;