@powerlines/plugin-crypto 0.10.31 → 0.10.33

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.
Files changed (164) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  2. package/dist/{chunk-X42XA8SV.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/alloy/src/core/components/output.cjs +1 -0
  4. package/dist/alloy/src/core/components/output.mjs +1 -0
  5. package/dist/alloy/src/core/components/single-line-comment.cjs +1 -0
  6. package/dist/alloy/src/core/components/single-line-comment.mjs +1 -0
  7. package/dist/alloy/src/core/components/source-file.cjs +1 -0
  8. package/dist/alloy/src/core/components/source-file.mjs +1 -0
  9. package/dist/alloy/src/core/contexts/context.cjs +1 -0
  10. package/dist/alloy/src/core/contexts/context.mjs +1 -0
  11. package/dist/alloy/src/core/contexts/reflection.cjs +1 -0
  12. package/dist/alloy/src/core/contexts/reflection.mjs +1 -0
  13. package/dist/alloy/src/create-plugin.cjs +2 -0
  14. package/dist/alloy/src/create-plugin.mjs +2 -0
  15. package/dist/alloy/src/helpers/refkey.cjs +1 -0
  16. package/dist/alloy/src/helpers/refkey.mjs +1 -0
  17. package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -0
  18. package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -0
  19. package/dist/alloy/src/markdown/components/markdown-table.cjs +1 -0
  20. package/dist/alloy/src/markdown/components/markdown-table.mjs +1 -0
  21. package/dist/alloy/src/markdown/contexts/markdown-table.cjs +1 -0
  22. package/dist/alloy/src/markdown/contexts/markdown-table.mjs +1 -0
  23. package/dist/alloy/src/typescript/components/builtin-file.cjs +1 -0
  24. package/dist/alloy/src/typescript/components/builtin-file.mjs +1 -0
  25. package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
  26. package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
  27. package/dist/alloy/src/typescript/components/tsdoc.cjs +1 -0
  28. package/dist/alloy/src/typescript/components/tsdoc.mjs +1 -0
  29. package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -0
  30. package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -0
  31. package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -0
  32. package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -0
  33. package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -0
  34. package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -0
  35. package/dist/components/crypto.cjs +133 -0
  36. package/dist/components/crypto.d.cts +13 -0
  37. package/dist/components/crypto.d.mts +13 -0
  38. package/dist/components/crypto.mjs +133 -0
  39. package/dist/components/index.cjs +1 -0
  40. package/dist/components/index.d.mts +1 -0
  41. package/dist/components/index.mjs +1 -0
  42. package/dist/deepkit/schemas/reflection.cjs +1 -0
  43. package/dist/deepkit/schemas/reflection.d.cts +1560 -0
  44. package/dist/deepkit/schemas/reflection.d.mts +1560 -0
  45. package/dist/deepkit/schemas/reflection.mjs +1 -0
  46. package/dist/deepkit/schemas/reflection2.cjs +1 -0
  47. package/dist/deepkit/schemas/reflection2.mjs +1 -0
  48. package/dist/deepkit/src/capnp.cjs +1 -0
  49. package/dist/deepkit/src/capnp.mjs +1 -0
  50. package/dist/deepkit/src/reflect-type.cjs +1 -0
  51. package/dist/deepkit/src/reflect-type.mjs +1 -0
  52. package/dist/deepkit/src/resolve-reflections.cjs +1 -0
  53. package/dist/deepkit/src/resolve-reflections.mjs +1 -0
  54. package/dist/deepkit/src/types.d.cts +10 -0
  55. package/dist/deepkit/src/types.d.mts +10 -0
  56. package/dist/deepkit/src/utilities.cjs +1 -0
  57. package/dist/deepkit/src/utilities.mjs +1 -0
  58. package/dist/deepkit/src/vendor/type.cjs +1 -0
  59. package/dist/deepkit/src/vendor/type.d.cts +7 -0
  60. package/dist/deepkit/src/vendor/type.d.mts +7 -0
  61. package/dist/deepkit/src/vendor/type.mjs +1 -0
  62. package/dist/index.cjs +1 -208
  63. package/dist/index.d.cts +4 -12
  64. package/dist/index.d.mts +5 -12
  65. package/dist/index.mjs +1 -205
  66. package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
  67. package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
  68. package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
  69. package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
  70. package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
  71. package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
  72. package/dist/plugin-babel/src/helpers/index.cjs +1 -0
  73. package/dist/plugin-babel/src/helpers/index.mjs +1 -0
  74. package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
  75. package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
  76. package/dist/plugin-babel/src/helpers/options.cjs +1 -0
  77. package/dist/plugin-babel/src/helpers/options.mjs +1 -0
  78. package/dist/plugin-babel/src/index.cjs +1 -0
  79. package/dist/plugin-babel/src/index.mjs +1 -0
  80. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  81. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  82. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  83. package/dist/plugin-env/src/babel/index.cjs +1 -0
  84. package/dist/plugin-env/src/babel/index.mjs +1 -0
  85. package/dist/plugin-env/src/babel/plugin.cjs +5 -0
  86. package/dist/plugin-env/src/babel/plugin.mjs +5 -0
  87. package/dist/plugin-env/src/components/docs.cjs +1 -0
  88. package/dist/plugin-env/src/components/docs.mjs +1 -0
  89. package/dist/plugin-env/src/components/env.cjs +34 -0
  90. package/dist/plugin-env/src/components/env.mjs +31 -0
  91. package/dist/plugin-env/src/components/index.cjs +1 -0
  92. package/dist/plugin-env/src/components/index.mjs +1 -0
  93. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +1 -0
  94. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +1 -0
  95. package/dist/plugin-env/src/helpers/index.cjs +1 -0
  96. package/dist/plugin-env/src/helpers/index.mjs +1 -0
  97. package/dist/plugin-env/src/helpers/load.cjs +1 -0
  98. package/dist/plugin-env/src/helpers/load.mjs +1 -0
  99. package/dist/plugin-env/src/helpers/persistence.cjs +1 -0
  100. package/dist/plugin-env/src/helpers/persistence.mjs +1 -0
  101. package/dist/plugin-env/src/helpers/reflect.cjs +1 -0
  102. package/dist/plugin-env/src/helpers/reflect.mjs +1 -0
  103. package/dist/plugin-env/src/helpers/source-file-env.cjs +1 -0
  104. package/dist/plugin-env/src/helpers/source-file-env.mjs +1 -0
  105. package/dist/plugin-env/src/helpers/template-helpers.cjs +1 -0
  106. package/dist/plugin-env/src/helpers/template-helpers.mjs +1 -0
  107. package/dist/plugin-env/src/index.cjs +16 -0
  108. package/dist/plugin-env/src/index.mjs +16 -0
  109. package/dist/plugin-env/src/types/plugin.d.cts +135 -0
  110. package/dist/plugin-env/src/types/plugin.d.mts +136 -0
  111. package/dist/plugin-env/src/types/runtime.d.cts +792 -0
  112. package/dist/plugin-env/src/types/runtime.d.mts +792 -0
  113. package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
  114. package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
  115. package/dist/powerlines/src/lib/entry.cjs +1 -0
  116. package/dist/powerlines/src/lib/entry.mjs +1 -0
  117. package/dist/powerlines/src/lib/logger.cjs +1 -0
  118. package/dist/powerlines/src/lib/logger.mjs +1 -0
  119. package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
  120. package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
  121. package/dist/powerlines/src/lib/utilities/file-header.cjs +10 -0
  122. package/dist/powerlines/src/lib/utilities/file-header.mjs +10 -0
  123. package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
  124. package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
  125. package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -0
  126. package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -0
  127. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  128. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  129. package/dist/powerlines/src/types/babel.d.cts +22 -0
  130. package/dist/powerlines/src/types/babel.d.mts +22 -0
  131. package/dist/powerlines/src/types/build.d.cts +139 -0
  132. package/dist/powerlines/src/types/build.d.mts +139 -0
  133. package/dist/powerlines/src/types/commands.d.cts +8 -0
  134. package/dist/powerlines/src/types/commands.d.mts +9 -0
  135. package/dist/powerlines/src/types/config.d.cts +356 -0
  136. package/dist/powerlines/src/types/config.d.mts +357 -0
  137. package/dist/powerlines/src/types/context.d.cts +358 -0
  138. package/dist/powerlines/src/types/context.d.mts +360 -0
  139. package/dist/powerlines/src/types/fs.d.cts +458 -0
  140. package/dist/powerlines/src/types/fs.d.mts +458 -0
  141. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  142. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  143. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  144. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  145. package/dist/powerlines/src/types/resolved.d.mts +82 -0
  146. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  147. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  148. package/dist/types/index.cjs +0 -1
  149. package/dist/types/index.d.cts +1 -2
  150. package/dist/types/index.d.mts +1 -2
  151. package/dist/types/index.mjs +1 -1
  152. package/dist/types/plugin.cjs +0 -1
  153. package/dist/types/plugin.d.cts +41 -1
  154. package/dist/types/plugin.d.mts +41 -1
  155. package/dist/types/plugin.mjs +1 -1
  156. package/package.json +8 -8
  157. package/dist/index-CEgs-Dz2.d.cts +0 -1
  158. package/dist/index-D9zIjQH9.d.mts +0 -1
  159. package/dist/plugin-D-FiWP-m.d.cts +0 -4211
  160. package/dist/plugin-D1UNjTOh.d.mts +0 -4210
  161. package/dist/plugin-DHXHjv16.cjs +0 -0
  162. package/dist/plugin-DzeYlbKJ.mjs +0 -1
  163. package/dist/types-BKeuN6sy.mjs +0 -1
  164. package/dist/types-DHkg7xmX.cjs +0 -0
@@ -0,0 +1,360 @@
1
+ import { ResolveOptions, VirtualFile, VirtualFileSystemInterface } from "./fs.mjs";
2
+ import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
3
+ import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
4
+ import "./hooks.mjs";
5
+ import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
6
+ import "./plugin.mjs";
7
+ import { NonUndefined } from "@stryke/types/base";
8
+ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
9
+ import { EnvPaths } from "@stryke/env/get-env-paths";
10
+ import { FetchRequestOptions } from "@stryke/http/fetch";
11
+ import { PackageJson } from "@stryke/types/package-json";
12
+ import { Jiti } from "jiti";
13
+ import { SourceMap } from "magic-string";
14
+ import { ParseResult, ParserOptions } from "oxc-parser";
15
+ import { Range } from "semver";
16
+ import { Project } from "ts-morph";
17
+ import { RequestInfo, Response } from "undici";
18
+
19
+ //#region ../powerlines/src/types/context.d.ts
20
+
21
+ /**
22
+ * The severity level of a {@link LogRecord}.
23
+ */
24
+ type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
25
+ declare const LogLevel: {
26
+ DEBUG: LogLevel;
27
+ INFO: LogLevel;
28
+ WARNING: LogLevel;
29
+ ERROR: LogLevel;
30
+ FATAL: LogLevel;
31
+ };
32
+ interface MetaInfo {
33
+ /**
34
+ * The checksum generated from the resolved options
35
+ */
36
+ checksum: string;
37
+ /**
38
+ * The build id
39
+ */
40
+ buildId: string;
41
+ /**
42
+ * The release id
43
+ */
44
+ releaseId: string;
45
+ /**
46
+ * The build timestamp
47
+ */
48
+ timestamp: number;
49
+ /**
50
+ * A hash that represents the path to the project root directory
51
+ */
52
+ projectRootHash: string;
53
+ /**
54
+ * A hash that represents the path to the project root directory
55
+ */
56
+ configHash: string;
57
+ }
58
+ interface Resolver extends Jiti {
59
+ plugin: Jiti;
60
+ }
61
+ interface TransformResult$1 {
62
+ code: string;
63
+ map: SourceMap | null;
64
+ }
65
+ interface InitContextOptions {
66
+ /**
67
+ * If false, the plugin will be loaded after all other plugins.
68
+ *
69
+ * @defaultValue true
70
+ */
71
+ isHighPriority: boolean;
72
+ }
73
+ interface FetchOptions extends FetchRequestOptions {
74
+ /**
75
+ * An indicator specifying that the request should bypass any caching
76
+ */
77
+ skipCache?: boolean;
78
+ }
79
+ interface ParseOptions extends ParserOptions {
80
+ /**
81
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
82
+ */
83
+ allowReturnOutsideFunction?: boolean;
84
+ }
85
+ /**
86
+ * The unresolved Powerlines context.
87
+ *
88
+ * @remarks
89
+ * This context is used before the user configuration has been fully resolved after the `config`.
90
+ */
91
+ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
92
+ /**
93
+ * The Storm workspace configuration
94
+ */
95
+ workspaceConfig: WorkspaceConfig;
96
+ /**
97
+ * An object containing the options provided to Powerlines
98
+ */
99
+ config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
100
+ projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
101
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
102
+ output: TResolvedConfig["output"];
103
+ };
104
+ /**
105
+ * A logging function for the Powerlines engine
106
+ */
107
+ log: LogFn;
108
+ /**
109
+ * A logging function for fatal messages
110
+ */
111
+ fatal: (message: string | UnpluginMessage) => void;
112
+ /**
113
+ * A logging function for error messages
114
+ */
115
+ error: (message: string | UnpluginMessage) => void;
116
+ /**
117
+ * A logging function for warning messages
118
+ */
119
+ warn: (message: string | UnpluginMessage) => void;
120
+ /**
121
+ * A logging function for informational messages
122
+ */
123
+ info: (message: string | UnpluginMessage) => void;
124
+ /**
125
+ * A logging function for debug messages
126
+ */
127
+ debug: (message: string | UnpluginMessage) => void;
128
+ /**
129
+ * A logging function for trace messages
130
+ */
131
+ trace: (message: string | UnpluginMessage) => void;
132
+ /**
133
+ * The metadata information
134
+ */
135
+ meta: MetaInfo;
136
+ /**
137
+ * The metadata information currently written to disk
138
+ */
139
+ persistedMeta?: MetaInfo;
140
+ /**
141
+ * The Powerlines artifacts directory
142
+ */
143
+ artifactsPath: string;
144
+ /**
145
+ * The path to the Powerlines builtin runtime modules directory
146
+ */
147
+ builtinsPath: string;
148
+ /**
149
+ * The path to the Powerlines entry modules directory
150
+ */
151
+ entryPath: string;
152
+ /**
153
+ * The path to the Powerlines TypeScript declaration files directory
154
+ */
155
+ dtsPath: string;
156
+ /**
157
+ * The path to a directory where the reflection data buffers (used by the build processes) are stored
158
+ */
159
+ dataPath: string;
160
+ /**
161
+ * The path to a directory where the project cache (used by the build processes) is stored
162
+ */
163
+ cachePath: string;
164
+ /**
165
+ * The Powerlines environment paths
166
+ */
167
+ envPaths: EnvPaths;
168
+ /**
169
+ * The file system path to the Powerlines package installation
170
+ */
171
+ powerlinesPath: string;
172
+ /**
173
+ * The relative path to the Powerlines workspace root directory
174
+ */
175
+ relativeToWorkspaceRoot: string;
176
+ /**
177
+ * The project's `package.json` file content
178
+ */
179
+ packageJson: PackageJson & Record<string, any>;
180
+ /**
181
+ * The project's `project.json` file content
182
+ */
183
+ projectJson?: Record<string, any>;
184
+ /**
185
+ * The dependency installations required by the project
186
+ */
187
+ dependencies: Record<string, string | Range>;
188
+ /**
189
+ * The development dependency installations required by the project
190
+ */
191
+ devDependencies: Record<string, string | Range>;
192
+ /**
193
+ * The parsed TypeScript configuration from the `tsconfig.json` file
194
+ */
195
+ tsconfig: ParsedTypeScriptConfig;
196
+ /**
197
+ * The entry points of the source code
198
+ */
199
+ entry: ResolvedEntryTypeDefinition[];
200
+ /**
201
+ * The virtual file system manager used during the build process to reference generated runtime files
202
+ */
203
+ fs: VirtualFileSystemInterface;
204
+ /**
205
+ * The Jiti module resolver
206
+ */
207
+ resolver: Resolver;
208
+ /**
209
+ * The builtin module id that exist in the Powerlines virtual file system
210
+ */
211
+ builtins: string[];
212
+ /**
213
+ * The {@link Project} instance used for type reflection and module manipulation
214
+ *
215
+ * @see https://ts-morph.com/
216
+ *
217
+ * @remarks
218
+ * This instance is created lazily on first access.
219
+ */
220
+ program: Project;
221
+ /**
222
+ * A function to perform HTTP fetch requests
223
+ *
224
+ * @remarks
225
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
226
+ *
227
+ * @example
228
+ * ```ts
229
+ * const response = await context.fetch("https://api.example.com/data");
230
+ * const data = await response.json();
231
+ * ```
232
+ *
233
+ * @see https://github.com/nodejs/undici
234
+ *
235
+ * @param input - The URL to fetch.
236
+ * @param options - The fetch request options.
237
+ * @returns A promise that resolves to a response returned by the fetch.
238
+ */
239
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
240
+ /**
241
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
242
+ *
243
+ * @remarks
244
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
245
+ *
246
+ * @example
247
+ * ```ts
248
+ * const ast = context.parse("const x: number = 42;");
249
+ * ```
250
+ *
251
+ * @see https://rollupjs.org/plugin-development/#this-parse
252
+ * @see https://github.com/oxc/oxc
253
+ *
254
+ * @param code - The source code to parse.
255
+ * @param options - The options to pass to the parser.
256
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
257
+ */
258
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
259
+ /**
260
+ * A helper function to resolve modules using the Jiti resolver
261
+ *
262
+ * @remarks
263
+ * This function can be used to resolve modules relative to the project root directory.
264
+ *
265
+ * @example
266
+ * ```ts
267
+ * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
268
+ * ```
269
+ *
270
+ * @param id - The module to resolve.
271
+ * @param importer - An optional path to the importer module.
272
+ * @param options - Additional resolution options.
273
+ * @returns A promise that resolves to the resolved module path.
274
+ */
275
+ resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
276
+ /**
277
+ * A helper function to load modules using the Jiti resolver
278
+ *
279
+ * @remarks
280
+ * This function can be used to load modules relative to the project root directory.
281
+ *
282
+ * @example
283
+ * ```ts
284
+ * const module = await context.load("some-module", "/path/to/importer");
285
+ * ```
286
+ *
287
+ * @param id - The module to load.
288
+ * @returns A promise that resolves to the loaded module.
289
+ */
290
+ load: (id: string) => Promise<TransformResult$1 | undefined>;
291
+ /**
292
+ * The Powerlines builtin virtual files
293
+ */
294
+ getBuiltins: () => Promise<VirtualFile[]>;
295
+ /**
296
+ * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
297
+ *
298
+ * @param code - The source code of the builtin file
299
+ * @param id - The unique identifier of the builtin file
300
+ * @param path - An optional path to write the builtin file to
301
+ */
302
+ emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
303
+ /**
304
+ * Resolves a entry virtual file and writes it to the VFS if it does not already exist
305
+ *
306
+ * @param code - The source code of the entry file
307
+ * @param path - An optional path to write the entry file to
308
+ */
309
+ emitEntry: (code: string, path: string) => Promise<void>;
310
+ /**
311
+ * A function to update the context fields using a new user configuration options
312
+ */
313
+ withUserConfig: (userConfig: UserConfig, options?: InitContextOptions) => Promise<void>;
314
+ /**
315
+ * A function to update the context fields using inline configuration options
316
+ */
317
+ withInlineConfig: (inlineConfig: InlineConfig, options?: InitContextOptions) => Promise<void>;
318
+ /**
319
+ * Create a new logger instance
320
+ *
321
+ * @param name - The name to use for the logger instance
322
+ * @returns A logger function
323
+ */
324
+ createLog: (name: string | null) => LogFn;
325
+ /**
326
+ * Extend the current logger instance with a new name
327
+ *
328
+ * @param name - The name to use for the extended logger instance
329
+ * @returns A logger function
330
+ */
331
+ extendLog: (name: string) => LogFn;
332
+ /**
333
+ * Generates a checksum representing the current context state
334
+ *
335
+ * @returns A promise that resolves to a string representing the checksum
336
+ */
337
+ generateChecksum: () => Promise<string>;
338
+ }
339
+ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
340
+ /**
341
+ * The fully resolved Powerlines configuration
342
+ */
343
+ config: TResolvedConfig;
344
+ };
345
+ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
346
+ /**
347
+ * The environment specific resolved configuration
348
+ */
349
+ environment: EnvironmentResolvedConfig;
350
+ /**
351
+ * An alternative property name for the {@link log} property
352
+ *
353
+ * @remarks
354
+ * This is provided for compatibility with other logging libraries that expect a `logger` property.
355
+ */
356
+ logger: LogFn;
357
+ }
358
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
359
+ //#endregion
360
+ export { BuildPluginContext, Context, LogLevel, PluginContext, UnresolvedContext };