@shad0wz7/nestjs-pdf 2.4.3 → 2.5.1

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.
package/dist/index.d.mts CHANGED
@@ -1,393 +1,407 @@
1
- import { OnModuleDestroy, DynamicModule, ModuleMetadata, OnModuleInit, InjectionToken, OptionalFactoryDependency } from '@nestjs/common';
2
- import { HandlebarsOptions } from '@gboutte/nestjs-hbs/dist/handlebars-options.interface';
3
- import * as _puppeteer_browsers from '@puppeteer/browsers';
4
- import { Browser as Browser$1 } from '@puppeteer/browsers';
5
- import { Browser, BrowserContext, PDFOptions } from 'puppeteer';
6
- import { MJMLParsingOptions } from 'mjml-core';
7
- import { Options, LocalsObject } from 'pug';
8
- import { Options as Options$1, Data } from 'ejs';
9
- import { ConfigureOptions } from 'nunjucks';
10
- import { EtaConfig } from 'eta';
11
- import { EscapeFunction } from 'mustache';
12
- import { HandlebarsService } from '@gboutte/nestjs-hbs';
13
-
1
+ import { DynamicModule, InjectionToken, ModuleMetadata, OnModuleDestroy, OnModuleInit, OptionalFactoryDependency } from "@nestjs/common";
2
+ import { HandlebarsService } from "@gboutte/nestjs-hbs";
3
+ import { Browser } from "@puppeteer/browsers";
4
+ import { Browser as Browser$1, BrowserContext, PDFOptions } from "puppeteer";
5
+ import { Data, Options } from "ejs";
6
+ import { EtaConfig } from "eta";
7
+ import { EscapeFunction } from "mustache";
8
+ import { ConfigureOptions } from "nunjucks";
9
+ import { LocalsObject, Options as Options$1 } from "pug";
10
+ import { HandlebarsOptions } from "@gboutte/nestjs-hbs/dist/handlebars-options.interface";
11
+ import { MJMLParsingOptions } from "mjml-core";
12
+ //#region src/helpers/getRelativePath.helper.d.ts
13
+ /**
14
+ * Get the relative path to a value from the module directory.
15
+ * @param moduleDir the path of the module, typically __dirname
16
+ * @param relativeToModule the path to the value relative to the module directory
17
+ * @returns the relative path from the current working directory to the value
18
+ * @example
19
+ * getRelativePathToValue(__dirname, './templates/my-template.hbs');
20
+ * // returns 'context/pdf/templates/my-template.hbs' if the current working directory is '/
21
+ */
22
+ declare function getRelativePathToValue(moduleDir: string, relativeToModule: string): string;
23
+ //#endregion
24
+ //#region src/puppeteer/browser/browser.service.d.ts
14
25
  declare enum BrowserTag {
15
- LATEST = "latest",
16
- BETA = "beta",
17
- DEV = "dev",
18
- STABLE = "stable",
19
- CANARY = "canary"
26
+ LATEST = "latest",
27
+ BETA = "beta",
28
+ DEV = "dev",
29
+ STABLE = "stable",
30
+ CANARY = "canary"
20
31
  }
32
+ type Headless = boolean | 'shell' | undefined;
21
33
  declare class BrowserService implements OnModuleDestroy {
22
- private readonly cacheDir;
23
- private readonly options?;
24
- private _browserInstance;
25
- private browser;
26
- activeJobs: number;
27
- totalJobs: number;
28
- private recycleRequested;
29
- private recycling;
30
- private browserTag;
31
- private useLockedBrowser;
32
- private buildId;
33
- constructor(pdfParams: PuppeteerParameters);
34
- onModuleDestroy(): Promise<void>;
35
- getBrowserInstance(args: string[], headless: boolean | 'shell' | undefined, executablePathBin: string | undefined): Promise<Browser>;
36
- createContext(args: string[], headless: boolean | 'shell' | undefined, executablePath?: string): Promise<BrowserContext>;
37
- markJobStarted(): void;
38
- markJobFinished(): Promise<void>;
39
- recycleBrowserIfNeeded(): Promise<void>;
40
- private cleanupCacheBestEffort;
41
- install(lock?: boolean): Promise<_puppeteer_browsers.InstalledBrowser | null | undefined>;
42
- private registerCleanupHooks;
43
- private loadBrowser;
44
- setBrowser(browser: Browser$1): void;
45
- getBrowser(): Browser$1;
46
- private loadBrowserTag;
47
- private loadBuildId;
48
- setBrowserTag(browserTag: BrowserTag): void;
49
- getBrowserTag(): BrowserTag;
50
- getBuildId(): string | undefined;
51
- setBuildId(value: string | undefined): void;
52
- private loadUseLockedBrowser;
53
- hasBrowserInstalled(browser: Browser$1, buildId: string): Promise<boolean>;
54
- getExecutablePath(): Promise<string>;
55
- private writeLockFile;
56
- getLockedBuildId(browser: Browser$1): string | null;
57
- }
58
-
59
- type PugOptions = Options;
60
- declare class PugService {
61
- render(template: string, data?: LocalsObject, options?: PugOptions): string;
62
- renderFile(filePath: string, data?: LocalsObject, options?: PugOptions): string;
34
+ private readonly cacheDir;
35
+ private readonly options?;
36
+ private _browserInstance;
37
+ private browser;
38
+ activeJobs: number;
39
+ totalJobs: number;
40
+ private recycleRequested;
41
+ private recycling;
42
+ private browserTag;
43
+ private useLockedBrowser;
44
+ private buildId;
45
+ constructor(pdfParams: PuppeteerParameters);
46
+ onModuleDestroy(): Promise<void>;
47
+ getBrowserInstance(args: Array<string>, headless: boolean | 'shell' | undefined, executablePathBin: string | undefined): Promise<Browser$1>;
48
+ createContext(args: Array<string>, headless: Headless, executablePath?: string): Promise<BrowserContext>;
49
+ markJobStarted(): void;
50
+ markJobFinished(): Promise<void>;
51
+ recycleBrowserIfNeeded(): Promise<void>;
52
+ private cleanupCacheBestEffort;
53
+ install(lock?: boolean): Promise<import("@puppeteer/browsers", { with: { "resolution-mode": "import" } }).InstalledBrowser | null | undefined>;
54
+ private registerCleanupHooks;
55
+ private loadBrowser;
56
+ setBrowser(browser: Browser): void;
57
+ getBrowser(): Browser;
58
+ private loadBrowserTag;
59
+ private loadBuildId;
60
+ setBrowserTag(browserTag: BrowserTag): void;
61
+ getBrowserTag(): BrowserTag;
62
+ getBuildId(): string | undefined;
63
+ setBuildId(value: string | undefined): void;
64
+ private loadUseLockedBrowser;
65
+ hasBrowserInstalled(browser: Browser, buildId: string): Promise<boolean>;
66
+ getExecutablePath(): Promise<string>;
67
+ private launchBrowser;
68
+ private writeLockFile;
69
+ getLockedBuildId(browser: Browser): string | null;
63
70
  }
64
-
65
- interface EjsOptions extends Omit<Options$1, 'async'> {
66
- async?: boolean;
71
+ //#endregion
72
+ //#region src/puppeteer/engines/ejs/ejs.service.d.ts
73
+ interface EjsOptions extends Omit<Options, 'async'> {
74
+ async?: boolean;
67
75
  }
68
76
  declare class EjsService {
69
- render(template: string, data?: Data, options?: EjsOptions): Promise<string>;
70
- renderFile(filePath: string, data?: Data, options?: EjsOptions): Promise<string>;
71
- }
72
-
73
- interface NunjucksOptions extends Partial<ConfigureOptions> {
74
- noCache?: boolean;
75
- watch?: boolean;
76
- throwOnUndefined?: boolean;
77
- trimBlocks?: boolean;
78
- lstripBlocks?: boolean;
79
- }
80
- declare class NunjucksService {
81
- constructor();
82
- render(template: string, data?: Record<string, unknown>, options?: NunjucksOptions): string;
83
- renderFile(filePath: string, data?: Record<string, unknown>, options?: NunjucksOptions): string;
77
+ render(template: string, data?: Data, options?: EjsOptions): Promise<string>;
78
+ renderFile(filePath: string, data?: Data, options?: EjsOptions): Promise<string>;
84
79
  }
85
-
80
+ //#endregion
81
+ //#region src/puppeteer/engines/eta/eta.service.d.ts
86
82
  interface EtaOptions extends Partial<EtaConfig> {
87
- cache?: boolean;
88
- autoEscape?: boolean;
89
- varName?: string;
90
- views?: string;
91
- useWith?: boolean;
92
- plugins?: any[];
83
+ cache?: boolean;
84
+ autoEscape?: boolean;
85
+ varName?: string;
86
+ views?: string;
87
+ useWith?: boolean;
88
+ plugins?: Array<any>;
93
89
  }
94
90
  declare class EtaService {
95
- private eta;
96
- private readonly templateCache;
97
- private readonly maxCacheSize;
98
- constructor();
99
- /**
100
- * Render an Eta template from a string
101
- * @param template The template string to render
102
- * @param data The data object to use for rendering
103
- * @param options Optional Eta rendering options
104
- * @returns The rendered HTML string
105
- */
106
- render(template: string, data?: Record<string, unknown>, options?: EtaOptions): string;
107
- /**
108
- * Render an Eta template from a file
109
- * @param filePath The path to the template file
110
- * @param data The data object to use for rendering
111
- * @param options Optional Eta rendering options
112
- * @returns The rendered HTML string
113
- */
114
- renderFile(filePath: string, data?: Record<string, unknown>, options?: EtaOptions): string;
115
- /**
116
- * Clear the template cache
117
- */
118
- clearCache(): void;
119
- /**
120
- * Get the current cache size
121
- * @returns The number of cached templates
122
- */
123
- getCacheSize(): number;
91
+ private readonly eta;
92
+ private readonly templateCache;
93
+ private readonly maxCacheSize;
94
+ constructor();
95
+ /**
96
+ * Render an Eta template from a string
97
+ * @param template The template string to render
98
+ * @param data The data object to use for rendering
99
+ * @param options Optional Eta rendering options
100
+ * @returns The rendered HTML string
101
+ */
102
+ render(template: string, data?: Record<string, unknown>, options?: EtaOptions): string;
103
+ /**
104
+ * Render an Eta template from a file
105
+ * @param filePath The path to the template file
106
+ * @param data The data object to use for rendering
107
+ * @param options Optional Eta rendering options
108
+ * @returns The rendered HTML string
109
+ */
110
+ renderFile(filePath: string, data?: Record<string, unknown>, options?: EtaOptions): string;
111
+ /**
112
+ * Clear the template cache
113
+ */
114
+ clearCache(): void;
115
+ /**
116
+ * Get the current cache size
117
+ * @returns The number of cached templates
118
+ */
119
+ getCacheSize(): number;
124
120
  }
125
-
121
+ //#endregion
122
+ //#region src/puppeteer/engines/mustache/mustache.service.d.ts
126
123
  interface MustacheOptions {
127
- tags?: [string, string];
128
- escape?: EscapeFunction;
124
+ tags?: [string, string];
125
+ escape?: EscapeFunction;
129
126
  }
130
127
  declare class MustacheService {
131
- private readonly templateCache;
132
- private readonly maxCacheSize;
133
- /**
134
- * Render a Mustache template from a string
135
- * @param template The template string to render
136
- * @param data The data object to use for rendering
137
- * @param options Optional Mustache rendering options
138
- * @returns The rendered HTML string
139
- */
140
- render(template: string, data?: Record<string, unknown>, options?: MustacheOptions): string;
141
- /**
142
- * Render a Mustache template from a file
143
- * @param filePath The path to the template file
144
- * @param data The data object to use for rendering
145
- * @param options Optional Mustache rendering options
146
- * @returns The rendered HTML string
147
- */
148
- renderFile(filePath: string, data?: Record<string, unknown>, options?: MustacheOptions): string;
149
- /**
150
- * Clear the template cache
151
- */
152
- clearCache(): void;
153
- /**
154
- * Get the current cache size
155
- * @returns The number of cached templates
156
- */
157
- getCacheSize(): number;
128
+ private readonly templateCache;
129
+ private readonly maxCacheSize;
130
+ /**
131
+ * Render a Mustache template from a string
132
+ * @param template The template string to render
133
+ * @param data The data object to use for rendering
134
+ * @param options Optional Mustache rendering options
135
+ * @returns The rendered HTML string
136
+ */
137
+ render(template: string, data?: Record<string, unknown>, options?: MustacheOptions): string;
138
+ /**
139
+ * Render a Mustache template from a file
140
+ * @param filePath The path to the template file
141
+ * @param data The data object to use for rendering
142
+ * @param options Optional Mustache rendering options
143
+ * @returns The rendered HTML string
144
+ */
145
+ renderFile(filePath: string, data?: Record<string, unknown>, options?: MustacheOptions): string;
146
+ /**
147
+ * Clear the template cache
148
+ */
149
+ clearCache(): void;
150
+ /**
151
+ * Get the current cache size
152
+ * @returns The number of cached templates
153
+ */
154
+ getCacheSize(): number;
158
155
  }
159
-
156
+ //#endregion
157
+ //#region src/puppeteer/engines/nunjucks/nunjucks.service.d.ts
158
+ interface NunjucksOptions extends Partial<ConfigureOptions> {
159
+ noCache?: boolean;
160
+ watch?: boolean;
161
+ throwOnUndefined?: boolean;
162
+ trimBlocks?: boolean;
163
+ lstripBlocks?: boolean;
164
+ }
165
+ declare class NunjucksService {
166
+ constructor();
167
+ render(template: string, data?: Record<string, unknown>, options?: NunjucksOptions): string;
168
+ renderFile(filePath: string, data?: Record<string, unknown>, options?: NunjucksOptions): string;
169
+ }
170
+ //#endregion
171
+ //#region src/puppeteer/engines/pug/pug.service.d.ts
172
+ type PugOptions = Options$1;
173
+ declare class PugService {
174
+ render(template: string, data?: LocalsObject, options?: PugOptions): string;
175
+ renderFile(filePath: string, data?: LocalsObject, options?: PugOptions): string;
176
+ }
177
+ //#endregion
178
+ //#region src/puppeteer/puppeteer-parameters.interface.d.ts
160
179
  interface PuppeteerParameters {
161
- pdfOptions?: PDFOptions;
162
- hbsOptions?: HandlebarsOptions;
163
- mjmlOptions?: MJMLParsingOptions;
164
- pugOptions?: PugOptions;
165
- ejsOptions?: EjsOptions;
166
- nunjucksOptions?: NunjucksOptions;
167
- etaOptions?: EtaOptions;
168
- mustacheOptions?: MustacheOptions;
169
- chromiumRevision?: string;
170
- buildId?: string;
171
- headless?: boolean | 'shell';
172
- browser?: Browser$1;
173
- browserTag?: BrowserTag;
174
- useLockedBrowser?: boolean;
175
- browserInstallBaseUrl?: string;
176
- extraPuppeteerArgs?: string[];
177
- executablePath?: string;
178
- cleanupBrowserCacheOnExit?: boolean;
180
+ pdfOptions?: PDFOptions;
181
+ hbsOptions?: HandlebarsOptions;
182
+ mjmlOptions?: MJMLParsingOptions;
183
+ pugOptions?: PugOptions;
184
+ ejsOptions?: EjsOptions;
185
+ nunjucksOptions?: NunjucksOptions;
186
+ etaOptions?: EtaOptions;
187
+ mustacheOptions?: MustacheOptions;
188
+ chromiumRevision?: string;
189
+ buildId?: string;
190
+ headless?: boolean | 'shell';
191
+ browser?: Browser;
192
+ browserTag?: BrowserTag;
193
+ useLockedBrowser?: boolean;
194
+ browserInstallBaseUrl?: string;
195
+ extraPuppeteerArgs?: Array<string>;
196
+ executablePath?: string;
197
+ cleanupBrowserCacheOnExit?: boolean;
179
198
  }
180
-
199
+ //#endregion
200
+ //#region src/nestjs-pdf.module.d.ts
181
201
  interface PdfLibModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
182
- inject?: any[];
183
- useFactory: (...args: any[]) => any;
202
+ inject?: Array<any>;
203
+ useFactory: (...args: Array<any>) => any;
184
204
  }
185
205
  declare class NestjsPdfModule {
186
- static forRoot(options: PuppeteerParameters): DynamicModule;
187
- static forRootAsync(options: PdfLibModuleAsyncOptions): DynamicModule;
206
+ static forRoot(options: PuppeteerParameters): DynamicModule;
207
+ static forRootAsync(options: PdfLibModuleAsyncOptions): DynamicModule;
188
208
  }
189
-
209
+ //#endregion
210
+ //#region src/puppeteer/engines/mjml/mjml.service.d.ts
190
211
  declare class MjmlService {
191
- render(template: string, options?: MJMLParsingOptions): Promise<string>;
192
- renderFile(filePath: string, options?: MJMLParsingOptions): Promise<string>;
212
+ render(template: string, options?: MJMLParsingOptions): Promise<string>;
213
+ renderFile(filePath: string, options?: MJMLParsingOptions): Promise<string>;
193
214
  }
194
-
215
+ //#endregion
216
+ //#region src/puppeteer/puppeteer.service.d.ts
195
217
  declare class PuppeteerService {
196
- private readonly browserService;
197
- private readonly options;
198
- private readonly hbsService?;
199
- private readonly mjmlService?;
200
- private readonly pugService?;
201
- private readonly ejsService?;
202
- private readonly nunjucksService?;
203
- private readonly etaService?;
204
- private readonly mustacheService?;
205
- constructor(browserService: BrowserService, options: PuppeteerParameters, hbsService?: HandlebarsService | undefined, mjmlService?: MjmlService | undefined, pugService?: PugService | undefined, ejsService?: EjsService | undefined, nunjucksService?: NunjucksService | undefined, etaService?: EtaService | undefined, mustacheService?: MustacheService | undefined);
206
- private readonly limit;
207
- generatePdfFromHtml(html: string, options?: PuppeteerParameters): Promise<Uint8Array>;
208
- generatePdfFromTemplateHbsString(template: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
209
- generatePdfFromTemplateHbsFile(file: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
210
- generatePdfFromMjmlString(template: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
211
- generatePdfFromMjmlFile(file: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
212
- generatePdfFromPugString(template: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
213
- generatePdfFromPugFile(file: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
214
- generatePdfFromEjsString(template: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
215
- generatePdfFromEjsFile(file: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
216
- generatePdfFromNunjucksString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
217
- generatePdfFromNunjucksFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
218
- generatePdfFromEtaString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
219
- generatePdfFromEtaFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
220
- generatePdfFromMustacheString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
221
- generatePdfFromMustacheFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
218
+ private readonly browserService;
219
+ private readonly options;
220
+ private readonly hbsService?;
221
+ private readonly mjmlService?;
222
+ private readonly pugService?;
223
+ private readonly ejsService?;
224
+ private readonly nunjucksService?;
225
+ private readonly etaService?;
226
+ private readonly mustacheService?;
227
+ constructor(browserService: BrowserService, options: PuppeteerParameters, hbsService?: HandlebarsService | undefined, mjmlService?: MjmlService | undefined, pugService?: PugService | undefined, ejsService?: EjsService | undefined, nunjucksService?: NunjucksService | undefined, etaService?: EtaService | undefined, mustacheService?: MustacheService | undefined);
228
+ private readonly limit;
229
+ generatePdfFromHtml(html: string, options?: PuppeteerParameters): Promise<Uint8Array>;
230
+ generatePdfFromTemplateHbsString(template: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
231
+ generatePdfFromTemplateHbsFile(file: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
232
+ generatePdfFromMjmlString(template: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
233
+ generatePdfFromMjmlFile(file: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
234
+ generatePdfFromPugString(template: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
235
+ generatePdfFromPugFile(file: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
236
+ generatePdfFromEjsString(template: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
237
+ generatePdfFromEjsFile(file: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
238
+ generatePdfFromNunjucksString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
239
+ generatePdfFromNunjucksFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
240
+ generatePdfFromEtaString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
241
+ generatePdfFromEtaFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
242
+ generatePdfFromMustacheString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
243
+ generatePdfFromMustacheFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
222
244
  }
223
-
245
+ //#endregion
246
+ //#region src/nestjs-pdf.service.d.ts
224
247
  declare class NestjsPdfService {
225
- private readonly puppeteerService;
226
- constructor(puppeteerService: PuppeteerService);
227
- /**
228
- * @param html HTML string to convert to PDF
229
- * @param options PDF generation options (optional)
230
- * @returns PDF generated from the provided HTML
231
- * @description This method uses the Puppeteer service to generate a PDF from an HTML string. Generation options can be customized by passing a `PuppeteerParameters` object as the second argument. This allows you to control various aspects of PDF rendering, such as page size, margins, background display, etc. If no options are provided, the default parameters defined in the Puppeteer service will be used.
232
- */
233
- generatePdfFromHtml(html: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
234
- /**
235
- * @param template Handlebars template string
236
- * @param parameters Data parameters to inject into the template
237
- * @param options PDF generation options (optional)
238
- * @returns PDF generated from the provided Handlebars template with parameters applied
239
- * @description This method generates a PDF from a Handlebars template provided as a string. The parameters to inject into the template are passed in the `parameters` object, which is used to render the template before converting it to PDF. PDF generation options can also be customized by passing a `PuppeteerParameters` object as the third argument. This allows you to control various aspects of PDF rendering, such as page size, margins, background display, etc. If no options are provided, the default parameters defined in the Puppeteer service will be used.
240
- */
241
- generatePdfFromTemplateHbsString(template: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
242
- /**
243
- * @param file Path to the Handlebars template file
244
- * @param parameters Data parameters to inject into the template
245
- * @param options PDF generation options (optional)
246
- * @returns PDF generated from the Handlebars template at the provided file path with parameters applied
247
- * @description This method generates a PDF from a Handlebars template located at the specified file path. The file path is passed as a string in the `file` parameter. The parameters to inject into the template are passed in the `parameters` object, which is used to render the template before converting it to PDF. PDF generation options can also be customized by passing a `PuppeteerParameters` object as the third argument. This allows you to control various aspects of PDF rendering, such as page size, margins, background display, etc. If no options are provided, the default parameters defined in the Puppeteer service will be used.
248
- */
249
- generatePdfFromTemplateHbsFile(file: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
250
- /**
251
- * @param template MJML template string
252
- * @param options PDF generation options (optional)
253
- * @returns PDF generated from the provided MJML template
254
- * @description This method generates a PDF from an MJML template provided as a string. MJML (MJML Markup Language) is a markup language designed to reduce the pain of coding a responsive email. The template is first rendered to HTML using the MJML renderer, then converted to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the second argument.
255
- */
256
- generatePdfFromMjmlString(template: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
257
- /**
258
- * @param file Path to the MJML template file
259
- * @param options PDF generation options (optional)
260
- * @returns PDF generated from the MJML template at the provided file path
261
- * @description This method generates a PDF from an MJML template located at the specified file path. The file path is passed as a string in the `file` parameter. The template is first rendered to HTML using the MJML renderer, then converted to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the second argument.
262
- */
263
- generatePdfFromMjmlFile(file: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
264
- /**
265
- * @param template EJS template string
266
- * @param data Data to inject into the template
267
- * @param options PDF generation options (optional)
268
- * @returns PDF generated from the provided EJS template with data applied
269
- * @description This method generates a PDF from an EJS (Embedded JavaScript) template provided as a string. EJS is a templating language with a simple, straightforward syntax. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
270
- */
271
- generatePdfFromEjsString(template: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
272
- /**
273
- * @param file Path to the EJS template file
274
- * @param data Data to inject into the template
275
- * @param options PDF generation options (optional)
276
- * @returns PDF generated from the EJS template at the provided file path with data applied
277
- * @description This method generates a PDF from an EJS template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
278
- */
279
- generatePdfFromEjsFile(file: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
280
- /**
281
- * @param template Pug template string
282
- * @param data Data to inject into the template
283
- * @param options PDF generation options (optional)
284
- * @returns PDF generated from the provided Pug template with data applied
285
- * @description This method generates a PDF from a Pug template provided as a string. Pug is a clean, whitespace-sensitive syntax for writing HTML. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
286
- */
287
- generatePdfFromPugString(template: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
288
- /**
289
- * @param file Path to the Pug template file
290
- * @param data Data to inject into the template
291
- * @param options PDF generation options (optional)
292
- * @returns PDF generated from the Pug template at the provided file path with data applied
293
- * @description This method generates a PDF from a Pug template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
294
- */
295
- generatePdfFromPugFile(file: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
296
- /**
297
- * @param template Nunjucks template string
298
- * @param data Data to inject into the template
299
- * @param options PDF generation options (optional)
300
- * @returns PDF generated from the provided Nunjucks template with data applied
301
- * @description This method generates a PDF from a Nunjucks template provided as a string. Nunjucks is a powerful templating language with support for inheritance, macros, and filters. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
302
- */
303
- generatePdfFromNunjucksString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
304
- /**
305
- * @param file Path to the Nunjucks template file
306
- * @param data Data to inject into the template
307
- * @param options PDF generation options (optional)
308
- * @returns PDF generated from the Nunjucks template at the provided file path with data applied
309
- * @description This method generates a PDF from a Nunjucks template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
310
- */
311
- generatePdfFromNunjucksFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
312
- /**
313
- * @param template Eta template string
314
- * @param data Data to inject into the template
315
- * @param options PDF generation options (optional)
316
- * @returns PDF generated from the provided Eta template with data applied
317
- * @description This method generates a PDF from an Eta template provided as a string. Eta is a fast and lightweight embedded templating language with a syntax similar to EJS but with better performance. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
318
- */
319
- generatePdfFromEtaString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
320
- /**
321
- * @param file Path to the Eta template file
322
- * @param data Data to inject into the template
323
- * @param options PDF generation options (optional)
324
- * @returns PDF generated from the Eta template at the provided file path with data applied
325
- * @description This method generates a PDF from an Eta template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
326
- */
327
- generatePdfFromEtaFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
328
- /**
329
- * @param template Mustache template string
330
- * @param data Data to inject into the template
331
- * @param options PDF generation options (optional)
332
- * @returns PDF generated from the provided Mustache template with data applied
333
- * @description This method generates a PDF from a Mustache template provided as a string. Mustache is a logic-less template language that emphasizes readable and simple templates. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
334
- */
335
- generatePdfFromMustacheString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
336
- /**
337
- * @param file Path to the Mustache template file
338
- * @param data Data to inject into the template
339
- * @param options PDF generation options (optional)
340
- * @returns PDF generated from the Mustache template at the provided file path with data applied
341
- * @description This method generates a PDF from a Mustache template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
342
- */
343
- generatePdfFromMustacheFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
344
- /**
345
- * @param pdf The PDF bytes to modify
346
- * @param fieldName The name of the signature field to add (default: 'SignatureDebtor')
347
- * @param anchorText The text anchor to locate the signature field position (default: '__SIG_DEBTOR_ANCHOR__')
348
- * @returns Modified PDF with a signature field added at the anchor position
349
- * @description This method adds a signature field to a PDF using a text anchor as a reference for the field position. It uses the `addSignatureFieldUsingAnchor` function which finds the anchor in the PDF and inserts a signature field at that location. The signature field is named according to the `fieldName` parameter and the anchor is defined by `anchorText`.
350
- *
351
- * Usage example:
352
- * ```typescript
353
- * const modifiedPdf = await pdfService.addSignatureFieldSignatureDebtorRaw(
354
- * originalPdfBytes,
355
- * 'SignatureDebtor',
356
- * '__SIG_DEBTOR_ANCHOR__'
357
- * );
358
- * ```
359
- *
360
- * In this example, `originalPdfBytes` is a byte array representing the original PDF, `SignatureDebtor` is the name of the signature field to add, and `__SIG_DEBTOR_ANCHOR__` is the anchor text used to position the signature field in the PDF.
361
- *
362
- * If the anchor is not found, the signature field will be added at a default position (centered at the bottom of the last page).
363
- *
364
- * Note: Ensure that the input PDF contains the anchor defined by `anchorText` for the signature field to be positioned correctly. Otherwise, it will be added at a default position.
365
- */
366
- addSignatureFieldSignatureDebtorRaw(pdf: Uint8Array | Buffer, fieldName?: string, anchorText?: string): Promise<Uint8Array<ArrayBufferLike>>;
248
+ private readonly puppeteerService;
249
+ constructor(puppeteerService: PuppeteerService);
250
+ /**
251
+ * @param html HTML string to convert to PDF
252
+ * @param options PDF generation options (optional)
253
+ * @returns PDF generated from the provided HTML
254
+ * @description This method uses the Puppeteer service to generate a PDF from an HTML string. Generation options can be customized by passing a `PuppeteerParameters` object as the second argument. This allows you to control various aspects of PDF rendering, such as page size, margins, background display, etc. If no options are provided, the default parameters defined in the Puppeteer service will be used.
255
+ */
256
+ generatePdfFromHtml(html: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
257
+ /**
258
+ * @param template Handlebars template string
259
+ * @param parameters Data parameters to inject into the template
260
+ * @param options PDF generation options (optional)
261
+ * @returns PDF generated from the provided Handlebars template with parameters applied
262
+ * @description This method generates a PDF from a Handlebars template provided as a string. The parameters to inject into the template are passed in the `parameters` object, which is used to render the template before converting it to PDF. PDF generation options can also be customized by passing a `PuppeteerParameters` object as the third argument. This allows you to control various aspects of PDF rendering, such as page size, margins, background display, etc. If no options are provided, the default parameters defined in the Puppeteer service will be used.
263
+ */
264
+ generatePdfFromTemplateHbsString(template: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
265
+ /**
266
+ * @param file Path to the Handlebars template file
267
+ * @param parameters Data parameters to inject into the template
268
+ * @param options PDF generation options (optional)
269
+ * @returns PDF generated from the Handlebars template at the provided file path with parameters applied
270
+ * @description This method generates a PDF from a Handlebars template located at the specified file path. The file path is passed as a string in the `file` parameter. The parameters to inject into the template are passed in the `parameters` object, which is used to render the template before converting it to PDF. PDF generation options can also be customized by passing a `PuppeteerParameters` object as the third argument. This allows you to control various aspects of PDF rendering, such as page size, margins, background display, etc. If no options are provided, the default parameters defined in the Puppeteer service will be used.
271
+ */
272
+ generatePdfFromTemplateHbsFile(file: string, parameters?: any, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
273
+ /**
274
+ * @param template MJML template string
275
+ * @param options PDF generation options (optional)
276
+ * @returns PDF generated from the provided MJML template
277
+ * @description This method generates a PDF from an MJML template provided as a string. MJML (MJML Markup Language) is a markup language designed to reduce the pain of coding a responsive email. The template is first rendered to HTML using the MJML renderer, then converted to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the second argument.
278
+ */
279
+ generatePdfFromMjmlString(template: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
280
+ /**
281
+ * @param file Path to the MJML template file
282
+ * @param options PDF generation options (optional)
283
+ * @returns PDF generated from the MJML template at the provided file path
284
+ * @description This method generates a PDF from an MJML template located at the specified file path. The file path is passed as a string in the `file` parameter. The template is first rendered to HTML using the MJML renderer, then converted to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the second argument.
285
+ */
286
+ generatePdfFromMjmlFile(file: string, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
287
+ /**
288
+ * @param template EJS template string
289
+ * @param data Data to inject into the template
290
+ * @param options PDF generation options (optional)
291
+ * @returns PDF generated from the provided EJS template with data applied
292
+ * @description This method generates a PDF from an EJS (Embedded JavaScript) template provided as a string. EJS is a templating language with a simple, straightforward syntax. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
293
+ */
294
+ generatePdfFromEjsString(template: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
295
+ /**
296
+ * @param file Path to the EJS template file
297
+ * @param data Data to inject into the template
298
+ * @param options PDF generation options (optional)
299
+ * @returns PDF generated from the EJS template at the provided file path with data applied
300
+ * @description This method generates a PDF from an EJS template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
301
+ */
302
+ generatePdfFromEjsFile(file: string, data?: Data, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
303
+ /**
304
+ * @param template Pug template string
305
+ * @param data Data to inject into the template
306
+ * @param options PDF generation options (optional)
307
+ * @returns PDF generated from the provided Pug template with data applied
308
+ * @description This method generates a PDF from a Pug template provided as a string. Pug is a clean, whitespace-sensitive syntax for writing HTML. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
309
+ */
310
+ generatePdfFromPugString(template: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
311
+ /**
312
+ * @param file Path to the Pug template file
313
+ * @param data Data to inject into the template
314
+ * @param options PDF generation options (optional)
315
+ * @returns PDF generated from the Pug template at the provided file path with data applied
316
+ * @description This method generates a PDF from a Pug template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
317
+ */
318
+ generatePdfFromPugFile(file: string, data?: LocalsObject, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
319
+ /**
320
+ * @param template Nunjucks template string
321
+ * @param data Data to inject into the template
322
+ * @param options PDF generation options (optional)
323
+ * @returns PDF generated from the provided Nunjucks template with data applied
324
+ * @description This method generates a PDF from a Nunjucks template provided as a string. Nunjucks is a powerful templating language with support for inheritance, macros, and filters. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
325
+ */
326
+ generatePdfFromNunjucksString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
327
+ /**
328
+ * @param file Path to the Nunjucks template file
329
+ * @param data Data to inject into the template
330
+ * @param options PDF generation options (optional)
331
+ * @returns PDF generated from the Nunjucks template at the provided file path with data applied
332
+ * @description This method generates a PDF from a Nunjucks template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
333
+ */
334
+ generatePdfFromNunjucksFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
335
+ /**
336
+ * @param template Eta template string
337
+ * @param data Data to inject into the template
338
+ * @param options PDF generation options (optional)
339
+ * @returns PDF generated from the provided Eta template with data applied
340
+ * @description This method generates a PDF from an Eta template provided as a string. Eta is a fast and lightweight embedded templating language with a syntax similar to EJS but with better performance. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
341
+ */
342
+ generatePdfFromEtaString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
343
+ /**
344
+ * @param file Path to the Eta template file
345
+ * @param data Data to inject into the template
346
+ * @param options PDF generation options (optional)
347
+ * @returns PDF generated from the Eta template at the provided file path with data applied
348
+ * @description This method generates a PDF from an Eta template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
349
+ */
350
+ generatePdfFromEtaFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
351
+ /**
352
+ * @param template Mustache template string
353
+ * @param data Data to inject into the template
354
+ * @param options PDF generation options (optional)
355
+ * @returns PDF generated from the provided Mustache template with data applied
356
+ * @description This method generates a PDF from a Mustache template provided as a string. Mustache is a logic-less template language that emphasizes readable and simple templates. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
357
+ */
358
+ generatePdfFromMustacheString(template: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
359
+ /**
360
+ * @param file Path to the Mustache template file
361
+ * @param data Data to inject into the template
362
+ * @param options PDF generation options (optional)
363
+ * @returns PDF generated from the Mustache template at the provided file path with data applied
364
+ * @description This method generates a PDF from a Mustache template located at the specified file path. The file path is passed as a string in the `file` parameter. The data to inject into the template is passed in the `data` object, which is used to render the template before converting it to PDF. PDF generation options can be customized by passing a `PuppeteerParameters` object as the third argument.
365
+ */
366
+ generatePdfFromMustacheFile(file: string, data?: Record<string, unknown>, options?: PuppeteerParameters): Promise<Uint8Array<ArrayBufferLike>>;
367
+ /**
368
+ * @param pdf The PDF bytes to modify
369
+ * @param fieldName The name of the signature field to add (default: 'SignatureDebtor')
370
+ * @param anchorText The text anchor to locate the signature field position (default: '__SIG_DEBTOR_ANCHOR__')
371
+ * @returns Modified PDF with a signature field added at the anchor position
372
+ * @description This method adds a signature field to a PDF using a text anchor as a reference for the field position. It uses the `addSignatureFieldUsingAnchor` function which finds the anchor in the PDF and inserts a signature field at that location. The signature field is named according to the `fieldName` parameter and the anchor is defined by `anchorText`.
373
+ *
374
+ * Usage example:
375
+ * ```typescript
376
+ * const modifiedPdf = await pdfService.addSignatureFieldSignatureDebtorRaw(
377
+ * originalPdfBytes,
378
+ * 'SignatureDebtor',
379
+ * '__SIG_DEBTOR_ANCHOR__'
380
+ * );
381
+ * ```
382
+ *
383
+ * In this example, `originalPdfBytes` is a byte array representing the original PDF, `SignatureDebtor` is the name of the signature field to add, and `__SIG_DEBTOR_ANCHOR__` is the anchor text used to position the signature field in the PDF.
384
+ *
385
+ * If the anchor is not found, the signature field will be added at a default position (centered at the bottom of the last page).
386
+ *
387
+ * Note: Ensure that the input PDF contains the anchor defined by `anchorText` for the signature field to be positioned correctly. Otherwise, it will be added at a default position.
388
+ */
389
+ addSignatureFieldSignatureDebtorRaw(pdf: Uint8Array | Buffer, fieldName?: string, anchorText?: string): Promise<Uint8Array<ArrayBufferLike>>;
367
390
  }
368
-
391
+ //#endregion
392
+ //#region src/puppeteer/puppeteer.module.d.ts
369
393
  interface PuppeteerModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
370
- inject?: (InjectionToken | OptionalFactoryDependency)[];
371
- useFactory: (...args: any[]) => Promise<PuppeteerParameters> | PuppeteerParameters;
394
+ inject?: Array<InjectionToken | OptionalFactoryDependency>;
395
+ useFactory: (...args: Array<any>) => Promise<PuppeteerParameters> | PuppeteerParameters;
372
396
  }
373
397
  declare class PuppeteerModule implements OnModuleInit {
374
- private readonly browserService;
375
- private readonly pdfParams;
376
- constructor(browserService: BrowserService, pdfParams: PuppeteerParameters);
377
- onModuleInit(): Promise<void>;
378
- static forRoot(pdfParameters: PuppeteerParameters): DynamicModule;
379
- static forRootAsync(options: PuppeteerModuleAsyncOptions): DynamicModule;
398
+ private readonly browserService;
399
+ private readonly pdfParams;
400
+ constructor(browserService: BrowserService, pdfParams: PuppeteerParameters);
401
+ onModuleInit(): Promise<void>;
402
+ static forRoot(pdfParameters: PuppeteerParameters): DynamicModule;
403
+ static forRootAsync(options: PuppeteerModuleAsyncOptions): DynamicModule;
380
404
  }
381
-
382
- /**
383
- * Get the relative path to a value from the module directory.
384
- * @param moduleDir the path of the module, typically __dirname
385
- * @param relativeToModule the path to the value relative to the module directory
386
- * @returns the relative path from the current working directory to the value
387
- * @example
388
- * getRelativePathToValue(__dirname, './templates/my-template.hbs');
389
- * // returns 'context/pdf/templates/my-template.hbs' if the current working directory is '/
390
- */
391
- declare function getRelativePathToValue(moduleDir: string, relativeToModule: string): string;
392
-
393
- export { type EjsOptions, EjsService, type EtaOptions, EtaService, MjmlService, type MustacheOptions, MustacheService, NestjsPdfModule, NestjsPdfService, type NunjucksOptions, NunjucksService, type PdfLibModuleAsyncOptions, type PugOptions, PugService, PuppeteerModule, type PuppeteerModuleAsyncOptions, type PuppeteerParameters, PuppeteerService, getRelativePathToValue };
405
+ //#endregion
406
+ export { EjsOptions, EjsService, EtaOptions, EtaService, MjmlService, MustacheOptions, MustacheService, NestjsPdfModule, NestjsPdfService, NunjucksOptions, NunjucksService, PdfLibModuleAsyncOptions, PugOptions, PugService, PuppeteerModule, PuppeteerModuleAsyncOptions, PuppeteerParameters, PuppeteerService, getRelativePathToValue };
407
+ //# sourceMappingURL=index.d.mts.map