@vencord/types 1.13.7 → 1.14.15

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 (268) hide show
  1. package/Vencord.d.ts +1 -0
  2. package/VencordNative.d.ts +7 -2
  3. package/api/Badges.d.ts +6 -1
  4. package/api/ChatButtons.d.ts +1 -1
  5. package/api/MessageEvents.d.ts +14 -10
  6. package/api/PluginManager.d.ts +5 -1
  7. package/api/Settings.d.ts +3 -2
  8. package/api/SettingsSync/cloudSync.d.ts +6 -0
  9. package/api/Styles.d.ts +16 -20
  10. package/components/BaseText.d.ts +1 -0
  11. package/components/Button.d.ts +1 -1
  12. package/components/Card.d.ts +1 -1
  13. package/components/CheckedTextInput.d.ts +2 -2
  14. package/components/CodeBlock.d.ts +9 -1
  15. package/components/ExpandableCard.d.ts +11 -0
  16. package/components/Icons.d.ts +9 -0
  17. package/components/TooltipContainer.d.ts +4 -0
  18. package/components/TooltipFallback.d.ts +3 -0
  19. package/components/settings/tabs/plugins/PluginModal.d.ts +2 -2
  20. package/components/settings/tabs/plugins/components/BooleanSetting.d.ts +2 -2
  21. package/components/settings/tabs/plugins/components/Common.d.ts +10 -8
  22. package/components/settings/tabs/plugins/components/ComponentSetting.d.ts +2 -2
  23. package/components/settings/tabs/plugins/components/NumberSetting.d.ts +2 -2
  24. package/components/settings/tabs/plugins/components/SelectSetting.d.ts +2 -2
  25. package/components/settings/tabs/plugins/components/SliderSetting.d.ts +2 -2
  26. package/components/settings/tabs/plugins/components/TextSetting.d.ts +2 -2
  27. package/components/settings/tabs/plugins/index.d.ts +1 -1
  28. package/components/settings/tabs/vencord/MacVibrancySettings.d.ts +1 -1
  29. package/components/settings/tabs/vencord/WindowsMaterialSettings.d.ts +1 -0
  30. package/package.json +8 -8
  31. package/plugins/_api/badges/index.d.ts +4 -5
  32. package/plugins/_api/commands.d.ts +0 -6
  33. package/plugins/_api/contextMenu.d.ts +12 -8
  34. package/plugins/_api/messageEvents.d.ts +1 -1
  35. package/plugins/_api/messagePopover.d.ts +1 -1
  36. package/plugins/_api/notices.d.ts +0 -6
  37. package/plugins/{friendsSince/index.d.ts → _core/concatenatedComponentExtractor.d.ts} +12 -6
  38. package/plugins/_core/noTrack.d.ts +1 -8
  39. package/plugins/_core/settings.d.ts +6 -26
  40. package/plugins/_core/supportHelper.d.ts +1 -1
  41. package/plugins/accountPanelServerProfile/index.d.ts +2 -7
  42. package/plugins/alwaysAnimate/index.d.ts +1 -0
  43. package/plugins/alwaysExpandRoles/index.d.ts +2 -1
  44. package/plugins/alwaysTrust/index.d.ts +2 -14
  45. package/plugins/anonymiseFileNames/index.d.ts +2 -34
  46. package/plugins/appleMusic.desktop/index.d.ts +32 -68
  47. package/plugins/arRPC.web/index.d.ts +1 -0
  48. package/plugins/autoDndWhilePlaying.discordDesktop/index.d.ts +2 -15
  49. package/plugins/betterFolders/index.d.ts +3 -108
  50. package/plugins/betterGifAltText/index.d.ts +1 -0
  51. package/plugins/betterGifPicker/index.d.ts +1 -0
  52. package/plugins/betterRoleContext/index.d.ts +28 -14
  53. package/plugins/betterRoleDot/index.d.ts +16 -15
  54. package/plugins/betterSessions/components/RenameButton.d.ts +1 -0
  55. package/plugins/betterSessions/components/RenameModal.d.ts +2 -2
  56. package/plugins/betterSessions/index.d.ts +5 -17
  57. package/plugins/betterSessions/utils.d.ts +1 -0
  58. package/plugins/betterSettings/index.d.ts +13 -44
  59. package/plugins/betterUploadButton/index.d.ts +1 -0
  60. package/plugins/biggerStreamPreview/index.d.ts +2 -2
  61. package/plugins/blurNsfw/index.d.ts +9 -8
  62. package/plugins/callTimer/index.d.ts +7 -7
  63. package/plugins/{ctrlEnterSend → characterCounter}/index.d.ts +18 -16
  64. package/plugins/clearURLs/index.d.ts +1 -0
  65. package/plugins/clientTheme/index.d.ts +3 -22
  66. package/plugins/colorSighted/index.d.ts +1 -0
  67. package/plugins/consoleJanitor/index.d.ts +10 -25
  68. package/plugins/consoleShortcuts/index.d.ts +2 -1
  69. package/plugins/copyEmojiMarkdown/index.d.ts +2 -7
  70. package/plugins/copyFileContents/index.d.ts +2 -1
  71. package/plugins/copyStickerLinks/index.d.ts +1 -0
  72. package/plugins/copyUserURLs/index.d.ts +1 -0
  73. package/plugins/crashHandler/index.d.ts +2 -12
  74. package/plugins/customCommands/CreateTagModal.d.ts +2 -0
  75. package/plugins/customCommands/SettingsTagList.d.ts +1 -0
  76. package/plugins/{messageTags → customCommands}/index.d.ts +20 -24
  77. package/plugins/customCommands/settings.d.ts +20 -0
  78. package/plugins/customIdle/index.d.ts +2 -15
  79. package/plugins/customRPC/index.d.ts +6 -15
  80. package/plugins/dearrow/index.d.ts +2 -28
  81. package/plugins/decor/index.d.ts +7 -15
  82. package/plugins/decor/settings.d.ts +2 -13
  83. package/plugins/decor/ui/components/index.d.ts +2 -1
  84. package/plugins/decor/ui/index.d.ts +2 -2
  85. package/plugins/devCompanion.dev/index.d.ts +2 -7
  86. package/plugins/disableCallIdle/index.d.ts +10 -2
  87. package/plugins/dontRoundMyTimestamps/index.d.ts +1 -0
  88. package/plugins/experiments/index.d.ts +8 -14
  89. package/plugins/expressionCloner/index.d.ts +2 -1
  90. package/plugins/f8break/index.d.ts +1 -0
  91. package/plugins/fakeNitro/index.d.ts +96 -69
  92. package/plugins/fakeProfileThemes/index.d.ts +2 -15
  93. package/plugins/favEmojiFirst/index.d.ts +1 -0
  94. package/plugins/favGifSearch/index.d.ts +3 -34
  95. package/plugins/fixCodeblockGap/index.d.ts +1 -0
  96. package/plugins/fixImagesQuality/index.d.ts +18 -0
  97. package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +2 -9
  98. package/plugins/fixYoutubeEmbeds.desktop/index.d.ts +1 -0
  99. package/plugins/forceOwnerCrown/index.d.ts +1 -0
  100. package/plugins/friendInvites/index.d.ts +1 -0
  101. package/plugins/fullSearchContext/index.d.ts +1 -0
  102. package/plugins/fullUserInChatbox/index.d.ts +1 -0
  103. package/plugins/gameActivityToggle/index.d.ts +2 -21
  104. package/plugins/gifPaste/index.d.ts +1 -0
  105. package/plugins/greetStickerPicker/index.d.ts +3 -15
  106. package/plugins/hideAttachments/index.d.ts +1 -0
  107. package/plugins/iLoveSpam/index.d.ts +1 -0
  108. package/plugins/ignoreActivities/index.d.ts +5 -66
  109. package/plugins/imageFilename/index.d.ts +2 -7
  110. package/plugins/imageLink/index.d.ts +1 -0
  111. package/plugins/imageZoom/index.d.ts +4 -87
  112. package/plugins/implicitRelationships/index.d.ts +10 -9
  113. package/plugins/ircColors/index.d.ts +3 -25
  114. package/plugins/keepCurrentChannel/index.d.ts +1 -0
  115. package/plugins/lastfmRichPresence/index.d.ts +5 -80
  116. package/plugins/loadingQuotes/index.d.ts +3 -27
  117. package/plugins/memberCount/OnlineMemberCountStore.d.ts +3 -3
  118. package/plugins/memberCount/index.d.ts +4 -42
  119. package/plugins/mentionAvatars/index.d.ts +3 -7
  120. package/plugins/messageClickActions/index.d.ts +2 -22
  121. package/plugins/messageLatency/index.d.ts +2 -1
  122. package/plugins/messageLinkEmbeds/index.d.ts +11 -40
  123. package/plugins/messageLogger/HistoryModal.d.ts +2 -2
  124. package/plugins/messageLogger/index.d.ts +19 -15
  125. package/plugins/moreQuickReactions/index.d.ts +26 -0
  126. package/plugins/mutualGroupDMs/index.d.ts +2 -0
  127. package/plugins/newGuildSettings/index.d.ts +6 -46
  128. package/plugins/noBlockedMessages/index.d.ts +6 -17
  129. package/plugins/noDeepLinks.web/index.d.ts +1 -0
  130. package/plugins/noDevtoolsWarning/index.d.ts +1 -0
  131. package/plugins/noF1/index.d.ts +1 -0
  132. package/plugins/noMaskedUrlPaste/index.d.ts +1 -0
  133. package/plugins/{normalizeMessageLinks → noMiddleClickPaste}/index.d.ts +3 -8
  134. package/plugins/noMosaic/index.d.ts +4 -10
  135. package/plugins/noOnboardingDelay/index.d.ts +1 -0
  136. package/plugins/noPendingCount/index.d.ts +2 -20
  137. package/plugins/noProfileThemes/index.d.ts +1 -0
  138. package/plugins/noReplyMention/index.d.ts +4 -30
  139. package/plugins/noServerEmojis/index.d.ts +2 -11
  140. package/plugins/noSystemBadge.discordDesktop/index.d.ts +1 -0
  141. package/plugins/noTypingAnimation/index.d.ts +1 -0
  142. package/plugins/noUnblockToJump/index.d.ts +1 -0
  143. package/plugins/notificationVolume/index.d.ts +2 -9
  144. package/plugins/onePingPerDM/index.d.ts +2 -25
  145. package/plugins/oneko/index.d.ts +1 -0
  146. package/plugins/openInApp/index.d.ts +3 -1
  147. package/plugins/overrideForumDefaults/index.d.ts +2 -28
  148. package/plugins/pauseInvitesForever/index.d.ts +2 -1
  149. package/plugins/permissionFreeWill/index.d.ts +2 -14
  150. package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +2 -14
  151. package/plugins/permissionsViewer/index.d.ts +6 -32
  152. package/plugins/permissionsViewer/utils.d.ts +2 -1
  153. package/plugins/petpet/index.d.ts +2 -1
  154. package/plugins/pictureInPicture/index.d.ts +2 -8
  155. package/plugins/pinDms/components/CreateCategoryModal.d.ts +3 -3
  156. package/plugins/pinDms/index.d.ts +7 -60
  157. package/plugins/plainFolderIcon/index.d.ts +2 -1
  158. package/plugins/platformIndicators/index.d.ts +13 -15
  159. package/plugins/previewMessage/index.d.ts +1 -0
  160. package/plugins/quickMention/index.d.ts +1 -0
  161. package/plugins/quickReply/index.d.ts +2 -20
  162. package/plugins/reactErrorDecoder/index.d.ts +1 -0
  163. package/plugins/readAllNotificationsButton/index.d.ts +1 -0
  164. package/plugins/relationshipNotifier/index.d.ts +2 -32
  165. package/plugins/relationshipNotifier/settings.d.ts +1 -32
  166. package/plugins/relationshipNotifier/types.d.ts +0 -6
  167. package/plugins/replaceGoogleSearch/index.d.ts +3 -24
  168. package/plugins/replyTimestamp/index.d.ts +1 -0
  169. package/plugins/revealAllSpoilers/index.d.ts +1 -0
  170. package/plugins/reverseImageSearch/index.d.ts +2 -1
  171. package/plugins/reviewDB/auth.d.ts +1 -1
  172. package/plugins/reviewDB/components/ReviewComponent.d.ts +2 -3
  173. package/plugins/reviewDB/components/ReviewsView.d.ts +2 -2
  174. package/plugins/reviewDB/entities.d.ts +3 -1
  175. package/plugins/reviewDB/index.d.ts +4 -31
  176. package/plugins/reviewDB/reviewDbApi.d.ts +21 -6
  177. package/plugins/reviewDB/settings.d.ts +1 -30
  178. package/plugins/reviewDB/utils.d.ts +1 -1
  179. package/plugins/roleColorEverywhere/index.d.ts +4 -46
  180. package/plugins/secretRingTone/index.d.ts +2 -8
  181. package/plugins/seeSummaries/index.d.ts +2 -9
  182. package/plugins/sendTimestamps/index.d.ts +2 -7
  183. package/plugins/serverInfo/index.d.ts +2 -1
  184. package/plugins/serverListIndicators/index.d.ts +3 -2
  185. package/plugins/shikiCodeblocks.desktop/components/Highlighter.d.ts +1 -1
  186. package/plugins/shikiCodeblocks.desktop/index.d.ts +2 -116
  187. package/plugins/shikiCodeblocks.desktop/settings.d.ts +1 -115
  188. package/plugins/shikiCodeblocks.desktop/utils/misc.d.ts +3 -1
  189. package/plugins/showAllMessageButtons/index.d.ts +1 -0
  190. package/plugins/showConnections/index.d.ts +2 -16
  191. package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +2 -28
  192. package/plugins/showHiddenChannels/index.d.ts +6 -56
  193. package/plugins/showHiddenThings/index.d.ts +10 -21
  194. package/plugins/showMeYourName/index.d.ts +2 -38
  195. package/plugins/showTimeoutDuration/index.d.ts +2 -15
  196. package/plugins/silentMessageToggle/index.d.ts +2 -13
  197. package/plugins/silentTyping/index.d.ts +2 -18
  198. package/plugins/sortFriendRequests/index.d.ts +2 -8
  199. package/plugins/spotifyControls/SpotifyStore.d.ts +3 -3
  200. package/plugins/spotifyControls/index.d.ts +21 -2
  201. package/plugins/spotifyCrack/index.d.ts +2 -14
  202. package/plugins/spotifyShareCommands/index.d.ts +1 -0
  203. package/plugins/startupTimings/index.d.ts +3 -8
  204. package/plugins/stickerPaste/index.d.ts +1 -0
  205. package/plugins/streamerModeOnStream/index.d.ts +1 -0
  206. package/plugins/superReactionTweaks/index.d.ts +3 -51
  207. package/plugins/textReplace/index.d.ts +5 -15
  208. package/plugins/themeAttributes/index.d.ts +9 -2
  209. package/plugins/translate/TranslateModal.d.ts +1 -4
  210. package/plugins/translate/index.d.ts +15 -62
  211. package/plugins/translate/languages.d.ts +373 -1
  212. package/plugins/translate/native.d.ts +4 -0
  213. package/plugins/translate/settings.d.ts +14 -62
  214. package/plugins/translate/utils.d.ts +372 -2
  215. package/plugins/typingIndicator/index.d.ts +2 -30
  216. package/plugins/typingTweaks/index.d.ts +2 -17
  217. package/plugins/unindent/index.d.ts +1 -0
  218. package/plugins/unlockedAvatarZoom/index.d.ts +2 -8
  219. package/plugins/unsuppressEmbeds/index.d.ts +1 -0
  220. package/plugins/userMessagesPronouns/index.d.ts +2 -20
  221. package/plugins/userMessagesPronouns/settings.d.ts +1 -20
  222. package/plugins/userVoiceShow/index.d.ts +4 -29
  223. package/plugins/usrbg/index.d.ts +9 -21
  224. package/plugins/validReply/index.d.ts +9 -2
  225. package/plugins/validUser/index.d.ts +2 -1
  226. package/plugins/vcDoubleClick/index.d.ts +1 -0
  227. package/plugins/vcNarrator/index.d.ts +3 -66
  228. package/plugins/vcNarrator/settings.d.ts +1 -66
  229. package/plugins/vencordToolbox/index.d.ts +4 -17
  230. package/plugins/viewIcons/index.d.ts +5 -28
  231. package/plugins/viewRaw/index.d.ts +10 -14
  232. package/plugins/voiceDownload/index.d.ts +1 -0
  233. package/plugins/voiceMessages/index.d.ts +15 -11
  234. package/plugins/voiceMessages/settings.d.ts +1 -12
  235. package/plugins/volumeBooster/index.d.ts +5 -10
  236. package/plugins/webContextMenus.web/index.d.ts +2 -9
  237. package/plugins/webKeybinds.web/index.d.ts +1 -0
  238. package/plugins/webScreenShareFixes.web/index.d.ts +3 -5
  239. package/plugins/whoReacted/index.d.ts +7 -19
  240. package/plugins/xsOverlay/index.d.ts +6 -77
  241. package/plugins/youtubeAdblock.desktop/index.d.ts +1 -0
  242. package/shared/IpcEvents.d.ts +7 -5
  243. package/utils/constants.d.ts +31 -2
  244. package/utils/css.d.ts +13 -1
  245. package/utils/discord.d.ts +1 -9
  246. package/utils/intlHash.d.ts +0 -1
  247. package/utils/misc.d.ts +1 -0
  248. package/utils/modal.d.ts +27 -166
  249. package/utils/patches.d.ts +1 -1
  250. package/utils/text.d.ts +1 -0
  251. package/utils/types.d.ts +47 -58
  252. package/utils/web-metadata.d.ts +3 -1
  253. package/webpack/common/components.d.ts +15 -77
  254. package/webpack/common/index.d.ts +1 -1
  255. package/webpack/common/internal.d.ts +2 -1
  256. package/webpack/common/modals.d.ts +7 -0
  257. package/webpack/common/stores.d.ts +33 -3
  258. package/webpack/common/utils.d.ts +4 -4
  259. package/webpack/patchWebpack.d.ts +1 -0
  260. package/webpack/types.d.ts +5 -2
  261. package/webpack/webpack.d.ts +15 -7
  262. package/components/css.d.ts +0 -1
  263. package/plugins/_api/menuItemDemangler.d.ts +0 -17
  264. package/plugins/betterNotes/index.d.ts +0 -57
  265. package/plugins/biggerStreamPreview/webpack/stores.d.ts +0 -3
  266. package/plugins/biggerStreamPreview/webpack/types/stores.d.ts +0 -60
  267. package/plugins/voiceMessages/utils.d.ts +0 -2
  268. package/webpack/common/classes.d.ts +0 -2
package/Vencord.d.ts CHANGED
@@ -16,6 +16,7 @@
16
16
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
  */
18
18
  import "~plugins";
19
+ import "./fixWeirdAppRegionBug.css";
19
20
  export * as Api from "./api";
20
21
  export * as Plugins from "./api/PluginManager";
21
22
  export * as Components from "./components";
@@ -1,8 +1,9 @@
1
1
  import type { Settings } from "./api/Settings";
2
- import { CspRequestResult } from "./main/csp/manager";
2
+ import type { CspRequestResult } from "./main/csp/manager";
3
3
  import type { UserThemeHeader } from "./main/themes";
4
4
  import { IpcEvents } from "./shared/IpcEvents";
5
- import { IpcRes } from "./utils/types";
5
+ import type { IpcRes } from "./utils/types";
6
+ export declare function invoke<T = any>(event: IpcEvents, ...args: any[]): Promise<T>;
6
7
  export declare function sendSync<T = any>(event: IpcEvents, ...args: any[]): T;
7
8
  declare const _default: {
8
9
  themes: {
@@ -31,10 +32,14 @@ declare const _default: {
31
32
  addThemeChangeListener(cb: () => void): void;
32
33
  openFile: () => Promise<void>;
33
34
  openEditor: () => Promise<void>;
35
+ getEditorTheme: () => string;
34
36
  };
35
37
  native: {
36
38
  getVersions: () => Partial<NodeJS.ProcessVersions>;
39
+ supportsWindowsMaterial: () => boolean;
37
40
  openExternal: (url: string) => Promise<void>;
41
+ getRendererCss: () => Promise<string>;
42
+ onRendererCssUpdate: (cb: (newCss: string) => void) => void;
38
43
  };
39
44
  csp: {
40
45
  /**
package/api/Badges.d.ts CHANGED
@@ -4,6 +4,10 @@ export declare const enum BadgePosition {
4
4
  END = 1
5
5
  }
6
6
  export interface ProfileBadge {
7
+ /**
8
+ * Badge id, unused by vencord, required by discord
9
+ */
10
+ id: string;
7
11
  /** The tooltip to show on hover. Required for image badges */
8
12
  description?: string;
9
13
  /** Custom component for the badge (tooltip not included) */
@@ -24,7 +28,8 @@ export interface ProfileBadge {
24
28
  /** The badge name to display, Discord uses this. Required for component badges */
25
29
  key?: string;
26
30
  /**
27
- * Allows dynamically returning multiple badges
31
+ * Allows dynamically returning multiple badges.
32
+ * Must not call hooks
28
33
  */
29
34
  getBadges?(userInfo: BadgeUserArgs): ProfileBadge[];
30
35
  }
@@ -75,7 +75,7 @@ export type ChatBarButtonData = {
75
75
  * Don't use this directly, use {@link addChatBarButton} and {@link removeChatBarButton} instead.
76
76
  */
77
77
  export declare const ChatBarButtonMap: Map<string, ChatBarButtonData>;
78
- export declare function _injectButtons(buttons: ReactNode[], props: ChatBarProps): ReactNode[] | undefined;
78
+ export declare function _injectButtons(buttons: ReactNode[], props: ChatBarProps): void;
79
79
  /**
80
80
  * The icon argument is used only for Settings UI. Your render function must still render an icon,
81
81
  * and it can be different from this one.
@@ -1,4 +1,4 @@
1
- import type { Channel, CloudUpload, CustomEmoji, Message } from "@vencord/discord-types";
1
+ import type { Channel, CustomEmoji, Message } from "@vencord/discord-types";
2
2
  import type { Promisable } from "type-fest";
3
3
  export interface MessageObject {
4
4
  content: string;
@@ -6,29 +6,33 @@ export interface MessageObject {
6
6
  invalidEmojis: any[];
7
7
  tts: boolean;
8
8
  }
9
- export interface MessageReplyOptions {
10
- messageReference: Message["messageReference"];
9
+ export interface SendMessageOptions {
10
+ messageReference?: Message["messageReference"];
11
11
  allowedMentions?: {
12
- parse: Array<string>;
12
+ parse: string[];
13
13
  repliedUser: boolean;
14
14
  };
15
+ location: string;
16
+ stickerIds?: string[];
17
+ alsoForwardToChannelId?: string;
18
+ scheduledTimestamp?: unknown;
19
+ mediaMention?: unknown;
15
20
  }
16
- export interface MessageOptions {
17
- stickers?: string[];
18
- uploads?: CloudUpload[];
19
- replyOptions: MessageReplyOptions;
21
+ export interface SendMessageProps {
22
+ hasStickers: boolean;
23
+ hasAttachments: boolean;
20
24
  content: string;
21
25
  channel: Channel;
22
26
  type?: any;
23
27
  openWarningPopout: (props: any) => any;
24
28
  }
25
- export type MessageSendListener = (channelId: string, messageObj: MessageObject, options: MessageOptions) => Promisable<void | {
29
+ export type MessageSendListener = (channelId: string, messageObj: MessageObject, options: SendMessageOptions, props: SendMessageProps) => Promisable<void | {
26
30
  cancel: boolean;
27
31
  }>;
28
32
  export type MessageEditListener = (channelId: string, messageId: string, messageObj: MessageObject) => Promisable<void | {
29
33
  cancel: boolean;
30
34
  }>;
31
- export declare function _handlePreSend(channelId: string, messageObj: MessageObject, options: MessageOptions, replyOptions: MessageReplyOptions): Promise<boolean>;
35
+ export declare function _handlePreSend(channelId: string, messageObj: MessageObject, options: SendMessageOptions, props: SendMessageProps): Promise<boolean>;
32
36
  export declare function _handlePreEdit(channelId: string, messageId: string, messageObj: MessageObject): Promise<boolean>;
33
37
  /**
34
38
  * Note: This event fires off before a message is sent, allowing you to edit the message.
@@ -1,11 +1,15 @@
1
1
  import { Logger } from "../utils/Logger";
2
- import { Patch, Plugin, StartAt } from "../utils/types";
2
+ import { DefinedSettings, Patch, Plugin, PluginSettingDef, StartAt } from "../utils/types";
3
3
  import { FluxDispatcher } from "../webpack/common";
4
4
  import Plugins from "~plugins";
5
5
  export { Plugins as plugins };
6
6
  export declare const PMLogger: Logger;
7
7
  export declare function isPluginEnabled(p: string): boolean;
8
+ export declare function isSettingHidden(settings: DefinedSettings, setting: PluginSettingDef): boolean;
9
+ export declare function isSettingDisabled(settings: DefinedSettings, setting: PluginSettingDef): boolean;
10
+ export declare function hasAnyVisibleSettings({ settings }: Plugin): boolean;
8
11
  export declare function addPatch(newPatch: Omit<Patch, "plugin">, pluginName: string, pluginPath?: string): void;
12
+ export declare function pluginRequiresRestart(p: Plugin): boolean;
9
13
  export declare const startAllPlugins: (target: StartAt) => void;
10
14
  export declare function startDependenciesRecursive(p: Plugin): {
11
15
  restartNeeded: boolean;
package/api/Settings.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface Settings {
21
21
  transparent: boolean;
22
22
  winCtrlQ: boolean;
23
23
  macosVibrancyStyle: "content" | "fullscreen-ui" | "header" | "hud" | "menu" | "popover" | "selection" | "sidebar" | "titlebar" | "tooltip" | "under-page" | "window" | undefined;
24
+ windowsMaterial: "none" | "mica" | "tabbed" | "acrylic";
24
25
  disableMinSize: boolean;
25
26
  winNativeTitleBar: boolean;
26
27
  plugins: {
@@ -51,7 +52,7 @@ export declare const SettingsStore: SettingsStoreClass<Settings>;
51
52
  * Same as {@link Settings} but unproxied. You should treat this as readonly,
52
53
  * as modifying properties on this will not save to disk or call settings
53
54
  * listeners.
54
- * WARNING: default values specified in plugin.options will not be ensured here. In other words,
55
+ * WARNING: default values specified in plugin.settings will not be ensured here. In other words,
55
56
  * settings for which you specified a default value may be uninitialised. If you need proper
56
57
  * handling for default values, use {@link Settings}
57
58
  */
@@ -72,7 +73,7 @@ export declare const Settings: Settings;
72
73
  export declare function useSettings(paths?: UseSettings<Settings>[]): Settings;
73
74
  export declare function migratePluginSettings(name: string, ...oldNames: string[]): void;
74
75
  export declare function migratePluginSetting(pluginName: string, oldSetting: string, newSetting: string): void;
75
- export declare function definePluginSettings<Def extends SettingsDefinition, Checks extends SettingsChecks<Def>, PrivateSettings extends object = {}>(def: Def, checks?: Checks): DefinedSettings<Def, Checks, PrivateSettings>;
76
+ export declare function definePluginSettings<Def extends SettingsDefinition, Checks extends SettingsChecks<Def>, PrivateSettings extends object = {}>(def: Def, checks?: Checks): DefinedSettings<Def, PrivateSettings>;
76
77
  type UseSettings<T extends object> = ResolveUseSettings<T>[keyof T];
77
78
  type ResolveUseSettings<T extends object> = {
78
79
  [Key in keyof T]: Key extends string ? T[Key] extends Record<string, unknown> ? `${Key}.*` | (ResolveUseSettings<T[Key]> extends Record<string, string> ? `${Key}.${ResolveUseSettings<T[Key]>[keyof T[Key]]}` : never) : Key : never;
@@ -1,3 +1,9 @@
1
+ export declare const getCloudSyncDirection: () => string;
2
+ export declare const setCloudSyncDirection: (direction: "push" | "pull" | "both" | "manual") => void;
3
+ export declare const areLocalSettingsDirty: () => boolean;
4
+ export declare const markLocalSettingsDirty: () => void;
5
+ export declare const markLocalSettingsClean: () => void;
6
+ export declare function shouldCloudSync(direction: "push" | "pull"): boolean;
1
7
  export declare function putCloudSettings(manual?: boolean): Promise<void>;
2
8
  export declare function getCloudSettings(shouldNotify?: boolean, force?: boolean): Promise<boolean | undefined>;
3
9
  export declare function deleteCloudSettings(): Promise<void>;
package/api/Styles.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /** @deprecated Import this from `@utils/css` instead */
2
+ export declare const classNameFactory: (prefix?: string) => (...args: import("../utils/css").ClassNameFactoryArg[]) => string;
1
3
  export interface Style {
2
4
  name: string;
3
5
  source: string;
@@ -5,6 +7,20 @@ export interface Style {
5
7
  dom: HTMLStyleElement | null;
6
8
  }
7
9
  export declare const styleMap: Map<string, Style>;
10
+ export declare const vencordRootNode: HTMLElement;
11
+ /**
12
+ * Houses all Vencord core styles. This includes all imported css files
13
+ */
14
+ export declare const coreStyleRootNode: HTMLElement;
15
+ /**
16
+ * Houses all plugin specific managed styles
17
+ */
18
+ export declare const managedStyleRootNode: HTMLElement;
19
+ /**
20
+ * Houses the user's themes and quick css
21
+ */
22
+ export declare const userStyleRootNode: HTMLElement;
23
+ export declare function initStyles(): void;
8
24
  export declare function requireStyle(name: string): Style;
9
25
  /**
10
26
  * A style's name can be obtained from importing a stylesheet with `?managed` at the end of the import
@@ -69,23 +85,3 @@ export declare const setStyleClassNames: (name: string, classNames: Record<strin
69
85
  * @see {@link setStyleClassNames} for more info on style classnames
70
86
  */
71
87
  export declare const compileStyle: (style: Style) => void;
72
- /**
73
- * @param name The classname
74
- * @param prefix A prefix to add each class, defaults to `""`
75
- * @return A css selector for the classname
76
- * @example
77
- * classNameToSelector("foo bar") // => ".foo.bar"
78
- */
79
- export declare const classNameToSelector: (name: string, prefix?: string) => string;
80
- type ClassNameFactoryArg = string | string[] | Record<string, unknown> | false | null | undefined | 0 | "";
81
- /**
82
- * @param prefix The prefix to add to each class, defaults to `""`
83
- * @returns A classname generator function
84
- * @example
85
- * const cl = classNameFactory("plugin-");
86
- *
87
- * cl("base", ["item", "editable"], { selected: null, disabled: true })
88
- * // => "plugin-base plugin-item plugin-editable plugin-disabled"
89
- */
90
- export declare const classNameFactory: (prefix?: string) => (...args: ClassNameFactoryArg[]) => string;
91
- export {};
@@ -28,6 +28,7 @@ export type BaseTextProps<Tag extends TextTag = "div"> = ComponentPropsWithoutRe
28
28
  size?: TextSize;
29
29
  weight?: TextWeight;
30
30
  tag?: Tag;
31
+ defaultColor?: boolean;
31
32
  };
32
33
  export declare function BaseText<T extends TextTag = "div">(props: BaseTextProps<T>): ReactNode;
33
34
  export declare const TextCompat: DiscordText;
@@ -2,7 +2,7 @@ import "./Button.css";
2
2
  import type { Button as DiscordButton } from "@vencord/discord-types";
3
3
  import type { ComponentPropsWithRef } from "react";
4
4
  export type ButtonVariant = "primary" | "secondary" | "dangerPrimary" | "dangerSecondary" | "overlayPrimary" | "positive" | "link" | "none";
5
- export type ButtonSize = "min" | "xs" | "small" | "medium";
5
+ export type ButtonSize = "min" | "xs" | "small" | "medium" | "iconOnly";
6
6
  export type ButtonProps = ComponentPropsWithRef<"button"> & {
7
7
  variant?: ButtonVariant;
8
8
  size?: ButtonSize;
@@ -1,7 +1,7 @@
1
1
  import "./Card.css";
2
2
  import { ComponentPropsWithRef } from "react";
3
3
  export interface CardProps extends ComponentPropsWithRef<"div"> {
4
- variant?: "normal" | "warning" | "danger";
4
+ variant?: "normal" | "warning" | "danger" | "info" | "success";
5
5
  /** Add a default padding of 1em to the card. This is implied if no className prop is passed */
6
6
  defaultPadding?: boolean;
7
7
  }
@@ -2,7 +2,7 @@ interface TextInputProps {
2
2
  /**
3
3
  * WARNING: Changing this between renders will have no effect!
4
4
  */
5
- value: string;
5
+ initialValue: string;
6
6
  /**
7
7
  * This will only be called if the new value passed validate()
8
8
  */
@@ -18,5 +18,5 @@ interface TextInputProps {
18
18
  * A very simple wrapper around Discord's TextInput that validates input and shows
19
19
  * the user an error message and only calls your onChange when the input is valid
20
20
  */
21
- export declare function CheckedTextInput({ value: initialValue, onChange, validate }: TextInputProps): import("react").JSX.Element;
21
+ export declare function CheckedTextInput({ initialValue, onChange, validate }: TextInputProps): import("react").JSX.Element;
22
22
  export {};
@@ -1,7 +1,15 @@
1
1
  /**
2
2
  * Renders code in a Discord codeblock
3
3
  */
4
- export declare function CodeBlock(props: {
4
+ export declare function CodeBlock({ className, ...props }: {
5
5
  content?: string;
6
6
  lang: string;
7
+ className?: string;
8
+ }): import("react").JSX.Element;
9
+ /**
10
+ * Renders inline code like `this`
11
+ */
12
+ export declare function InlineCode({ children, className }: {
13
+ children: React.ReactNode;
14
+ className?: string;
7
15
  }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import "./ExpandableCard.css";
2
+ import { PropsWithChildren } from "react";
3
+ export type ExpandableSectionProps = PropsWithChildren<{
4
+ renderContent: () => React.ReactNode;
5
+ className?: string;
6
+ initialExpanded?: boolean;
7
+ }>;
8
+ /**
9
+ * A card component that can expand and collapse to show/hide content. The header (props.children) is always visible, and the content (props.renderContent) is only visible when expanded.
10
+ */
11
+ export declare function ExpandableSection({ children, renderContent: Content, className, initialExpanded }: ExpandableSectionProps): import("react").JSX.Element;
@@ -9,6 +9,10 @@ export declare function LinkIcon({ height, width, className }: IconProps): JSX.E
9
9
  * Discord's copy icon, as seen in the user panel popout on the right of the username and in large code blocks
10
10
  */
11
11
  export declare function CopyIcon(props: IconProps): JSX.Element;
12
+ /**
13
+ * Discord's ID icon, as seen in Developer Mode "Copy ID" context menu items
14
+ */
15
+ export declare function CopyIdIcon(props: IconProps): JSX.Element;
12
16
  /**
13
17
  * Discord's open external icon, as seen in the user profile connections
14
18
  */
@@ -48,4 +52,9 @@ export declare function BackupRestoreIcon(props: IconProps): JSX.Element;
48
52
  export declare function UpdaterIcon(props: IconProps): JSX.Element;
49
53
  export declare function PatchHelperIcon(props: IconProps): JSX.Element;
50
54
  export declare function VesktopSettingsIcon(props: IconProps): JSX.Element;
55
+ export declare function CloudDownloadIcon(props: IconProps): JSX.Element;
56
+ export declare function CloudUploadIcon(props: IconProps): JSX.Element;
57
+ export declare function ClockIcon(props: IconProps): JSX.Element;
58
+ export declare function DownArrow(props: IconProps): JSX.Element;
59
+ export declare function RightArrow(props: IconProps): JSX.Element;
51
60
  export {};
@@ -0,0 +1,4 @@
1
+ import { TooltipProps } from "@vencord/discord-types";
2
+ export declare function TooltipContainer({ children, ...props }: Omit<TooltipProps, "children"> & {
3
+ children: React.ReactNode;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { Tooltip } from "@vencord/discord-types";
2
+ /** Don't use this */
3
+ export declare const TooltipFallback: Tooltip;
@@ -1,7 +1,7 @@
1
1
  import "./PluginModal.css";
2
- import { ModalProps } from "../../../../utils/modal";
3
2
  import { Plugin } from "../../../../utils/types";
4
- interface PluginModalProps extends ModalProps {
3
+ import { RenderModalProps } from "@vencord/discord-types";
4
+ interface PluginModalProps extends RenderModalProps {
5
5
  plugin: Plugin;
6
6
  onRestartNeeded(key: string): void;
7
7
  }
@@ -1,3 +1,3 @@
1
- import { PluginOptionBoolean } from "../../../../../utils/types";
1
+ import { PluginSettingBooleanDef } from "../../../../../utils/types";
2
2
  import { SettingProps } from "./Common";
3
- export declare function BooleanSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionBoolean>): import("react").JSX.Element;
3
+ export declare function BooleanSetting({ setting, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginSettingBooleanDef>): import("react").JSX.Element;
@@ -1,25 +1,27 @@
1
- import { DefinedSettings, PluginOptionBase } from "../../../../../utils/types";
1
+ import { DefinedSettings, PluginSettingDefCommon } from "../../../../../utils/types";
2
2
  import { PropsWithChildren } from "react";
3
- export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
3
+ export declare const cl: (...args: import("../../../../../utils/css").ClassNameFactoryArg[]) => string;
4
4
  interface SettingBaseProps<T> {
5
- option: T;
5
+ setting: T;
6
6
  onChange(newValue: any): void;
7
7
  pluginSettings: {
8
8
  [setting: string]: any;
9
9
  enabled: boolean;
10
10
  };
11
11
  id: string;
12
- definedSettings?: DefinedSettings;
12
+ definedSettings: DefinedSettings;
13
+ closePluginSettings(): void;
13
14
  }
14
- export type SettingProps<T extends PluginOptionBase> = SettingBaseProps<T>;
15
- export type ComponentSettingProps<T extends Omit<PluginOptionBase, "description" | "placeholder">> = SettingBaseProps<T>;
15
+ export type SettingProps<T extends PluginSettingDefCommon> = SettingBaseProps<T>;
16
+ export type ComponentSettingProps<T extends Omit<PluginSettingDefCommon, "description" | "placeholder">> = SettingBaseProps<T>;
16
17
  export declare function resolveError(isValidResult: boolean | string): string | null;
17
18
  interface SettingsSectionProps extends PropsWithChildren {
18
- name: string;
19
+ name?: string;
20
+ id: string;
19
21
  description: string;
20
22
  error?: string | null;
21
23
  inlineSetting?: boolean;
22
24
  tag?: "label" | "div";
23
25
  }
24
- export declare function SettingsSection({ tag: Tag, name, description, error, inlineSetting, children }: SettingsSectionProps): import("react").JSX.Element;
26
+ export declare function SettingsSection({ tag: Tag, name, id, description, error, inlineSetting, children }: SettingsSectionProps): import("react").JSX.Element;
25
27
  export {};
@@ -1,3 +1,3 @@
1
- import { PluginOptionComponent } from "../../../../../utils/types";
1
+ import { PluginSettingComponentDef } from "../../../../../utils/types";
2
2
  import { ComponentSettingProps } from "./Common";
3
- export declare function ComponentSetting({ option, onChange }: ComponentSettingProps<PluginOptionComponent>): import("react").ReactNode | Promise<import("react").ReactNode>;
3
+ export declare function ComponentSetting({ setting, onChange, closePluginSettings }: ComponentSettingProps<PluginSettingComponentDef>): import("react").ReactNode | Promise<import("react").ReactNode>;
@@ -1,3 +1,3 @@
1
- import { PluginOptionNumber } from "../../../../../utils/types";
1
+ import { PluginSettingBigIntDef, PluginSettingNumberDef } from "../../../../../utils/types";
2
2
  import { SettingProps } from "./Common";
3
- export declare function NumberSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionNumber>): import("react").JSX.Element;
3
+ export declare function NumberSetting({ setting, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginSettingNumberDef | PluginSettingBigIntDef>): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { PluginOptionSelect } from "../../../../../utils/types";
1
+ import { PluginSettingSelectDef } from "../../../../../utils/types";
2
2
  import { SettingProps } from "./Common";
3
- export declare function SelectSetting({ option, pluginSettings, definedSettings, onChange, id }: SettingProps<PluginOptionSelect>): import("react").JSX.Element;
3
+ export declare function SelectSetting({ setting, pluginSettings, definedSettings, onChange, id }: SettingProps<PluginSettingSelectDef>): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { PluginOptionSlider } from "../../../../../utils/types";
1
+ import { PluginSettingSliderDef } from "../../../../../utils/types";
2
2
  import { SettingProps } from "./Common";
3
- export declare function SliderSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionSlider>): import("react").JSX.Element;
3
+ export declare function SliderSetting({ setting, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginSettingSliderDef>): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { PluginOptionString } from "../../../../../utils/types";
1
+ import { PluginSettingStringDef } from "../../../../../utils/types";
2
2
  import { SettingProps } from "./Common";
3
- export declare function TextSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionString>): import("react").JSX.Element;
3
+ export declare function TextSetting({ setting, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginSettingStringDef>): import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import "./styles.css";
2
2
  import { Logger } from "../../../../utils/Logger";
3
- export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
3
+ export declare const cl: (...args: import("../../../../utils/css").ClassNameFactoryArg[]) => string;
4
4
  export declare const logger: Logger;
5
5
  declare const _default: import("react").FunctionComponent<any>;
6
6
  export default _default;
@@ -1 +1 @@
1
- export declare function VibrancySettings(): import("react").JSX.Element;
1
+ export declare function MacOSVibrancySettings(): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function WindowsMaterialSettings(): import("react").JSX.Element | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vencord/types",
3
3
  "private": false,
4
- "version": "1.13.7",
4
+ "version": "1.14.15",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -10,20 +10,20 @@
10
10
  },
11
11
  "keywords": [],
12
12
  "author": "Vencord",
13
- "license": "GPL-3.0",
13
+ "license": "GPL-3.0-or-later",
14
14
  "devDependencies": {
15
15
  "@types/fs-extra": "^11.0.4",
16
- "fs-extra": "^11.3.0",
17
- "tsx": "^4.19.2"
16
+ "fs-extra": "^11.3.6",
17
+ "tsx": "^4.22.4"
18
18
  },
19
19
  "dependencies": {
20
- "@types/lodash": "4.17.15",
21
- "@types/node": "^22.13.4",
22
- "@vencord/discord-types": "^1.0.0",
20
+ "@types/lodash": "4.17.19",
21
+ "@types/node": "^26.0.1",
22
+ "@vencord/discord-types": "^1.0.1",
23
23
  "highlight.js": "11.11.1",
24
24
  "moment": "^2.22.2",
25
25
  "ts-pattern": "^5.6.0",
26
- "type-fest": "^4.35.0"
26
+ "type-fest": "^5.7.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@types/react": "18.3.1",
@@ -1,6 +1,5 @@
1
1
  import "./fixDiscordBadgePadding.css";
2
2
  import { BadgePosition, BadgeUserArgs, ProfileBadge } from "../../../api/Badges";
3
- import { User } from "@vencord/discord-types";
4
3
  declare const _default: {
5
4
  name: string;
6
5
  description: string;
@@ -14,13 +13,13 @@ declare const _default: {
14
13
  replacement: {
15
14
  match: RegExp;
16
15
  replace: string;
17
- };
16
+ }[];
18
17
  } | {
19
18
  find: string;
20
19
  replacement: {
21
20
  match: RegExp;
22
21
  replace: string;
23
- }[];
22
+ };
24
23
  })[];
25
24
  readonly DonorBadges: Record<string, Record<"tooltip" | "badge", string>[]>;
26
25
  toolboxActions: {
@@ -29,14 +28,14 @@ declare const _default: {
29
28
  userProfileBadge: ProfileBadge;
30
29
  start(): Promise<void>;
31
30
  stop(): Promise<void>;
32
- getBadges(props: {
31
+ getBadges(profile: {
33
32
  userId: string;
34
- user?: User;
35
33
  guildId: string;
36
34
  }): ProfileBadge[];
37
35
  renderBadgeComponent: import("react").FunctionComponent<ProfileBadge & BadgeUserArgs>;
38
36
  getBadgeMouseEventHandlers(badge: ProfileBadge & BadgeUserArgs): Record<string, (e: React.MouseEvent) => void>;
39
37
  getDonorBadges(userId: string): {
38
+ id: string;
40
39
  iconSrc: string;
41
40
  description: string;
42
41
  position: BadgePosition.START;
@@ -18,12 +18,6 @@ declare const _default: {
18
18
  match: RegExp;
19
19
  replace: (_: string, cmd: string, args: string, ctx: string) => string;
20
20
  };
21
- } | {
22
- find: string;
23
- replacement: {
24
- match: RegExp;
25
- replace: string;
26
- };
27
21
  })[];
28
22
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
29
23
  export default _default;
@@ -7,14 +7,6 @@ declare const _default: {
7
7
  }[];
8
8
  required: true;
9
9
  patches: ({
10
- find: string;
11
- replacement: {
12
- match: RegExp;
13
- replace: string;
14
- };
15
- all?: undefined;
16
- noWarn?: undefined;
17
- } | {
18
10
  find: string;
19
11
  all: true;
20
12
  noWarn: true;
@@ -22,6 +14,18 @@ declare const _default: {
22
14
  match: RegExp;
23
15
  replace: (m: string, rest: string) => string;
24
16
  }[];
17
+ } | {
18
+ find: string;
19
+ replacement: ({
20
+ match: RegExp;
21
+ replace: string;
22
+ } | {
23
+ match: RegExp;
24
+ replace: (_: string, m: string) => string;
25
+ })[];
26
+ all?: undefined;
27
+ noWarn?: undefined;
25
28
  })[];
29
+ registerMenuItem(name: string, component: any): void;
26
30
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
27
31
  export default _default;
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  find: string;
10
10
  replacement: {
11
11
  match: RegExp;
12
- replace: (m: string, parsedMessage: string, channel: string, replyOptions: string, extra: string) => string;
12
+ replace: (m: string, parsedMessage: string, channel: string, options: string, props: string) => string;
13
13
  };
14
14
  }[];
15
15
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  find: string;
10
10
  replacement: {
11
11
  match: RegExp;
12
- replace: (_: string, ReactButton: string, PotionButton: string, ButtonComponent: string, showReactButton: string, message: string) => string;
12
+ replace: (_: string, ReactButton: string, ButtonComponent: string, showReactButton: string, message: string) => string;
13
13
  };
14
14
  }[];
15
15
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
@@ -11,15 +11,9 @@ declare const _default: {
11
11
  replacement: ({
12
12
  match: RegExp;
13
13
  replace: string;
14
- noWarn?: undefined;
15
14
  } | {
16
15
  match: RegExp;
17
16
  replace: (m: string, notice: string) => string;
18
- noWarn: true;
19
- } | {
20
- match: RegExp;
21
- replace: (m: string, _: string, notice: string) => string;
22
- noWarn?: undefined;
23
17
  })[];
24
18
  }[];
25
19
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;