nfets 0.0.138 → 0.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
- import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, x as NFeTsError, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ab as Either, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, ag as DeepPartial, w as XmlToolkit, R as ReadCertificateRequest, a3 as HttpClient, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ac as Left, ad as Right, N as Namespaced, d as SignatureAlgorithm } from '../types-BlTnVW8U.js';
1
+ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, x as NFeTsError, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a3 as RequestConfig, a8 as SignedEntity, ad as Either, a as ReadCertificateResponse, O as RowBuilderOptions, Y as PdfBuilder, ai as DeepPartial, w as XmlToolkit, R as ReadCertificateRequest, a5 as HttpClient, Z as CacheAdapter, $ as CertificateRepository, a6 as RemoteTransmissionRepository, ab as EntitySigner, ac as XmlSigner, ae as Left, af as Right, N as Namespaced, d as SignatureAlgorithm } from '../types-B8bOrWDU.js';
2
2
  import { Writable } from 'node:stream';
3
+ import dayjs from 'dayjs';
3
4
  import 'node:crypto';
4
5
 
5
6
  interface AccessKey {
@@ -28,6 +29,28 @@ interface EventoCancelamento extends DetEventoCancelamento {
28
29
  dhEvento?: string;
29
30
  }
30
31
 
32
+ declare enum TpEvent {
33
+ Cancelamento = "110111",
34
+ CancelamentoSubstituicao = "110112",
35
+ ConfirmacaoOperacao = "210200",
36
+ CienciaOperacao = "210210",
37
+ DesconhecimentoOperacao = "210220",
38
+ OperacaoNaoRealizada = "210240"
39
+ }
40
+
41
+ type TpEventManifestacao = TpEvent.ConfirmacaoOperacao | TpEvent.CienciaOperacao | TpEvent.DesconhecimentoOperacao | TpEvent.OperacaoNaoRealizada;
42
+ interface DetEventoManifestacao {
43
+ xJust?: string;
44
+ }
45
+ interface EventoManifestacao extends DetEventoManifestacao {
46
+ chNFe: string;
47
+ identification: string;
48
+ tpEvento: TpEventManifestacao;
49
+ nSeqEvento?: number;
50
+ idLote?: string;
51
+ dhEvento?: string;
52
+ }
53
+
31
54
  declare enum TpEmis {
32
55
  Normal = "1",
33
56
  EPEC = "4",
@@ -1566,11 +1589,6 @@ interface ConsultaCadastroResponse {
1566
1589
  };
1567
1590
  }
1568
1591
 
1569
- declare enum TpEvent {
1570
- Cancelamento = "110111",
1571
- CancelamentoSubstituicao = "110112"
1572
- }
1573
-
1574
1592
  interface EventoPayload<T> {
1575
1593
  idLote: string;
1576
1594
  evento: EventoItem<T>;
@@ -1584,7 +1602,7 @@ interface InfEventoAttributes {
1584
1602
  }
1585
1603
  interface InfEvento<T> {
1586
1604
  $: InfEventoAttributes;
1587
- cOrgao: StateCode;
1605
+ cOrgao: StateCode | '91';
1588
1606
  tpAmb: EnvironmentCode;
1589
1607
  CNPJ?: string;
1590
1608
  CPF?: string;
@@ -1743,6 +1761,57 @@ interface ConsultaProtocoloResponse {
1743
1761
  };
1744
1762
  }
1745
1763
 
1764
+ interface ConsChNFe {
1765
+ chNFe: string;
1766
+ }
1767
+ interface DistribuicaoDFePayload {
1768
+ tpAmb: EnvironmentCode;
1769
+ cUFAutor: StateCode;
1770
+ CNPJ?: string;
1771
+ CPF?: string;
1772
+ consChNFe: ConsChNFe;
1773
+ }
1774
+ interface DistribuicaoDFeRequest {
1775
+ nfeDadosMsg: {
1776
+ distDFeInt: DistribuicaoDFePayload;
1777
+ };
1778
+ }
1779
+ interface RetDistDFeInt {
1780
+ $: {
1781
+ versao: string;
1782
+ };
1783
+ tpAmb: string;
1784
+ verAplic: string;
1785
+ cStat: string;
1786
+ xMotivo: string;
1787
+ dhResp: string;
1788
+ ultNSU: string;
1789
+ maxNSU: string;
1790
+ loteDistDFeInt?: {
1791
+ docZip: {
1792
+ $: {
1793
+ NSU: string;
1794
+ schema: string;
1795
+ };
1796
+ $value: string;
1797
+ };
1798
+ };
1799
+ }
1800
+ interface DistribuicaoDFeResponse {
1801
+ nfeDistDFeInteresseResult: {
1802
+ retDistDFeInt: RetDistDFeInt;
1803
+ };
1804
+ }
1805
+ interface ConsultaChaveDistribuicaoDFe {
1806
+ chNFe: string;
1807
+ identification: string;
1808
+ cUFAutor: StateCode;
1809
+ }
1810
+ interface PipelineDistribuicaoDFeResponse {
1811
+ response: RetDistDFeInt;
1812
+ xml?: string;
1813
+ }
1814
+
1746
1815
  interface VoidRangePayload {
1747
1816
  tpAmb?: EnvironmentCode;
1748
1817
  ano?: string;
@@ -1902,7 +1971,7 @@ interface ContingencyOptions {
1902
1971
  dhCont: string;
1903
1972
  }
1904
1973
  interface NfeTransmitterOptions extends TransmitterOptions {
1905
- cUF: StateCode;
1974
+ cUF: StateCode | '91';
1906
1975
  schema?: Schema;
1907
1976
  tpAmb: EnvironmentCode;
1908
1977
  contingency?: ContingencyOptions;
@@ -1918,6 +1987,7 @@ interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
1918
1987
  retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
1919
1988
  recepcaoEvento<T>(payload: EventoPayload<T>): Promise<Either<NFeTsError, EventoResponse>>;
1920
1989
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
1990
+ distribuicaoDFe(payload: DistribuicaoDFePayload): Promise<Either<NFeTsError, DistribuicaoDFeResponse>>;
1921
1991
  }
1922
1992
  interface NfeRemoteClient extends Client {
1923
1993
  nfeStatusServicoNF(args: ConsultStatusRequest, opt?: RequestConfig): Promise<ConsultStatusResponse>;
@@ -1935,6 +2005,7 @@ interface NfeRemoteClient extends Client {
1935
2005
  consultaCadastro(args: ConsultaCadastroRequest, opt?: RequestConfig): Promise<ConsultaCadastroResponse>;
1936
2006
  consultaCadastro4(args: ConsultaCadastroRequest, opt?: RequestConfig): Promise<ConsultaCadastroResponse>;
1937
2007
  ConsultaCadastro(args: ConsultaCadastroRequest, opt?: RequestConfig): Promise<ConsultaCadastroResponse>;
2008
+ nfeDistDFeInteresse(args: DistribuicaoDFeRequest, opt?: RequestConfig): Promise<DistribuicaoDFeResponse>;
1938
2009
  }
1939
2010
 
1940
2011
  interface NfceQrcodeOptionsBase {
@@ -1972,6 +2043,59 @@ interface Builder {
1972
2043
  height?: () => number;
1973
2044
  }
1974
2045
 
2046
+ declare const ptPerMm: number;
2047
+ declare const mm: (value: number) => number;
2048
+ declare const DanfeSize: {
2049
+ readonly A4: readonly [number, number];
2050
+ };
2051
+ declare const DanfeMargins: {
2052
+ readonly top: number;
2053
+ readonly right: number;
2054
+ readonly bottom: number;
2055
+ readonly left: number;
2056
+ };
2057
+ interface DanfeOptions {
2058
+ size: keyof typeof DanfeSize;
2059
+ qComDecimals: number;
2060
+ vUnComDecimals: number;
2061
+ showCanhoto: boolean;
2062
+ showItemBatch: boolean;
2063
+ showItemComplement: boolean;
2064
+ showItemOrderNumber: boolean;
2065
+ breakItemDescription: boolean;
2066
+ hideTaxUnit: boolean;
2067
+ logo?: string;
2068
+ credits?: string;
2069
+ }
2070
+ interface DanfeArea {
2071
+ x: number;
2072
+ y: number;
2073
+ width: number;
2074
+ }
2075
+ interface DanfeFieldCell {
2076
+ label: string;
2077
+ value?: string;
2078
+ weight: number;
2079
+ align?: 'left' | 'center' | 'right';
2080
+ bold?: boolean;
2081
+ valueSize?: number;
2082
+ }
2083
+ interface DanfeItemsColumn {
2084
+ label: string;
2085
+ weight: number;
2086
+ align?: 'left' | 'center' | 'right';
2087
+ }
2088
+ interface DanfeItemsPairsCell {
2089
+ pairs: [string, string][];
2090
+ columns?: number;
2091
+ }
2092
+ type DanfeItemsCell = string | DanfeItemsPairsCell;
2093
+ interface DanfePageSlice<T> {
2094
+ items: T[];
2095
+ isFirst: boolean;
2096
+ isLast: boolean;
2097
+ }
2098
+
1975
2099
  interface VItem {
1976
2100
  vItem: DecimalValue;
1977
2101
  }
@@ -3542,6 +3666,7 @@ declare const webservices$1: {
3542
3666
  readonly "28": "SVRS";
3543
3667
  readonly "35": "SP";
3544
3668
  readonly "17": "SVRS";
3669
+ readonly 91: "AN";
3545
3670
  readonly AN: "AN";
3546
3671
  readonly SVAN: "SVAN";
3547
3672
  readonly SVRS: "SVRS";
@@ -3572,6 +3697,7 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
3572
3697
  retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
3573
3698
  recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
3574
3699
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
3700
+ distribuicaoDFe(payload: DistribuicaoDFePayload): Promise<Either<NFeTsError, DistribuicaoDFeResponse>>;
3575
3701
  }
3576
3702
 
3577
3703
  interface IssuerIdentification {
@@ -3589,6 +3715,7 @@ declare abstract class TransmissionPipeline extends Pipeline {
3589
3715
  declare abstract class EventPipeline extends TransmissionPipeline {
3590
3716
  protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'> & {
3591
3717
  identification: string;
3718
+ cOrgao?: '91';
3592
3719
  }, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, SignedEntity<EventoItem<{
3593
3720
  descEvento: string;
3594
3721
  } & T>>>>;
@@ -3642,7 +3769,9 @@ declare class NfeAuthorizerPipeline extends TransmissionPipeline {
3642
3769
  }
3643
3770
 
3644
3771
  declare class NfeVoidRangePipeline extends TransmissionPipeline {
3645
- execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Left<NFeTsError> | Right<{
3772
+ execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb'> & {
3773
+ cUF: StateCode;
3774
+ }): Promise<Left<NFeTsError> | Right<{
3646
3775
  xml: string;
3647
3776
  response: InutilizacaoResponse;
3648
3777
  }>>;
@@ -3665,6 +3794,20 @@ declare class NfeAuthorizationResponsePipeline extends TransmissionPipeline {
3665
3794
  }): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
3666
3795
  }
3667
3796
 
3797
+ declare class NfeManifestacaoPipeline extends EventPipeline {
3798
+ execute(payload: EventoManifestacao, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Left<NFeTsError> | Right<{
3799
+ xml: string;
3800
+ response: EventoResponse;
3801
+ }>>;
3802
+ }
3803
+
3804
+ declare class NfeDistribuicaoDFePipeline extends TransmissionPipeline {
3805
+ execute(payload: ConsultaChaveDistribuicaoDFe, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Left<NFeTsError> | Right<{
3806
+ response: RetDistDFeInt;
3807
+ xml: string | undefined;
3808
+ }>>;
3809
+ }
3810
+
3668
3811
  declare class NfceQrcode {
3669
3812
  private readonly certificateRepository;
3670
3813
  constructor(certificateRepository: CertificateRepository);
@@ -5039,6 +5182,248 @@ declare class DanfceReducedPdfDocument extends DanfcePdfDocument {
5039
5182
  protected get builders(): Builder[];
5040
5183
  }
5041
5184
 
5185
+ declare class DanfeFormatter {
5186
+ private readonly context;
5187
+ constructor(context: DanfePdfDocument);
5188
+ isNotEmpty(value?: DecimalValue): value is DecimalValue;
5189
+ decimal(value?: DecimalValue, minimumFractionDigits?: number, maximumFractionDigits?: number): string;
5190
+ currency(value?: DecimalValue): string;
5191
+ percent(value?: DecimalValue): string;
5192
+ document(cnpj?: string, cpf?: string): string;
5193
+ cep(value?: string): string;
5194
+ phone(value?: string): string;
5195
+ number(nNF: string): string;
5196
+ serie(serie: string): string;
5197
+ accessKey(): string;
5198
+ accessKeyDigits(): string;
5199
+ protected tz(value: string): dayjs.Dayjs;
5200
+ date(value?: string): string;
5201
+ time(value?: string): string;
5202
+ dateTime(value?: string): string;
5203
+ plainDate(value?: string): string;
5204
+ now(): string;
5205
+ sanitize(value?: string): string;
5206
+ }
5207
+
5208
+ interface FieldTextOptions {
5209
+ size: number;
5210
+ bold?: boolean;
5211
+ align?: 'left' | 'center' | 'right' | 'justify';
5212
+ }
5213
+ type FieldBoxCell = Omit<DanfeFieldCell, 'weight'>;
5214
+ declare class FieldBox {
5215
+ private readonly context;
5216
+ readonly labelSize = 5;
5217
+ readonly valueSize = 8;
5218
+ readonly titleSize = 6.5;
5219
+ readonly padding = 1.5;
5220
+ readonly rowHeight: number;
5221
+ readonly radius: number;
5222
+ constructor(context: DanfePdfDocument);
5223
+ protected get builder(): PdfBuilder;
5224
+ get titleHeight(): number;
5225
+ get labelHeight(): number;
5226
+ text(text: string, x: number, y: number, width: number, height: number, options: FieldTextOptions): void;
5227
+ measure(text: string, width: number, options: FieldTextOptions): number;
5228
+ rect(x: number, y: number, width: number, height: number): void;
5229
+ box(x: number, y: number, width: number, height: number, cell: FieldBoxCell): void;
5230
+ widths(width: number, weights: number[]): number[];
5231
+ row(x: number, y: number, width: number, height: number, cells: DanfeFieldCell[]): number;
5232
+ grid(x: number, y: number, width: number, cells: FieldBoxCell[], perRow: number, height?: number): number;
5233
+ gridRows(count: number, perRow: number): number;
5234
+ title(x: number, y: number, width: number, text: string): number;
5235
+ }
5236
+
5237
+ declare abstract class DanfeBlock implements Builder {
5238
+ protected readonly context: DanfePdfDocument;
5239
+ constructor(context: DanfePdfDocument);
5240
+ protected get builder(): PdfBuilder;
5241
+ protected get fields(): FieldBox;
5242
+ protected get format(): DanfeFormatter;
5243
+ protected get infNFe(): InfNFe;
5244
+ visible(): boolean;
5245
+ prepare(): Promise<void>;
5246
+ abstract height(): number;
5247
+ protected abstract draw(area: DanfeArea): void;
5248
+ setup(): void;
5249
+ build(options?: RowBuilderOptions): PdfBuilder;
5250
+ end(): void;
5251
+ }
5252
+
5253
+ interface DetIcmsValues {
5254
+ orig?: string;
5255
+ CST?: string;
5256
+ CSOSN?: string;
5257
+ vBC?: DecimalValue;
5258
+ pICMS?: DecimalValue;
5259
+ vICMS?: DecimalValue;
5260
+ vBCFCP?: DecimalValue;
5261
+ pFCP?: DecimalValue;
5262
+ vFCP?: DecimalValue;
5263
+ pRedBC?: DecimalValue;
5264
+ pMVAST?: DecimalValue;
5265
+ pICMSST?: DecimalValue;
5266
+ vBCST?: DecimalValue;
5267
+ vICMSST?: DecimalValue;
5268
+ vBCFCPST?: DecimalValue;
5269
+ pFCPST?: DecimalValue;
5270
+ vFCPST?: DecimalValue;
5271
+ vBCSTRet?: DecimalValue;
5272
+ pST?: DecimalValue;
5273
+ vICMSSubstituto?: DecimalValue;
5274
+ vICMSSTRet?: DecimalValue;
5275
+ }
5276
+
5277
+ type Labels = Partial<Record<string, string>>;
5278
+ declare class ItemDescription {
5279
+ private readonly context;
5280
+ protected readonly maxAdditionalInfo = 500;
5281
+ protected readonly icmsTaxes: [keyof DetIcmsValues, string][];
5282
+ protected readonly icmsUfDestTaxes: [keyof ICMSUFDest, string][];
5283
+ protected readonly operations: Labels;
5284
+ protected readonly fuels: Labels;
5285
+ protected readonly species: Labels;
5286
+ protected readonly vehicles: Labels;
5287
+ protected readonly colors: Labels;
5288
+ protected readonly conditions: Labels;
5289
+ protected readonly restrictions: Labels;
5290
+ protected readonly weaponTypes: Labels;
5291
+ constructor(context: DanfePdfDocument);
5292
+ protected get options(): DanfeOptions;
5293
+ protected tax(value: DecimalValue | undefined, template: string): string;
5294
+ protected taxes(det: Det): string;
5295
+ protected additionalInfo(det: Det): string;
5296
+ protected anvisa(det: Det): string;
5297
+ protected batch(det: Det): string;
5298
+ protected fci(det: Det): string;
5299
+ protected label(labels: Labels, code: string): string;
5300
+ protected lines(entries: [string, string | undefined][]): string;
5301
+ vehicle(det: Det): string;
5302
+ weapons(det: Det): string;
5303
+ build(det: Det): string;
5304
+ }
5305
+
5306
+ declare abstract class DanfeItemsBlock extends DanfeBlock {
5307
+ protected readonly description: ItemDescription;
5308
+ slice: DanfePageSlice<Det>;
5309
+ boxHeight: number;
5310
+ protected readonly title = "DADOS DOS PRODUTOS / SERVI\u00C7OS";
5311
+ protected readonly fontSize: number;
5312
+ protected readonly headerFontSize: number;
5313
+ protected readonly cellPadding: number;
5314
+ protected abstract get columns(): DanfeItemsColumn[];
5315
+ protected abstract cells(det: Det): DanfeItemsCell[];
5316
+ protected widths(): number[];
5317
+ protected labelsHeight(): number;
5318
+ headerHeight(): number;
5319
+ protected isPairs(cell: DanfeItemsCell): cell is Exclude<DanfeItemsCell, string>;
5320
+ protected lineHeight(): number;
5321
+ protected cellHeight(cell: DanfeItemsCell, width: number): number;
5322
+ itemHeight(det: Det): number;
5323
+ height(): number;
5324
+ protected drawLabels(x: number, y: number, height: number): void;
5325
+ protected drawColumnLines(x: number, top: number, bottom: number): void;
5326
+ protected drawPairs(cell: Exclude<DanfeItemsCell, string>, x: number, y: number, width: number): void;
5327
+ protected drawItem(det: Det, x: number, y: number, height: number): void;
5328
+ protected drawSeparator(x: number, y: number, width: number): void;
5329
+ protected draw({ x, y, width }: DanfeArea): void;
5330
+ }
5331
+
5332
+ interface DanfeStatus {
5333
+ messages: string[];
5334
+ detail?: string;
5335
+ valid: boolean;
5336
+ }
5337
+ declare class StatusMarks {
5338
+ private readonly context;
5339
+ protected readonly cancelled: string[];
5340
+ protected readonly denied: string[];
5341
+ protected readonly invalid = "SEM VALOR FISCAL";
5342
+ protected readonly messageSize = 40;
5343
+ protected readonly detailSize = 16;
5344
+ protected readonly lineHeight = 1.3;
5345
+ constructor(context: DanfePdfDocument);
5346
+ get isHomolog(): boolean;
5347
+ get isContingency(): boolean;
5348
+ get isProtocoled(): boolean;
5349
+ get cStat(): string | undefined;
5350
+ get cancellation(): RetEvento['infEvento'] | undefined;
5351
+ status(): DanfeStatus;
5352
+ protected fit(text: string, size: number, width: number): number;
5353
+ watermark(x: number, y: number, width: number, height: number): void;
5354
+ }
5355
+
5356
+ interface DanfeBlocks {
5357
+ canhoto?: DanfeBlock;
5358
+ header: DanfeBlock;
5359
+ firstPage: DanfeBlock[];
5360
+ items: DanfeItemsBlock;
5361
+ lastPage: DanfeBlock[];
5362
+ footer: DanfeBlock;
5363
+ }
5364
+ interface DanfePage {
5365
+ number: number;
5366
+ total: number;
5367
+ }
5368
+ declare abstract class DanfePdfDocument {
5369
+ protected readonly stream: Writable;
5370
+ data: NFe$1;
5371
+ protNFe?: ProtNFe;
5372
+ events: RetEvento[];
5373
+ readonly builder: PdfBuilder;
5374
+ readonly toolkit: XmlToolkit;
5375
+ readonly format: DanfeFormatter;
5376
+ readonly fields: FieldBox;
5377
+ readonly status: StatusMarks;
5378
+ readonly defaults: {
5379
+ displayTitle: true;
5380
+ font: string;
5381
+ info: {
5382
+ Author: string;
5383
+ Creator: string;
5384
+ Keywords: string;
5385
+ Title: string;
5386
+ Subject: string;
5387
+ };
5388
+ };
5389
+ options: DanfeOptions;
5390
+ readonly margins: {
5391
+ readonly top: number;
5392
+ readonly right: number;
5393
+ readonly bottom: number;
5394
+ readonly left: number;
5395
+ };
5396
+ readonly gap: number;
5397
+ page: DanfePage;
5398
+ private _blocks?;
5399
+ protected abstract createBlocks(): DanfeBlocks;
5400
+ protected get blocks(): DanfeBlocks;
5401
+ constructor(stream: Writable);
5402
+ get bold(): string;
5403
+ get contentWidth(): number;
5404
+ get det(): Det[];
5405
+ asArray<T>(value?: T | T[]): T[];
5406
+ protected apply(): void;
5407
+ protected parse(xml: string): Promise<void>;
5408
+ protected visible(blocks: (DanfeBlock | undefined)[]): DanfeBlock[];
5409
+ protected stackHeight(blocks: DanfeBlock[]): number;
5410
+ protected get canhoto(): DanfeBlock | undefined;
5411
+ protected get pageTop(): number;
5412
+ protected get pageBottom(): number;
5413
+ protected paginate(): DanfePageSlice<Det>[];
5414
+ protected draw(slice: DanfePageSlice<Det>): void;
5415
+ build(xml: string): Promise<this>;
5416
+ end(): void;
5417
+ }
5418
+
5419
+ declare class DanfeDefaultPdfDocument extends DanfePdfDocument {
5420
+ protected createBlocks(): DanfeBlocks;
5421
+ }
5422
+
5423
+ declare class DanfeRtcPdfDocument extends DanfePdfDocument {
5424
+ protected createBlocks(): DanfeBlocks;
5425
+ }
5426
+
5042
5427
  declare class NfeXmlBuilder<T extends object = NFe$1, S extends Schema = typeof DefaultSchema> implements INfeXmlBuilder<T, S> {
5043
5428
  protected readonly builder: XmlToolkit;
5044
5429
  protected contingency?: ContingencyOptions | undefined;
@@ -5131,4 +5516,4 @@ declare class NFCe implements NFe$1 {
5131
5516
  Signature?: Signature;
5132
5517
  }
5133
5518
 
5134
- export { type AccessKey, AccessKeyBuilder, type AgropecuarioBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, type DFeReferenciadoBuilder, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultSchema, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, EventoCstatToCancelRegister, EventoCstatToProtocol, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbsCbsTotBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfPAABuilder, type InfProt, type InfRespTecBuilder, type InfSolicNFFBuilder, InutCstatToProtocol, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IsBuilder, type IsTotBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeComplements, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, PL_009, PL_010, type PagBuilder, type PipelineAuthorizerResponse, type PipelineEventResponse, type PipelineInutilizacaoResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProcInutNFe, type ProdBuilder, type ProtNFe, type ProtNFeAttributes, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetInutNFe, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, type TotalIncrementHost, TpEmis, TpEvent, type TranspBuilder, type VItemBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, schemas };
5519
+ export { type AccessKey, AccessKeyBuilder, type AgropecuarioBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsChNFe, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaChaveDistribuicaoDFe, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, type DFeReferenciadoBuilder, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, type DanfeArea, DanfeDefaultPdfDocument, type DanfeFieldCell, type DanfeItemsCell, type DanfeItemsColumn, type DanfeItemsPairsCell, DanfeMargins, type DanfeOptions, type DanfePageSlice, DanfeRtcPdfDocument, DanfeSize, DefaultDetBuilderAggregator, DefaultSchema, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetEventoManifestacao, type DetGroupBuilder, type DistribuicaoDFePayload, type DistribuicaoDFeRequest, type DistribuicaoDFeResponse, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, EventoCstatToCancelRegister, EventoCstatToProtocol, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoManifestacao, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbsCbsTotBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfPAABuilder, type InfProt, type InfRespTecBuilder, type InfSolicNFFBuilder, InutCstatToProtocol, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IsBuilder, type IsTotBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeComplements, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeDistribuicaoDFePipeline, NfeManifestacaoPipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, PL_009, PL_010, type PagBuilder, type PipelineAuthorizerResponse, type PipelineDistribuicaoDFeResponse, type PipelineEventResponse, type PipelineInutilizacaoResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProcInutNFe, type ProdBuilder, type ProtNFe, type ProtNFeAttributes, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetDistDFeInt, type RetEvento, type RetEventoItem, type RetInutNFe, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, type TotalIncrementHost, TpEmis, TpEvent, type TpEventManifestacao, type TranspBuilder, type VItemBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, mm, ptPerMm, schemas };