@afterpack/integration-utils 1.0.3 → 1.1.0

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.cts CHANGED
@@ -18,6 +18,27 @@ interface GitBuildContext {
18
18
  ref?: string;
19
19
  }
20
20
  //#endregion
21
+ //#region src/seed.d.ts
22
+ type SeedOption = number | string | undefined;
23
+ declare const SEED_ENV_VAR = "AFTERPACK_SEED";
24
+ type SeedOrigin = "option" | "git" | "env" | "session" | "fresh";
25
+ interface SeedFallback {
26
+ seed: number | string;
27
+ origin: SeedOrigin;
28
+ from: string;
29
+ }
30
+ interface ResolvedBuildSeed {
31
+ seed: number | string;
32
+ origin: SeedOrigin;
33
+ legs: string[];
34
+ generation: number;
35
+ mismatch: {
36
+ leg: string;
37
+ seed: number | string;
38
+ } | null;
39
+ }
40
+ declare function isOwnEnvExport(env: Record<string, string | undefined>, value: string): boolean;
41
+ //#endregion
21
42
  //#region src/registry.d.ts
22
43
  type ConfigScope = "program" | "region";
23
44
  type ConfigTier = "free" | "pro";
@@ -510,7 +531,7 @@ interface ValidationResult {
510
531
  issues: ConfigIssue[];
511
532
  }
512
533
  declare function validateConfig(input: unknown, surface: string): ValidationResult;
513
- declare function mergeConfig(base: AfterpackConfig, override: AfterpackConfig): AfterpackConfig;
534
+ declare function mergeLayers(layers: readonly AfterpackConfig[], appended?: AfterpackConfig): AfterpackConfig;
514
535
  declare function getPath(config: AfterpackConfig, path: string): unknown;
515
536
  type ReflectionAllow = (typeof REFLECTION_ALLOW_VALUES)[number];
516
537
  interface CoreConfigSubset {
@@ -579,7 +600,8 @@ interface PluginOptionsView {
579
600
  paths?: {
580
601
  include?: string[];
581
602
  };
582
- key?: string;
603
+ key: string | null;
604
+ seedFallback?: SeedFallback | null;
583
605
  }
584
606
  declare function toPluginOptions(config: AfterpackConfig): PluginOptionsView;
585
607
  //#endregion
@@ -820,6 +842,7 @@ interface PluginConfigInput {
820
842
  env?: Record<string, string | undefined>;
821
843
  localKeys?: readonly string[];
822
844
  unsupported?: Readonly<Record<string, string>>;
845
+ appendLists?: AfterpackConfig;
823
846
  }
824
847
  interface ResolvedPluginConfig {
825
848
  config: AfterpackConfig;
@@ -830,25 +853,20 @@ interface ResolvedPluginConfig {
830
853
  help: boolean;
831
854
  version: boolean;
832
855
  }
833
- type PassSettings = Pick<ObfuscationPassOptions, "artifactOptions" | "seed" | "preset" | "complexity" | "regions" | "engineConfig" | "diagnostics" | "directivesEnabled" | "directivesEnabledExplicit">;
856
+ type PassSettings = Pick<ObfuscationPassOptions, "artifactOptions" | "seed" | "preset" | "complexity" | "regions" | "engineConfig" | "diagnostics" | "directivesEnabled" | "directivesEnabledExplicit" | "seedFallback" | "key">;
834
857
  declare function passSettings(resolved: Pick<ResolvedPluginConfig, "options" | "engineConfig">): PassSettings;
835
- declare function applyResolvedKey(config: AfterpackConfig, env?: Record<string, string | undefined>): void;
836
- declare function resolvePluginConfig(input: PluginConfigInput): ResolvedPluginConfig;
837
- //#endregion
838
- //#region src/seed.d.ts
839
- type SeedOption = number | string | undefined;
840
- declare const SEED_ENV_VAR = "AFTERPACK_SEED";
841
- type SeedOrigin = "option" | "git" | "env" | "session" | "fresh";
842
- interface ResolvedBuildSeed {
843
- seed: number | string;
844
- origin: SeedOrigin;
845
- legs: string[];
846
- generation: number;
847
- mismatch: {
848
- leg: string;
849
- seed: number | string;
850
- } | null;
858
+ interface ConfigLayer {
859
+ config: AfterpackConfig;
860
+ from: string;
861
+ seedOrigin: SeedOrigin;
851
862
  }
863
+ interface SettledConfig {
864
+ config: AfterpackConfig;
865
+ options: PluginOptionsView;
866
+ engineConfig: CoreConfigSubset;
867
+ }
868
+ declare function settleConfigLayers(layers: readonly ConfigLayer[], appendLists?: AfterpackConfig): SettledConfig;
869
+ declare function resolvePluginConfig(input: PluginConfigInput): ResolvedPluginConfig;
852
870
  //#endregion
853
871
  //#region src/hash-salt.d.ts
854
872
  interface SaltEngine {
@@ -871,6 +889,8 @@ interface PreparedHashSalt {
871
889
  }
872
890
  interface PrepareHashSaltInput {
873
891
  seed: SeedOption;
892
+ seedFallback?: SeedFallback | null;
893
+ key: string | null;
874
894
  root: string;
875
895
  leg: string;
876
896
  localEngineVersion: string | null;
@@ -1163,6 +1183,8 @@ interface ObfuscationPassOptions {
1163
1183
  artifactOptions?: AfterpackArtifactOptions;
1164
1184
  hasBundlerSourcemap?: boolean;
1165
1185
  seed?: SeedOption;
1186
+ seedFallback?: SeedFallback | null;
1187
+ key?: string | null;
1166
1188
  buildLeg?: string;
1167
1189
  preset?: Preset;
1168
1190
  complexity?: number;
@@ -1297,4 +1319,4 @@ declare function discoverInputSourceMap(jsPath: string, code?: string): string |
1297
1319
  declare function removeSourceMaps(paths: Iterable<string>, label: string): number;
1298
1320
  declare function stripCssSourceMappingURLs(paths: Iterable<string>): number;
1299
1321
  //#endregion
1300
- export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, NEXT_CHUNKS_PREFIX, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PassWritePlan, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedOption, type SeedOrigin, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TokenScanLimits, type TokenScanResult, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, angularHashToken, angularServerManifestRefusal, applyBundleOutput, applyResolvedKey, buildDirKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, detectNextBundler, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findHashTokenReference, findUpward, getPath, installedRequiredLine, isWithinDir, loadConfigFile, locateProtectionReceipt, mergeConfig, nextChunkToken, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, planAngularIntegrity, prepareHashSalt, protectionReceiptPath, readEngineVersion, recomputeAngularIntegrity, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, sha256Hex, sha256Of, skipNextInternals, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stagedPath, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unreferencedHashedFiles, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeFileAtomic, writeProtectionReceipt };
1322
+ export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigLayer, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, NEXT_CHUNKS_PREFIX, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PassWritePlan, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedFallback, type SeedOption, type SeedOrigin, type SettledConfig, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TokenScanLimits, type TokenScanResult, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, angularHashToken, angularServerManifestRefusal, applyBundleOutput, buildDirKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, detectNextBundler, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findHashTokenReference, findUpward, getPath, installedRequiredLine, isOwnEnvExport, isWithinDir, loadConfigFile, locateProtectionReceipt, mergeLayers, nextChunkToken, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, planAngularIntegrity, prepareHashSalt, protectionReceiptPath, readEngineVersion, recomputeAngularIntegrity, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, settleConfigLayers, sha256Hex, sha256Of, skipNextInternals, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stagedPath, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unreferencedHashedFiles, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeFileAtomic, writeProtectionReceipt };
package/dist/index.d.ts CHANGED
@@ -18,6 +18,27 @@ interface GitBuildContext {
18
18
  ref?: string;
19
19
  }
20
20
  //#endregion
21
+ //#region src/seed.d.ts
22
+ type SeedOption = number | string | undefined;
23
+ declare const SEED_ENV_VAR = "AFTERPACK_SEED";
24
+ type SeedOrigin = "option" | "git" | "env" | "session" | "fresh";
25
+ interface SeedFallback {
26
+ seed: number | string;
27
+ origin: SeedOrigin;
28
+ from: string;
29
+ }
30
+ interface ResolvedBuildSeed {
31
+ seed: number | string;
32
+ origin: SeedOrigin;
33
+ legs: string[];
34
+ generation: number;
35
+ mismatch: {
36
+ leg: string;
37
+ seed: number | string;
38
+ } | null;
39
+ }
40
+ declare function isOwnEnvExport(env: Record<string, string | undefined>, value: string): boolean;
41
+ //#endregion
21
42
  //#region src/registry.d.ts
22
43
  type ConfigScope = "program" | "region";
23
44
  type ConfigTier = "free" | "pro";
@@ -510,7 +531,7 @@ interface ValidationResult {
510
531
  issues: ConfigIssue[];
511
532
  }
512
533
  declare function validateConfig(input: unknown, surface: string): ValidationResult;
513
- declare function mergeConfig(base: AfterpackConfig, override: AfterpackConfig): AfterpackConfig;
534
+ declare function mergeLayers(layers: readonly AfterpackConfig[], appended?: AfterpackConfig): AfterpackConfig;
514
535
  declare function getPath(config: AfterpackConfig, path: string): unknown;
515
536
  type ReflectionAllow = (typeof REFLECTION_ALLOW_VALUES)[number];
516
537
  interface CoreConfigSubset {
@@ -579,7 +600,8 @@ interface PluginOptionsView {
579
600
  paths?: {
580
601
  include?: string[];
581
602
  };
582
- key?: string;
603
+ key: string | null;
604
+ seedFallback?: SeedFallback | null;
583
605
  }
584
606
  declare function toPluginOptions(config: AfterpackConfig): PluginOptionsView;
585
607
  //#endregion
@@ -820,6 +842,7 @@ interface PluginConfigInput {
820
842
  env?: Record<string, string | undefined>;
821
843
  localKeys?: readonly string[];
822
844
  unsupported?: Readonly<Record<string, string>>;
845
+ appendLists?: AfterpackConfig;
823
846
  }
824
847
  interface ResolvedPluginConfig {
825
848
  config: AfterpackConfig;
@@ -830,25 +853,20 @@ interface ResolvedPluginConfig {
830
853
  help: boolean;
831
854
  version: boolean;
832
855
  }
833
- type PassSettings = Pick<ObfuscationPassOptions, "artifactOptions" | "seed" | "preset" | "complexity" | "regions" | "engineConfig" | "diagnostics" | "directivesEnabled" | "directivesEnabledExplicit">;
856
+ type PassSettings = Pick<ObfuscationPassOptions, "artifactOptions" | "seed" | "preset" | "complexity" | "regions" | "engineConfig" | "diagnostics" | "directivesEnabled" | "directivesEnabledExplicit" | "seedFallback" | "key">;
834
857
  declare function passSettings(resolved: Pick<ResolvedPluginConfig, "options" | "engineConfig">): PassSettings;
835
- declare function applyResolvedKey(config: AfterpackConfig, env?: Record<string, string | undefined>): void;
836
- declare function resolvePluginConfig(input: PluginConfigInput): ResolvedPluginConfig;
837
- //#endregion
838
- //#region src/seed.d.ts
839
- type SeedOption = number | string | undefined;
840
- declare const SEED_ENV_VAR = "AFTERPACK_SEED";
841
- type SeedOrigin = "option" | "git" | "env" | "session" | "fresh";
842
- interface ResolvedBuildSeed {
843
- seed: number | string;
844
- origin: SeedOrigin;
845
- legs: string[];
846
- generation: number;
847
- mismatch: {
848
- leg: string;
849
- seed: number | string;
850
- } | null;
858
+ interface ConfigLayer {
859
+ config: AfterpackConfig;
860
+ from: string;
861
+ seedOrigin: SeedOrigin;
851
862
  }
863
+ interface SettledConfig {
864
+ config: AfterpackConfig;
865
+ options: PluginOptionsView;
866
+ engineConfig: CoreConfigSubset;
867
+ }
868
+ declare function settleConfigLayers(layers: readonly ConfigLayer[], appendLists?: AfterpackConfig): SettledConfig;
869
+ declare function resolvePluginConfig(input: PluginConfigInput): ResolvedPluginConfig;
852
870
  //#endregion
853
871
  //#region src/hash-salt.d.ts
854
872
  interface SaltEngine {
@@ -871,6 +889,8 @@ interface PreparedHashSalt {
871
889
  }
872
890
  interface PrepareHashSaltInput {
873
891
  seed: SeedOption;
892
+ seedFallback?: SeedFallback | null;
893
+ key: string | null;
874
894
  root: string;
875
895
  leg: string;
876
896
  localEngineVersion: string | null;
@@ -1163,6 +1183,8 @@ interface ObfuscationPassOptions {
1163
1183
  artifactOptions?: AfterpackArtifactOptions;
1164
1184
  hasBundlerSourcemap?: boolean;
1165
1185
  seed?: SeedOption;
1186
+ seedFallback?: SeedFallback | null;
1187
+ key?: string | null;
1166
1188
  buildLeg?: string;
1167
1189
  preset?: Preset;
1168
1190
  complexity?: number;
@@ -1297,4 +1319,4 @@ declare function discoverInputSourceMap(jsPath: string, code?: string): string |
1297
1319
  declare function removeSourceMaps(paths: Iterable<string>, label: string): number;
1298
1320
  declare function stripCssSourceMappingURLs(paths: Iterable<string>): number;
1299
1321
  //#endregion
1300
- export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, NEXT_CHUNKS_PREFIX, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PassWritePlan, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedOption, type SeedOrigin, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TokenScanLimits, type TokenScanResult, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, angularHashToken, angularServerManifestRefusal, applyBundleOutput, applyResolvedKey, buildDirKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, detectNextBundler, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findHashTokenReference, findUpward, getPath, installedRequiredLine, isWithinDir, loadConfigFile, locateProtectionReceipt, mergeConfig, nextChunkToken, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, planAngularIntegrity, prepareHashSalt, protectionReceiptPath, readEngineVersion, recomputeAngularIntegrity, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, sha256Hex, sha256Of, skipNextInternals, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stagedPath, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unreferencedHashedFiles, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeFileAtomic, writeProtectionReceipt };
1322
+ export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigLayer, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, NEXT_CHUNKS_PREFIX, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PassWritePlan, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedFallback, type SeedOption, type SeedOrigin, type SettledConfig, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TokenScanLimits, type TokenScanResult, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, angularHashToken, angularServerManifestRefusal, applyBundleOutput, buildDirKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, detectNextBundler, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findHashTokenReference, findUpward, getPath, installedRequiredLine, isOwnEnvExport, isWithinDir, loadConfigFile, locateProtectionReceipt, mergeLayers, nextChunkToken, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, planAngularIntegrity, prepareHashSalt, protectionReceiptPath, readEngineVersion, recomputeAngularIntegrity, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, settleConfigLayers, sha256Hex, sha256Of, skipNextInternals, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stagedPath, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unreferencedHashedFiles, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeFileAtomic, writeProtectionReceipt };