@remotion/renderer 4.0.512 → 4.0.514

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.
@@ -16698,6 +16698,51 @@ var startLongRunningCompositor = ({
16698
16698
  binariesDirectory
16699
16699
  });
16700
16700
  };
16701
+ var makeLazyCompositor = ({
16702
+ maximumFrameCacheItemsInBytes,
16703
+ logLevel,
16704
+ indent,
16705
+ binariesDirectory,
16706
+ extraThreads
16707
+ }) => {
16708
+ let compositor = null;
16709
+ let shutDown = false;
16710
+ const getCompositor = () => {
16711
+ if (shutDown) {
16712
+ throw new Error("Compositor has already been shut down");
16713
+ }
16714
+ if (!compositor) {
16715
+ compositor = startLongRunningCompositor({
16716
+ maximumFrameCacheItemsInBytes,
16717
+ logLevel,
16718
+ indent,
16719
+ binariesDirectory,
16720
+ extraThreads
16721
+ });
16722
+ }
16723
+ return compositor;
16724
+ };
16725
+ return {
16726
+ executeCommand: (type, payload) => {
16727
+ return Promise.resolve().then(() => {
16728
+ return getCompositor().executeCommand(type, payload);
16729
+ });
16730
+ },
16731
+ finishCommands: () => {
16732
+ return compositor?.finishCommands() ?? Promise.resolve();
16733
+ },
16734
+ waitForDone: () => {
16735
+ return compositor?.waitForDone() ?? Promise.resolve();
16736
+ },
16737
+ shutDownOrKill: () => {
16738
+ shutDown = true;
16739
+ return compositor?.shutDownOrKill() ?? Promise.resolve();
16740
+ },
16741
+ get pid() {
16742
+ return compositor?.pid ?? null;
16743
+ }
16744
+ };
16745
+ };
16701
16746
  var startCompositor = ({
16702
16747
  type,
16703
16748
  payload,
@@ -16926,13 +16971,9 @@ var startOffthreadVideoServer = ({
16926
16971
  offthreadVideoThreads
16927
16972
  }) => {
16928
16973
  validateOffthreadVideoCacheSizeInBytes(offthreadVideoCacheSizeInBytes);
16929
- const compositor = startCompositor({
16930
- type: "StartLongRunningProcess",
16931
- payload: {
16932
- concurrency: offthreadVideoThreads,
16933
- maximum_frame_cache_size_in_bytes: offthreadVideoCacheSizeInBytes,
16934
- verbose: isEqualOrBelowLogLevel(logLevel, "verbose")
16935
- },
16974
+ const compositor = makeLazyCompositor({
16975
+ extraThreads: offthreadVideoThreads,
16976
+ maximumFrameCacheItemsInBytes: offthreadVideoCacheSizeInBytes,
16936
16977
  logLevel,
16937
16978
  indent,
16938
16979
  binariesDirectory
@@ -21372,7 +21413,10 @@ var internalRenderFramesRaw = ({
21372
21413
  });
21373
21414
  })
21374
21415
  ]).then((res) => {
21375
- server?.compositor.executeCommand("CloseAllVideos", {}).then(() => {
21416
+ if (!server || server.compositor.pid === null) {
21417
+ return resolve2(res);
21418
+ }
21419
+ server.compositor.executeCommand("CloseAllVideos", {}).then(() => {
21376
21420
  Log.verbose({ indent, logLevel, tag: "compositor" }, "Freed memory from compositor");
21377
21421
  }).catch((err) => {
21378
21422
  Log.verbose({ indent, logLevel }, "Could not close compositor", err);
package/dist/index.d.ts CHANGED
@@ -588,6 +588,8 @@ export declare const RenderInternals: {
588
588
  source: string;
589
589
  };
590
590
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
591
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
592
+ reset: () => void;
591
593
  type: "error" | "info" | "trace" | "verbose" | "warn";
592
594
  id: "log";
593
595
  };
@@ -707,6 +709,8 @@ export declare const RenderInternals: {
707
709
  source: string;
708
710
  };
709
711
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
712
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
713
+ reset: () => void;
710
714
  type: "error" | "info" | "trace" | "verbose" | "warn";
711
715
  id: "log";
712
716
  };
@@ -822,6 +826,8 @@ export declare const RenderInternals: {
822
826
  source: string;
823
827
  };
824
828
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
829
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
830
+ reset: () => void;
825
831
  type: "error" | "info" | "trace" | "verbose" | "warn";
826
832
  id: "log";
827
833
  };
@@ -971,6 +977,8 @@ export declare const RenderInternals: {
971
977
  source: string;
972
978
  };
973
979
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
980
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
981
+ reset: () => void;
974
982
  type: "error" | "info" | "trace" | "verbose" | "warn";
975
983
  id: "log";
976
984
  };
@@ -1172,6 +1180,8 @@ export declare const RenderInternals: {
1172
1180
  source: string;
1173
1181
  };
1174
1182
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
1183
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
1184
+ reset: () => void;
1175
1185
  type: "error" | "info" | "trace" | "verbose" | "warn";
1176
1186
  id: "log";
1177
1187
  };
@@ -1330,6 +1340,8 @@ export declare const RenderInternals: {
1330
1340
  source: string;
1331
1341
  };
1332
1342
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
1343
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
1344
+ reset: () => void;
1333
1345
  type: "error" | "info" | "trace" | "verbose" | "warn";
1334
1346
  id: "log";
1335
1347
  };
@@ -4,7 +4,6 @@ exports.OffthreadVideoServerEmitter = exports.startOffthreadVideoServer = export
4
4
  const node_url_1 = require("node:url");
5
5
  const download_and_map_assets_to_file_1 = require("./assets/download-and-map-assets-to-file");
6
6
  const compositor_1 = require("./compositor/compositor");
7
- const log_level_1 = require("./log-level");
8
7
  const logger_1 = require("./logger");
9
8
  const offthreadvideo_cache_size_1 = require("./options/offthreadvideo-cache-size");
10
9
  const extractUrlAndSourceFromUrl = (url) => {
@@ -38,13 +37,9 @@ exports.extractUrlAndSourceFromUrl = extractUrlAndSourceFromUrl;
38
37
  const REQUEST_CLOSED_TOKEN = 'Request closed';
39
38
  const startOffthreadVideoServer = ({ downloadMap, logLevel, indent, offthreadVideoCacheSizeInBytes, binariesDirectory, offthreadVideoThreads, }) => {
40
39
  (0, offthreadvideo_cache_size_1.validateOffthreadVideoCacheSizeInBytes)(offthreadVideoCacheSizeInBytes);
41
- const compositor = (0, compositor_1.startCompositor)({
42
- type: 'StartLongRunningProcess',
43
- payload: {
44
- concurrency: offthreadVideoThreads,
45
- maximum_frame_cache_size_in_bytes: offthreadVideoCacheSizeInBytes,
46
- verbose: (0, log_level_1.isEqualOrBelowLogLevel)(logLevel, 'verbose'),
47
- },
40
+ const compositor = (0, compositor_1.makeLazyCompositor)({
41
+ extraThreads: offthreadVideoThreads,
42
+ maximumFrameCacheItemsInBytes: offthreadVideoCacheSizeInBytes,
48
43
  logLevel,
49
44
  indent,
50
45
  binariesDirectory,
@@ -12,5 +12,7 @@ export declare const askAIOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
15
17
  id: "disable-ask-ai";
16
18
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.askAIOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let askAIEnabled = true;
6
+ let configuredAskAIEnabled = null;
6
7
  const cliFlag = 'disable-ask-ai';
7
8
  exports.askAIOption = {
8
9
  name: 'Disable or Enable the Ask AI option',
@@ -26,6 +27,12 @@ exports.askAIOption = {
26
27
  },
27
28
  setConfig(value) {
28
29
  askAIEnabled = value;
30
+ configuredAskAIEnabled = value;
31
+ },
32
+ getConfigValue: () => configuredAskAIEnabled,
33
+ reset: () => {
34
+ askAIEnabled = true;
35
+ configuredAskAIEnabled = null;
29
36
  },
30
37
  id: cliFlag,
31
38
  };
@@ -12,5 +12,7 @@ export declare const beepOnFinishOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
15
17
  id: "beep-on-finish";
16
18
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.beepOnFinishOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let beepOnFinish = false;
6
+ let configuredBeepOnFinish = null;
6
7
  const cliFlag = 'beep-on-finish';
7
8
  exports.beepOnFinishOption = {
8
9
  name: 'Beep on finish',
@@ -31,6 +32,12 @@ exports.beepOnFinishOption = {
31
32
  },
32
33
  setConfig(value) {
33
34
  beepOnFinish = value;
35
+ configuredBeepOnFinish = value;
36
+ },
37
+ getConfigValue: () => configuredBeepOnFinish,
38
+ reset: () => {
39
+ beepOnFinish = false;
40
+ configuredBeepOnFinish = null;
34
41
  },
35
42
  id: cliFlag,
36
43
  };
@@ -12,5 +12,7 @@ export declare const enableCrossSiteIsolationOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
15
17
  id: "cross-site-isolation";
16
18
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.enableCrossSiteIsolationOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let enableCrossSiteIsolation = false;
6
+ let configuredEnableCrossSiteIsolation = null;
6
7
  const cliFlag = 'cross-site-isolation';
7
8
  exports.enableCrossSiteIsolationOption = {
8
9
  name: 'Enable Cross-Site Isolation',
@@ -26,6 +27,12 @@ exports.enableCrossSiteIsolationOption = {
26
27
  },
27
28
  setConfig(value) {
28
29
  enableCrossSiteIsolation = value;
30
+ configuredEnableCrossSiteIsolation = value;
31
+ },
32
+ getConfigValue: () => configuredEnableCrossSiteIsolation,
33
+ reset: () => {
34
+ enableCrossSiteIsolation = false;
35
+ configuredEnableCrossSiteIsolation = null;
29
36
  },
30
37
  id: cliFlag,
31
38
  };
@@ -1,5 +1,21 @@
1
1
  import type { AnyRemotionOption } from './option';
2
2
  export declare const allOptions: {
3
+ allowHtmlInCanvasOption: {
4
+ name: string;
5
+ cliFlag: "allow-html-in-canvas";
6
+ description: () => import("react/jsx-runtime").JSX.Element;
7
+ ssrName: null;
8
+ docLink: string;
9
+ type: boolean;
10
+ getValue: ({ commandLine }: {
11
+ commandLine: Record<string, unknown>;
12
+ }) => {
13
+ value: boolean;
14
+ source: string;
15
+ };
16
+ setConfig(value: boolean): void;
17
+ id: "allow-html-in-canvas";
18
+ };
3
19
  audioCodecOption: {
4
20
  cliFlag: "audio-codec";
5
21
  setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
@@ -476,6 +492,8 @@ export declare const allOptions: {
476
492
  source: string;
477
493
  };
478
494
  setConfig(value: boolean): void;
495
+ getConfigValue: () => boolean | null;
496
+ reset: () => void;
479
497
  id: "beep-on-finish";
480
498
  };
481
499
  numberOfGifLoopsOption: {
@@ -660,6 +678,8 @@ export declare const allOptions: {
660
678
  source: string;
661
679
  };
662
680
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
681
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
682
+ reset: () => void;
663
683
  type: "error" | "info" | "trace" | "verbose" | "warn";
664
684
  id: "log";
665
685
  };
@@ -946,6 +966,8 @@ export declare const allOptions: {
946
966
  source: string;
947
967
  };
948
968
  setConfig: (profile: AudioContextLatencyCategory | null) => void;
969
+ getConfigValue: () => AudioContextLatencyCategory | null;
970
+ reset: () => void;
949
971
  id: "audio-latency-hint";
950
972
  };
951
973
  enableCrossSiteIsolationOption: {
@@ -962,6 +984,8 @@ export declare const allOptions: {
962
984
  source: string;
963
985
  };
964
986
  setConfig(value: boolean): void;
987
+ getConfigValue: () => boolean | null;
988
+ reset: () => void;
965
989
  id: "cross-site-isolation";
966
990
  };
967
991
  ignoreCertificateErrorsOption: {
@@ -1110,6 +1134,8 @@ export declare const allOptions: {
1110
1134
  source: string;
1111
1135
  };
1112
1136
  setConfig(value: boolean): void;
1137
+ getConfigValue: () => boolean | null;
1138
+ reset: () => void;
1113
1139
  id: "disable-ask-ai";
1114
1140
  };
1115
1141
  interactivityOption: {
@@ -1126,6 +1152,8 @@ export declare const allOptions: {
1126
1152
  source: string;
1127
1153
  };
1128
1154
  setConfig(value: boolean): void;
1155
+ getConfigValue: () => boolean | null;
1156
+ reset: () => void;
1129
1157
  id: "disable-interactivity";
1130
1158
  };
1131
1159
  keyboardShortcutsOption: {
@@ -1142,6 +1170,8 @@ export declare const allOptions: {
1142
1170
  source: string;
1143
1171
  };
1144
1172
  setConfig(value: boolean): void;
1173
+ getConfigValue: () => boolean | null;
1174
+ reset: () => void;
1145
1175
  id: "disable-keyboard-shortcuts";
1146
1176
  };
1147
1177
  framesOption: {
@@ -1206,6 +1236,8 @@ export declare const allOptions: {
1206
1236
  source: string;
1207
1237
  };
1208
1238
  setConfig(value: number): void;
1239
+ getConfigValue: () => number | null;
1240
+ reset: () => void;
1209
1241
  id: "number-of-shared-audio-tags";
1210
1242
  };
1211
1243
  ipv4Option: {
@@ -1379,6 +1411,8 @@ export declare const allOptions: {
1379
1411
  source: string;
1380
1412
  };
1381
1413
  setConfig(value: boolean): void;
1414
+ getConfigValue: () => boolean | null;
1415
+ reset: () => void;
1382
1416
  id: "rspack";
1383
1417
  };
1384
1418
  outDirOption: {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.allOptions = void 0;
4
+ const allow_html_in_canvas_1 = require("./allow-html-in-canvas");
4
5
  const api_key_1 = require("./api-key");
5
6
  const ask_ai_1 = require("./ask-ai");
6
7
  const audio_bitrate_1 = require("./audio-bitrate");
@@ -96,6 +97,7 @@ const webhook_custom_data_1 = require("./webhook-custom-data");
96
97
  const webpack_poll_1 = require("./webpack-poll");
97
98
  const x264_preset_1 = require("./x264-preset");
98
99
  exports.allOptions = {
100
+ allowHtmlInCanvasOption: allow_html_in_canvas_1.allowHtmlInCanvasOption,
99
101
  audioCodecOption: audio_codec_1.audioCodecOption,
100
102
  benchmarkConcurrenciesOption: benchmark_concurrencies_1.benchmarkConcurrenciesOption,
101
103
  browserExecutableOption: browser_executable_1.browserExecutableOption,
@@ -12,5 +12,7 @@ export declare const interactivityOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
15
17
  id: "disable-interactivity";
16
18
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.interactivityOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let interactivityEnabled = true;
6
+ let configuredInteractivityEnabled = null;
6
7
  const cliFlag = 'disable-interactivity';
7
8
  exports.interactivityOption = {
8
9
  name: 'Disable or enable Studio interactivity',
@@ -26,6 +27,12 @@ exports.interactivityOption = {
26
27
  },
27
28
  setConfig(value) {
28
29
  interactivityEnabled = value;
30
+ configuredInteractivityEnabled = value;
31
+ },
32
+ getConfigValue: () => configuredInteractivityEnabled,
33
+ reset: () => {
34
+ interactivityEnabled = true;
35
+ configuredInteractivityEnabled = null;
29
36
  },
30
37
  id: cliFlag,
31
38
  };
@@ -12,5 +12,7 @@ export declare const keyboardShortcutsOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
15
17
  id: "disable-keyboard-shortcuts";
16
18
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.keyboardShortcutsOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let keyboardShortcutsEnabled = true;
6
+ let configuredKeyboardShortcutsEnabled = null;
6
7
  const cliFlag = 'disable-keyboard-shortcuts';
7
8
  exports.keyboardShortcutsOption = {
8
9
  name: 'Disable or Enable keyboard shortcuts',
@@ -26,6 +27,12 @@ exports.keyboardShortcutsOption = {
26
27
  },
27
28
  setConfig(value) {
28
29
  keyboardShortcutsEnabled = value;
30
+ configuredKeyboardShortcutsEnabled = value;
31
+ },
32
+ getConfigValue: () => configuredKeyboardShortcutsEnabled,
33
+ reset: () => {
34
+ keyboardShortcutsEnabled = true;
35
+ configuredKeyboardShortcutsEnabled = null;
29
36
  },
30
37
  id: cliFlag,
31
38
  };
@@ -15,5 +15,7 @@ export declare const audioLatencyHintOption: {
15
15
  source: string;
16
16
  };
17
17
  setConfig: (profile: AudioContextLatencyCategory | null) => void;
18
+ getConfigValue: () => AudioContextLatencyCategory | null;
19
+ reset: () => void;
18
20
  id: "audio-latency-hint";
19
21
  };
@@ -33,5 +33,9 @@ exports.audioLatencyHintOption = {
33
33
  setConfig: (profile) => {
34
34
  value = profile;
35
35
  },
36
+ getConfigValue: () => value,
37
+ reset: () => {
38
+ value = null;
39
+ },
36
40
  id: cliFlag,
37
41
  };
@@ -11,6 +11,8 @@ export declare const logLevelOption: {
11
11
  source: string;
12
12
  };
13
13
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
14
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
15
+ reset: () => void;
14
16
  type: "error" | "info" | "trace" | "verbose" | "warn";
15
17
  id: "log";
16
18
  };
@@ -4,6 +4,7 @@ exports.logLevelOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const log_level_1 = require("../log-level");
6
6
  let logLevel = 'info';
7
+ let configuredLogLevel = null;
7
8
  const cliFlag = 'log';
8
9
  exports.logLevelOption = {
9
10
  cliFlag,
@@ -42,6 +43,12 @@ exports.logLevelOption = {
42
43
  },
43
44
  setConfig: (newLogLevel) => {
44
45
  logLevel = newLogLevel;
46
+ configuredLogLevel = newLogLevel;
47
+ },
48
+ getConfigValue: () => configuredLogLevel,
49
+ reset: () => {
50
+ logLevel = 'info';
51
+ configuredLogLevel = null;
45
52
  },
46
53
  type: 'error',
47
54
  id: cliFlag,
@@ -12,5 +12,7 @@ export declare const numberOfSharedAudioTagsOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: number): void;
15
+ getConfigValue: () => number | null;
16
+ reset: () => void;
15
17
  id: "number-of-shared-audio-tags";
16
18
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.numberOfSharedAudioTagsOption = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  let numberOfSharedAudioTags = 0;
6
+ let configuredNumberOfSharedAudioTags = null;
6
7
  const cliFlag = 'number-of-shared-audio-tags';
7
8
  exports.numberOfSharedAudioTagsOption = {
8
9
  name: 'Number of shared audio tags',
@@ -25,6 +26,12 @@ exports.numberOfSharedAudioTagsOption = {
25
26
  },
26
27
  setConfig(value) {
27
28
  numberOfSharedAudioTags = value;
29
+ configuredNumberOfSharedAudioTags = value;
30
+ },
31
+ getConfigValue: () => configuredNumberOfSharedAudioTags,
32
+ reset: () => {
33
+ numberOfSharedAudioTags = 0;
34
+ configuredNumberOfSharedAudioTags = null;
28
35
  },
29
36
  id: cliFlag,
30
37
  };
@@ -13,6 +13,7 @@ export type RemotionOption<SsrName extends string, Type> = {
13
13
  source: string;
14
14
  };
15
15
  setConfig: (value: Type) => void;
16
+ getConfigValue?: () => Type | null;
16
17
  reset?: () => void;
17
18
  id: string;
18
19
  };
@@ -301,6 +301,8 @@ export declare const optionsMap: {
301
301
  source: string;
302
302
  };
303
303
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
304
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
305
+ reset: () => void;
304
306
  type: "error" | "info" | "trace" | "verbose" | "warn";
305
307
  id: "log";
306
308
  };
@@ -593,6 +595,8 @@ export declare const optionsMap: {
593
595
  source: string;
594
596
  };
595
597
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
598
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
599
+ reset: () => void;
596
600
  type: "error" | "info" | "trace" | "verbose" | "warn";
597
601
  id: "log";
598
602
  };
@@ -759,6 +763,8 @@ export declare const optionsMap: {
759
763
  source: string;
760
764
  };
761
765
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
766
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
767
+ reset: () => void;
762
768
  type: "error" | "info" | "trace" | "verbose" | "warn";
763
769
  id: "log";
764
770
  };
@@ -893,6 +899,8 @@ export declare const optionsMap: {
893
899
  source: string;
894
900
  };
895
901
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
902
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
903
+ reset: () => void;
896
904
  type: "error" | "info" | "trace" | "verbose" | "warn";
897
905
  id: "log";
898
906
  };
@@ -1062,6 +1070,8 @@ export declare const optionsMap: {
1062
1070
  source: string;
1063
1071
  };
1064
1072
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
1073
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
1074
+ reset: () => void;
1065
1075
  type: "error" | "info" | "trace" | "verbose" | "warn";
1066
1076
  id: "log";
1067
1077
  };
@@ -1427,6 +1437,8 @@ export declare const optionsMap: {
1427
1437
  source: string;
1428
1438
  };
1429
1439
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
1440
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
1441
+ reset: () => void;
1430
1442
  type: "error" | "info" | "trace" | "verbose" | "warn";
1431
1443
  id: "log";
1432
1444
  };
@@ -1582,6 +1594,8 @@ export declare const optionsMap: {
1582
1594
  source: string;
1583
1595
  };
1584
1596
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
1597
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
1598
+ reset: () => void;
1585
1599
  type: "error" | "info" | "trace" | "verbose" | "warn";
1586
1600
  id: "log";
1587
1601
  };
@@ -1721,6 +1735,8 @@ export declare const optionsMap: {
1721
1735
  source: string;
1722
1736
  };
1723
1737
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
1738
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
1739
+ reset: () => void;
1724
1740
  type: "error" | "info" | "trace" | "verbose" | "warn";
1725
1741
  id: "log";
1726
1742
  };
@@ -1991,6 +2007,8 @@ export declare const optionsMap: {
1991
2007
  source: string;
1992
2008
  };
1993
2009
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
2010
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
2011
+ reset: () => void;
1994
2012
  type: "error" | "info" | "trace" | "verbose" | "warn";
1995
2013
  id: "log";
1996
2014
  };
@@ -2165,6 +2183,8 @@ export declare const optionsMap: {
2165
2183
  source: string;
2166
2184
  };
2167
2185
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
2186
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
2187
+ reset: () => void;
2168
2188
  type: "error" | "info" | "trace" | "verbose" | "warn";
2169
2189
  id: "log";
2170
2190
  };
@@ -2231,6 +2251,8 @@ export declare const optionsMap: {
2231
2251
  source: string;
2232
2252
  };
2233
2253
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
2254
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
2255
+ reset: () => void;
2234
2256
  type: "error" | "info" | "trace" | "verbose" | "warn";
2235
2257
  id: "log";
2236
2258
  };
@@ -2276,6 +2298,8 @@ export declare const optionsMap: {
2276
2298
  source: string;
2277
2299
  };
2278
2300
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
2301
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
2302
+ reset: () => void;
2279
2303
  type: "error" | "info" | "trace" | "verbose" | "warn";
2280
2304
  id: "log";
2281
2305
  };
@@ -2321,6 +2345,8 @@ export declare const optionsMap: {
2321
2345
  source: string;
2322
2346
  };
2323
2347
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
2348
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
2349
+ reset: () => void;
2324
2350
  type: "error" | "info" | "trace" | "verbose" | "warn";
2325
2351
  id: "log";
2326
2352
  };
@@ -2355,6 +2381,8 @@ export declare const optionsMap: {
2355
2381
  source: string;
2356
2382
  };
2357
2383
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
2384
+ getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
2385
+ reset: () => void;
2358
2386
  type: "error" | "info" | "trace" | "verbose" | "warn";
2359
2387
  id: "log";
2360
2388
  };
@@ -12,5 +12,7 @@ export declare const rspackOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
15
17
  id: "rspack";
16
18
  };