Преглед изворни кода

Regenerate types and fix type errors

JC Brand пре 8 месеци
родитељ
комит
ace2fe4aec
100 измењених фајлова са 390 додато и 397 уклоњено
  1. 8 8
      package-lock.json
  2. 1 1
      src/headless/package.json
  3. 0 1
      src/headless/plugins/muc/muc.js
  4. 5 1
      src/headless/shared/connection/index.js
  5. 9 9
      src/headless/types/index.d.ts
  6. 5 5
      src/headless/types/log.d.ts
  7. 6 6
      src/headless/types/plugins/adhoc/api.d.ts
  8. 3 3
      src/headless/types/plugins/adhoc/utils.d.ts
  9. 2 2
      src/headless/types/plugins/bookmarks/collection.d.ts
  10. 2 2
      src/headless/types/plugins/bookmarks/index.d.ts
  11. 1 1
      src/headless/types/plugins/bookmarks/model.d.ts
  12. 1 1
      src/headless/types/plugins/bosh/utils.d.ts
  13. 1 1
      src/headless/types/plugins/caps/utils.d.ts
  14. 3 3
      src/headless/types/plugins/chat/api.d.ts
  15. 3 3
      src/headless/types/plugins/chat/index.d.ts
  16. 2 2
      src/headless/types/plugins/chat/message.d.ts
  17. 2 2
      src/headless/types/plugins/chat/messages.d.ts
  18. 2 2
      src/headless/types/plugins/chat/model-with-contact.d.ts
  19. 6 6
      src/headless/types/plugins/chat/model.d.ts
  20. 3 3
      src/headless/types/plugins/chat/utils.d.ts
  21. 5 5
      src/headless/types/plugins/chatboxes/api.d.ts
  22. 3 3
      src/headless/types/plugins/chatboxes/chatboxes.d.ts
  23. 1 1
      src/headless/types/plugins/chatboxes/utils.d.ts
  24. 3 3
      src/headless/types/plugins/disco/api.d.ts
  25. 1 1
      src/headless/types/plugins/disco/entities.d.ts
  26. 3 3
      src/headless/types/plugins/disco/entity.d.ts
  27. 1 1
      src/headless/types/plugins/emoji/index.d.ts
  28. 1 1
      src/headless/types/plugins/emoji/picker.d.ts
  29. 2 2
      src/headless/types/plugins/headlines/api.d.ts
  30. 1 1
      src/headless/types/plugins/headlines/feed.d.ts
  31. 2 2
      src/headless/types/plugins/mam/api.d.ts
  32. 1 1
      src/headless/types/plugins/mam/index.d.ts
  33. 1 1
      src/headless/types/plugins/mam/placeholder.d.ts
  34. 5 5
      src/headless/types/plugins/mam/utils.d.ts
  35. 2 2
      src/headless/types/plugins/muc/affiliations/api.d.ts
  36. 3 3
      src/headless/types/plugins/muc/affiliations/utils.d.ts
  37. 5 5
      src/headless/types/plugins/muc/api.d.ts
  38. 35 35
      src/headless/types/plugins/muc/constants.d.ts
  39. 5 5
      src/headless/types/plugins/muc/index.d.ts
  40. 1 1
      src/headless/types/plugins/muc/message.d.ts
  41. 2 2
      src/headless/types/plugins/muc/messages.d.ts
  42. 13 13
      src/headless/types/plugins/muc/muc.d.ts
  43. 3 3
      src/headless/types/plugins/muc/occupant.d.ts
  44. 5 5
      src/headless/types/plugins/muc/occupants.d.ts
  45. 4 4
      src/headless/types/plugins/muc/parsers.d.ts
  46. 2 2
      src/headless/types/plugins/muc/utils.d.ts
  47. 1 1
      src/headless/types/plugins/ping/api.d.ts
  48. 4 4
      src/headless/types/plugins/roster/contact.d.ts
  49. 1 1
      src/headless/types/plugins/roster/contacts.d.ts
  50. 1 1
      src/headless/types/plugins/roster/filter.d.ts
  51. 5 5
      src/headless/types/plugins/roster/index.d.ts
  52. 1 1
      src/headless/types/plugins/roster/presence.d.ts
  53. 1 1
      src/headless/types/plugins/roster/resource.d.ts
  54. 1 1
      src/headless/types/plugins/roster/utils.d.ts
  55. 1 1
      src/headless/types/plugins/status/index.d.ts
  56. 1 1
      src/headless/types/plugins/status/status.d.ts
  57. 3 3
      src/headless/types/plugins/vcard/api.d.ts
  58. 1 1
      src/headless/types/plugins/vcard/index.d.ts
  59. 5 5
      src/headless/types/plugins/vcard/utils.d.ts
  60. 1 1
      src/headless/types/plugins/vcard/vcard.d.ts
  61. 12 17
      src/headless/types/shared/_converse.d.ts
  62. 6 6
      src/headless/types/shared/api/events.d.ts
  63. 2 2
      src/headless/types/shared/api/index.d.ts
  64. 4 4
      src/headless/types/shared/api/presence.d.ts
  65. 2 2
      src/headless/types/shared/api/send.d.ts
  66. 4 4
      src/headless/types/shared/api/user.d.ts
  67. 3 3
      src/headless/types/shared/chat/utils.d.ts
  68. 1 1
      src/headless/types/shared/color.d.ts
  69. 2 2
      src/headless/types/shared/connection/api.d.ts
  70. 1 1
      src/headless/types/shared/connection/feedback.d.ts
  71. 7 3
      src/headless/types/shared/connection/index.d.ts
  72. 22 22
      src/headless/types/shared/constants.d.ts
  73. 5 5
      src/headless/types/shared/index.d.ts
  74. 7 7
      src/headless/types/shared/parsers.d.ts
  75. 4 4
      src/headless/types/shared/settings/api.d.ts
  76. 36 36
      src/headless/types/shared/settings/constants.d.ts
  77. 3 3
      src/headless/types/shared/settings/user/api.d.ts
  78. 1 1
      src/headless/types/utils/html.d.ts
  79. 16 25
      src/headless/types/utils/index.d.ts
  80. 6 6
      src/headless/types/utils/init.d.ts
  81. 4 4
      src/headless/types/utils/session.d.ts
  82. 6 6
      src/types/entry.d.ts
  83. 1 1
      src/types/i18n/index.d.ts
  84. 6 6
      src/types/plugins/adhoc-views/adhoc-commands.d.ts
  85. 3 3
      src/types/plugins/adhoc-views/templates/ad-hoc-command-form.d.ts
  86. 3 3
      src/types/plugins/adhoc-views/templates/ad-hoc-command.d.ts
  87. 1 1
      src/types/plugins/adhoc-views/templates/ad-hoc.d.ts
  88. 1 1
      src/types/plugins/bookmark-views/components/bookmark-form.d.ts
  89. 2 2
      src/types/plugins/bookmark-views/components/bookmarks-list.d.ts
  90. 4 4
      src/types/plugins/chatview/bottom-panel.d.ts
  91. 1 1
      src/types/plugins/chatview/chat.d.ts
  92. 1 1
      src/types/plugins/chatview/heading.d.ts
  93. 2 2
      src/types/plugins/chatview/message-form.d.ts
  94. 1 1
      src/types/plugins/chatview/templates/message-form.d.ts
  95. 1 1
      src/types/plugins/controlbox/buttons.d.ts
  96. 3 3
      src/types/plugins/controlbox/controlbox.d.ts
  97. 1 1
      src/types/plugins/controlbox/model.d.ts
  98. 1 1
      src/types/plugins/controlbox/navback.d.ts
  99. 1 1
      src/types/plugins/controlbox/templates/buttons.d.ts
  100. 1 1
      src/types/plugins/controlbox/templates/controlbox.d.ts

+ 8 - 8
package-lock.json

@@ -3077,9 +3077,9 @@
       }
     },
     "node_modules/@xmldom/xmldom": {
-      "version": "0.8.8",
-      "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.8.tgz",
-      "integrity": "sha512-0LNz4EY8B/8xXY86wMrQ4tz6zEHZv9ehFMJPm8u2gq5lQ71cfRKdaKyxfJAx5aUoyzx0qzgURblTisPGgz3d+Q==",
+      "version": "0.8.10",
+      "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz",
+      "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==",
       "optional": true,
       "engines": {
         "node": ">=10.0.0"
@@ -9500,16 +9500,16 @@
       }
     },
     "node_modules/strophe.js": {
-      "version": "3.0.0",
-      "resolved": "git+ssh://git@github.com/strophe/strophejs.git#120807d90c881a5e351e3129e9a4985a7d699628",
-      "integrity": "sha512-Y+xJNsyYIiKuBf4ja7oYWVWc9pCOiv8M5ZoSv4GSdHVfASO9ssV7t6zU7vW/MvrAPwCf8Mbbo4iOtfSsML3A3A==",
+      "version": "3.0.1",
+      "resolved": "git+ssh://git@github.com/strophe/strophejs.git#4a77b265c3b5da882b8f805016a0c587dbd63e3c",
+      "integrity": "sha512-YDn98Uihd1NSinINzWd78LUI2ZInD+euW98UTAbIeiy1/fxUKRYnoAHoE1/tZz4MNj2hxFZBxsb3nk/1hdjUzQ==",
       "license": "MIT",
       "dependencies": {
         "abab": "^2.0.3"
       },
       "optionalDependencies": {
         "@types/ws": "^8.5.5",
-        "@xmldom/xmldom": "0.8.8",
+        "@xmldom/xmldom": "0.8.10",
         "ws": "^8.5.0"
       }
     },
@@ -10617,7 +10617,7 @@
         "pluggable.js": "3.0.1",
         "sizzle": "^2.3.5",
         "sprintf-js": "^1.1.2",
-        "strophe.js": "strophe/strophejs#120807d90c881a5e351e3129e9a4985a7d699628",
+        "strophe.js": "strophe/strophejs#4a77b265c3b5da882b8f805016a0c587dbd63e3c",
         "urijs": "^1.19.10"
       },
       "devDependencies": {}

+ 1 - 1
src/headless/package.json

@@ -42,7 +42,7 @@
     "pluggable.js": "3.0.1",
     "sizzle": "^2.3.5",
     "sprintf-js": "^1.1.2",
-    "strophe.js": "strophe/strophejs#120807d90c881a5e351e3129e9a4985a7d699628",
+    "strophe.js": "strophe/strophejs#4a77b265c3b5da882b8f805016a0c587dbd63e3c",
     "urijs": "^1.19.10"
   },
   "devDependencies": {}

+ 0 - 1
src/headless/plugins/muc/muc.js

@@ -2352,7 +2352,6 @@ class MUC extends ChatBox {
     async onMessage (attrs) {
         attrs = await attrs;
         if (isErrorObject(attrs)) {
-            attrs.stanza && log.error(attrs.stanza);
             return log.error(attrs.message);
         } else if (attrs.type === 'error' && !(await this.shouldShowErrorMessage(attrs))) {
             return;

+ 5 - 1
src/headless/shared/connection/index.js

@@ -445,6 +445,10 @@ export class Connection extends Strophe.Connection {
  */
 export class MockConnection extends Connection {
 
+    /**
+     * @param {string} service - The BOSH or WebSocket service URL.
+     * @param {import('strophe.js/src/types/connection').ConnectionOptions} options - The configuration options
+     */
     constructor (service, options) {
         super(service, options);
 
@@ -466,7 +470,7 @@ export class MockConnection extends Connection {
                 '</session>'+
             '</stream:features>').firstElementChild;
 
-        // eslint-disable-next-line @typescript-eslint/no-empty-function
+        // @ts-ignore
         this._proto._processRequest = () => {};
         this._proto._disconnect = () => this._onDisconnectTimeout();
         // eslint-disable-next-line @typescript-eslint/no-empty-function

+ 9 - 9
src/headless/types/index.d.ts

@@ -2,16 +2,16 @@ export { EmojiPicker } from "./plugins/emoji/index.js";
 export { MAMPlaceholderMessage } from "./plugins/mam/index.js";
 export { XMPPStatus } from "./plugins/status/index.js";
 export default converse;
-import { api } from "./shared/index.js";
-import converse from "./shared/api/public.js";
-import { _converse } from "./shared/index.js";
-import { i18n } from "./shared/index.js";
-import log from "./log.js";
-import u from "./utils/index.js";
+import { api } from './shared/index.js';
+import converse from './shared/api/public.js';
+import { _converse } from './shared/index.js';
+import { i18n } from './shared/index.js';
+import log from './log.js';
+import u from './utils/index.js';
 export const constants: typeof shared_constants & typeof muc_constants;
-import { parsers } from "./shared/index.js";
-import { constants as shared_constants } from "./shared/index.js";
-import * as muc_constants from "./plugins/muc/constants.js";
+import { parsers } from './shared/index.js';
+import { constants as shared_constants } from './shared/index.js';
+import * as muc_constants from './plugins/muc/constants.js';
 export { api, converse, _converse, i18n, log, u, parsers };
 export { Bookmark, Bookmarks } from "./plugins/bookmarks/index.js";
 export { ChatBox, Message, Messages } from "./plugins/chat/index.js";

+ 5 - 5
src/headless/types/log.d.ts

@@ -1,9 +1,9 @@
 export namespace LEVELS {
-    const debug: number;
-    const info: number;
-    const warn: number;
-    const error: number;
-    const fatal: number;
+    let debug: number;
+    let info: number;
+    let warn: number;
+    let error: number;
+    let fatal: number;
 }
 declare namespace _default {
     /**

+ 6 - 6
src/headless/types/plugins/adhoc/api.d.ts

@@ -11,7 +11,7 @@ declare namespace _default {
          * @param {string} node
          * @returns {Promise<AdHocCommandResult>}
          */
-        function fetchCommandForm(jid: string, node: string): Promise<import("./utils.js").AdHocCommandResult>;
+        function fetchCommandForm(jid: string, node: string): Promise<AdHocCommandResult>;
         /**
          * @method api.adhoc.runCommand
          * @param {String} jid
@@ -20,9 +20,9 @@ declare namespace _default {
          * @param {String} node
          * @param {Array<{ [k:string]: string }>} inputs
          */
-        function runCommand(jid: string, sessionid: string, node: string, action: AdHocCommandAction, inputs: {
+        function runCommand(jid: string, sessionid: string, node: string, action: AdHocCommandAction, inputs: Array<{
             [k: string]: string;
-        }[]): Promise<{
+        }>): Promise<{
             note: any;
             type?: import("../../shared/parsers.js").XFormResponseType;
             title?: string;
@@ -37,7 +37,7 @@ declare namespace _default {
     }
 }
 export default _default;
-export type AdHocCommand = import('./utils').AdHocCommand;
-export type AdHocCommandResult = import('./utils').AdHocCommandResult;
-export type AdHocCommandAction = 'execute' | 'cancel' | 'prev' | 'next' | 'complete';
+export type AdHocCommand = import("./utils").AdHocCommand;
+export type AdHocCommandResult = import("./utils").AdHocCommandResult;
+export type AdHocCommandAction = "execute" | "cancel" | "prev" | "next" | "complete";
 //# sourceMappingURL=api.d.ts.map

+ 3 - 3
src/headless/types/plugins/adhoc/utils.d.ts

@@ -39,7 +39,7 @@ export type AdHocCommand = {
 };
 export type AdHocCommandResultNote = {
     text: string;
-    type: 'info' | 'warn' | 'error';
+    type: "info" | "warn" | "error";
 };
 export type AdHocCommandAttrs = {
     sessionid: string;
@@ -47,6 +47,6 @@ export type AdHocCommandAttrs = {
     note?: AdHocCommandResultNote;
 };
 export type AdHocCommandResult = XForm & AdHocCommandAttrs;
-export type TemplateResult = import('lit').TemplateResult;
-export type XForm = import('../../shared/parsers').XForm;
+export type TemplateResult = import("lit").TemplateResult;
+export type XForm = import("../../shared/parsers").XForm;
 //# sourceMappingURL=utils.d.ts.map

+ 2 - 2
src/headless/types/plugins/bookmarks/collection.d.ts

@@ -1,5 +1,5 @@
 export default Bookmarks;
-export type MUC = import('../muc/muc.js').default;
+export type MUC = import("../muc/muc.js").default;
 declare class Bookmarks extends Collection {
     static checkBookmarksSupport(): Promise<any>;
     constructor();
@@ -32,5 +32,5 @@ declare class Bookmarks extends Collection {
     getUnopenedBookmarks(): Promise<any>;
 }
 import { Collection } from "@converse/skeletor";
-import Bookmark from "./model.js";
+import Bookmark from './model.js';
 //# sourceMappingURL=collection.d.ts.map

+ 2 - 2
src/headless/types/plugins/bookmarks/index.d.ts

@@ -1,4 +1,4 @@
-import Bookmark from "./model.js";
-import Bookmarks from "./collection.js";
+import Bookmark from './model.js';
+import Bookmarks from './collection.js';
 export { Bookmark, Bookmarks };
 //# sourceMappingURL=index.d.ts.map

+ 1 - 1
src/headless/types/plugins/bookmarks/model.d.ts

@@ -2,5 +2,5 @@ export default Bookmark;
 declare class Bookmark extends Model {
     getDisplayName(): any;
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=model.d.ts.map

+ 1 - 1
src/headless/types/plugins/bosh/utils.d.ts

@@ -3,7 +3,7 @@ export function startNewPreboundBOSHSession(): void;
  * @param {unknown} _
  * @param {LoginHookPayload} payload
  */
-export function attemptPrebind(_: unknown, payload: any): Promise<any>;
+export function attemptPrebind(_: unknown, payload: LoginHookPayload): Promise<any>;
 export function saveJIDToSession(): void;
 export function clearSession(): void;
 export function restoreBOSHSession(): Promise<boolean>;

+ 1 - 1
src/headless/types/plugins/caps/utils.d.ts

@@ -2,7 +2,7 @@
  * Given a stanza, adds a XEP-0115 CAPS element
  * @param {Strophe.Builder} stanza
  */
-export function addCapsNode(stanza: any): Promise<any>;
+export function addCapsNode(stanza: Strophe.Builder): Promise<any>;
 export namespace Strophe {
     type Builder = any;
 }

+ 3 - 3
src/headless/types/plugins/chat/api.d.ts

@@ -6,7 +6,7 @@ declare namespace _default {
          * @param {object} [attrs] An object containing configuration attributes.
          * @returns {Promise<ChatBox|ChatBox[]>}
          */
-        function create(jids: string | string[], attrs?: any): Promise<import("./model.js").default | import("./model.js").default[]>;
+        function create(jids: string | string[], attrs?: object): Promise<ChatBox | ChatBox[]>;
         /**
          * Opens a new one-on-one chat.
          *
@@ -72,9 +72,9 @@ declare namespace _default {
          * const models = await api.chats.get();
          *
          */
-        function get(jids: string | string[], attrs?: any, create?: boolean): Promise<import("./model.js").default[]>;
+        function get(jids: string | string[], attrs?: any, create?: boolean): Promise<ChatBox[]>;
     }
 }
 export default _default;
-export type ChatBox = import('./model.js').default;
+export type ChatBox = import("./model.js").default;
 //# sourceMappingURL=api.d.ts.map

+ 3 - 3
src/headless/types/plugins/chat/index.d.ts

@@ -1,5 +1,5 @@
-import ChatBox from "./model.js";
-import Message from "./message.js";
-import Messages from "./messages.js";
+import ChatBox from './model.js';
+import Message from './message.js';
+import Messages from './messages.js';
 export { ChatBox, Message, Messages };
 //# sourceMappingURL=index.d.ts.map

+ 2 - 2
src/headless/types/plugins/chat/message.d.ts

@@ -1,5 +1,5 @@
 export default Message;
-export type Model = import('@converse/skeletor').Model;
+export type Model = import("@converse/skeletor").Model;
 /**
  * Represents a (non-MUC) message.
  * These can be either `chat`, `normal` or `headline` messages.
@@ -74,5 +74,5 @@ declare class Message extends ModelWithContact {
     };
     uploadFile(): void;
 }
-import ModelWithContact from "./model-with-contact.js";
+import ModelWithContact from './model-with-contact.js';
 //# sourceMappingURL=message.d.ts.map

+ 2 - 2
src/headless/types/plugins/chat/messages.d.ts

@@ -6,6 +6,6 @@ declare class Messages extends Collection {
     fetched: any;
     chatbox: any;
 }
-import { Collection } from "@converse/skeletor";
-import Message from "./message.js";
+import { Collection } from '@converse/skeletor';
+import Message from './message.js';
 //# sourceMappingURL=messages.d.ts.map

+ 2 - 2
src/headless/types/plugins/chat/model-with-contact.d.ts

@@ -5,7 +5,7 @@ declare class ModelWithContact extends ColorAwareModel {
      * @public
      * @type {RosterContact|XMPPStatus}
      */
-    public contact: import("../status/status.js").default | import("../roster/contact").default;
+    public contact: import("../roster/contact").default | import("../status/status.js").default;
     /**
      * @public
      * @type {VCard}
@@ -16,5 +16,5 @@ declare class ModelWithContact extends ColorAwareModel {
      */
     setModelContact(jid: string): Promise<void>;
 }
-import { ColorAwareModel } from "../../shared/color.js";
+import { ColorAwareModel } from '../../shared/color.js';
 //# sourceMappingURL=model-with-contact.d.ts.map

+ 6 - 6
src/headless/types/plugins/chat/model.d.ts

@@ -84,7 +84,7 @@ declare class ChatBox extends ModelWithContact {
      * @method ChatBox#setChatState
      * @param { string } state - The chat state (consts ACTIVE, COMPOSING, PAUSED, INACTIVE, GONE)
      */
-    setChatState(state: string, options: any): ChatBox;
+    setChatState(state: string, options: any): this;
     chat_state_timeout: NodeJS.Timeout;
     /**
      * Given an error `<message>` stanza's attributes, find the saved message model which is
@@ -161,7 +161,7 @@ declare class ChatBox extends ModelWithContact {
      * @param { Boolean } force - Whether a marker should be sent for the
      *  message, even if it didn't include a `markable` element.
      */
-    sendMarkerForLastMessage(type?: ('received' | 'displayed' | 'acknowledged'), force?: boolean): void;
+    sendMarkerForLastMessage(type?: ("received" | "displayed" | "acknowledged"), force?: boolean): void;
     /**
      * Given the passed in message object, send a XEP-0333 chat marker.
      * @param { Message } msg
@@ -169,7 +169,7 @@ declare class ChatBox extends ModelWithContact {
      * @param { Boolean } force - Whether a marker should be sent for the
      *  message, even if it didn't include a `markable` element.
      */
-    sendMarkerForMessage(msg: import("./message.js").default, type?: ('received' | 'displayed' | 'acknowledged'), force?: boolean): void;
+    sendMarkerForMessage(msg: import("./message.js").default, type?: ("received" | "displayed" | "acknowledged"), force?: boolean): void;
     handleChatMarker(attrs: any): boolean;
     sendReceiptStanza(to_jid: any, id: any): void;
     handleReceipt(attrs: any): boolean;
@@ -224,7 +224,7 @@ declare class ChatBox extends ModelWithContact {
     /**
      * @param {boolean} force
      */
-    maybeShow(force: boolean): ChatBox;
+    maybeShow(force: boolean): this;
     /**
      * Indicates whether the chat is hidden and therefore
      * whether a newly received message will be visible
@@ -247,6 +247,6 @@ declare class ChatBox extends ModelWithContact {
     isScrolledUp(): any;
     canPostMessages(): boolean;
 }
-import ModelWithContact from "./model-with-contact.js";
-import { Model } from "@converse/skeletor";
+import ModelWithContact from './model-with-contact.js';
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=model.d.ts.map

+ 3 - 3
src/headless/types/plugins/chat/utils.d.ts

@@ -18,8 +18,8 @@ export function handleMessageStanza(stanza: Element | Builder): Promise<void>;
  * See [XEP-0280](https://xmpp.org/extensions/xep-0280.html#enabling)
  */
 export function enableCarbons(): Promise<void>;
-export type ChatBox = import('./model.js').default;
+export type ChatBox = import("./model.js").default;
 export type MessageAttributes = any;
-export type Builder = import('strophe.js').Builder;
-import { Model } from "@converse/skeletor";
+export type Builder = import("strophe.js").Builder;
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=utils.d.ts.map

+ 5 - 5
src/headless/types/plugins/chatboxes/api.d.ts

@@ -8,7 +8,7 @@ declare namespace _default {
      * @param {Object} attrs An object containing configuration attributes
      * @param {ModelClass} model - The type of chatbox that should be created
      */
-    function create(jids: string | string[], attrs: any, model: new (attrs: any, options: any) => import("../chat/model.js").default): Promise<import("../chat/model.js").default | import("../chat/model.js").default[]>;
+    function create(jids: string | string[], attrs: any, model: new (attrs: object, options: object) => ChatBox): Promise<import("../chat/model.js").default | import("../chat/model.js").default[]>;
     /**
      * @method api.chatboxes.get
      * @param {string|string[]} [jids] - A JID or array of JIDs
@@ -24,16 +24,16 @@ declare namespace _default {
          * @param {string} type - The type name
          * @param {ModelClass} model - The model which will be instantiated for the given type name.
          */
-        function add(type: string, model: new (attrs: any, options: any) => import("../chat/model.js").default): void;
+        function add(type: string, model: new (attrs: object, options: object) => ChatBox): void;
         /**
          * @method api.chatboxes.registry.get
          * @param {string} type - The type name
          * @return {ModelClass} model - The model which will be instantiated for the given type name.
          */
-        function get(type: string): new (attrs: any, options: any) => import("../chat/model.js").default;
+        function get(type: string): new (attrs: object, options: object) => ChatBox;
     }
 }
 export default _default;
-export type Model = import('@converse/skeletor').Model;
-export type ChatBox = import('../chat/model.js').default;
+export type Model = import("@converse/skeletor").Model;
+export type ChatBox = import("../chat/model.js").default;
 //# sourceMappingURL=api.d.ts.map

+ 3 - 3
src/headless/types/plugins/chatboxes/chatboxes.d.ts

@@ -1,7 +1,7 @@
 export default ChatBoxes;
-export type ChatBox = import('../../plugins/chat/model.js').default;
-export type MUC = import('../../plugins/muc/muc').default;
-export type Model = import('@converse/skeletor').Model;
+export type ChatBox = import("../../plugins/chat/model.js").default;
+export type MUC = import("../../plugins/muc/muc").default;
+export type Model = import("@converse/skeletor").Model;
 declare class ChatBoxes extends Collection {
     /**
      * @param {Model[]} models

+ 1 - 1
src/headless/types/plugins/chatboxes/utils.d.ts

@@ -4,5 +4,5 @@
  * @param {new (attrs: object, options: object) => ChatBox} Model
  */
 export function createChatBox(jid: string, attrs: object, Model: new (attrs: object, options: object) => ChatBox): Promise<import("../chat/model.js").default>;
-export type ChatBox = import('../chat/model.js').default;
+export type ChatBox = import("../chat/model.js").default;
 //# sourceMappingURL=utils.d.ts.map

+ 3 - 3
src/headless/types/plugins/disco/api.d.ts

@@ -255,7 +255,7 @@ declare namespace _default {
     }
 }
 export default _default;
-export type DiscoState = import('./index').DiscoState;
-export type DiscoEntities = import('./entities').default;
-export type Collection = import('@converse/skeletor').Collection;
+export type DiscoState = import("./index").DiscoState;
+export type DiscoEntities = import("./entities").default;
+export type Collection = import("@converse/skeletor").Collection;
 //# sourceMappingURL=api.d.ts.map

+ 1 - 1
src/headless/types/plugins/disco/entities.d.ts

@@ -5,5 +5,5 @@ declare class DiscoEntities extends Collection {
     fetchEntities(): Promise<any>;
 }
 import { Collection } from "@converse/skeletor";
-import DiscoEntity from "./entity.js";
+import DiscoEntity from './entity.js';
 //# sourceMappingURL=entities.d.ts.map

+ 3 - 3
src/headless/types/plugins/disco/entity.d.ts

@@ -29,7 +29,7 @@ declare class DiscoEntity extends Model {
      * @method _converse.DiscoEntity#getFeature
      * @param { String } feature - The feature that might be supported.
      */
-    getFeature(feature: string): Promise<DiscoEntity>;
+    getFeature(feature: string): Promise<this>;
     onFeatureAdded(feature: any): void;
     onFieldAdded(field: any): void;
     fetchFeatures(options: any): Promise<void>;
@@ -44,6 +44,6 @@ declare class DiscoEntity extends Model {
      */
     onInfo(stanza: Element): Promise<void>;
 }
-import { Model } from "@converse/skeletor";
-import { Collection } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
+import { Collection } from '@converse/skeletor';
 //# sourceMappingURL=entity.d.ts.map

+ 1 - 1
src/headless/types/plugins/emoji/index.d.ts

@@ -1,3 +1,3 @@
 export { EmojiPicker };
-import EmojiPicker from "./picker.js";
+import EmojiPicker from './picker.js';
 //# sourceMappingURL=index.d.ts.map

+ 1 - 1
src/headless/types/plugins/emoji/picker.d.ts

@@ -9,5 +9,5 @@ declare class EmojiPicker extends Model {
         scroll_position: number;
     };
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=picker.d.ts.map

+ 2 - 2
src/headless/types/plugins/headlines/api.d.ts

@@ -9,9 +9,9 @@ declare namespace _default {
          * @param { Boolean } [create=false] - Whether the chat should be created if it's not found.
          * @returns { Promise<HeadlinesFeed[]|HeadlinesFeed> }
          */
-        function get(jids: string | string[], attrs?: any, create?: boolean): Promise<import("./feed.js").default | import("./feed.js").default[]>;
+        function get(jids: string | string[], attrs?: any, create?: boolean): Promise<HeadlinesFeed[] | HeadlinesFeed>;
     }
 }
 export default _default;
-export type HeadlinesFeed = import('./feed.js').default;
+export type HeadlinesFeed = import("./feed.js").default;
 //# sourceMappingURL=api.d.ts.map

+ 1 - 1
src/headless/types/plugins/headlines/feed.d.ts

@@ -15,5 +15,5 @@ export default class HeadlinesFeed extends ChatBox {
         type: string;
     };
 }
-import ChatBox from "../../plugins/chat/model.js";
+import ChatBox from '../../plugins/chat/model.js';
 //# sourceMappingURL=feed.d.ts.map

+ 2 - 2
src/headless/types/plugins/mam/api.d.ts

@@ -172,7 +172,7 @@ declare namespace _default {
         function query(options: any): Promise<{
             messages: any[];
             /**
-             * - An instance of {@link RSM }.
+             * - An instance of {@link RSM}.
              * You can call `next()` or `previous()` on this instance,
              * to get the RSM query parameters for the next or previous
              * page in the result set.
@@ -185,5 +185,5 @@ declare namespace _default {
 }
 export default _default;
 export type RSMQueryParameters = any;
-import { RSM } from "../../shared/rsm";
+import { RSM } from '../../shared/rsm';
 //# sourceMappingURL=api.d.ts.map

+ 1 - 1
src/headless/types/plugins/mam/index.d.ts

@@ -1,3 +1,3 @@
 export { MAMPlaceholderMessage };
-import MAMPlaceholderMessage from "./placeholder.js";
+import MAMPlaceholderMessage from './placeholder.js';
 //# sourceMappingURL=index.d.ts.map

+ 1 - 1
src/headless/types/plugins/mam/placeholder.d.ts

@@ -4,5 +4,5 @@ export default class MAMPlaceholderMessage extends Model {
         is_ephemeral: boolean;
     };
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=placeholder.d.ts.map

+ 5 - 5
src/headless/types/plugins/mam/utils.d.ts

@@ -32,7 +32,7 @@ export function preMUCJoinMAMFetch(muc: MUC): void;
  * @param {Object} options
  * @param {('forwards'|'backwards'|null)} [should_page=null]
  */
-export function handleMAMResult(model: ChatBox | MUC, result: any, query: any, options: any, should_page?: ('forwards' | 'backwards' | null)): Promise<void>;
+export function handleMAMResult(model: ChatBox | MUC, result: any, query: any, options: any, should_page?: ("forwards" | "backwards" | null)): Promise<void>;
 /**
  * @typedef {Object} MAMOptions
  * A map of MAM related options that may be passed to fetchArchivedMessages
@@ -58,7 +58,7 @@ export function handleMAMResult(model: ChatBox | MUC, result: any, query: any, o
  *  this function should recursively page through the entire result set if a limited
  *  number of results were returned.
  */
-export function fetchArchivedMessages(model: ChatBox, options?: MAMOptions, should_page?: ('forwards' | 'backwards' | null)): any;
+export function fetchArchivedMessages(model: ChatBox, options?: MAMOptions, should_page?: ("forwards" | "backwards" | null)): Promise<void>;
 /**
  * Fetches messages that might have been archived *after*
  * the last archived message in our local cache.
@@ -69,7 +69,7 @@ export function fetchNewestMessages(model: ChatBox): void;
  * A map of MAM related options that may be passed to fetchArchivedMessages
  */
 export type MAMOptions = any;
-export type MUC = import('../muc/muc.js').default;
-export type ChatBox = import('../chat/model.js').default;
-export type Model = import('@converse/skeletor/src/types/helpers.js').Model;
+export type MUC = import("../muc/muc.js").default;
+export type ChatBox = import("../chat/model.js").default;
+export type Model = import("@converse/skeletor/src/types/helpers.js").Model;
 //# sourceMappingURL=utils.d.ts.map

+ 2 - 2
src/headless/types/plugins/muc/affiliations/api.d.ts

@@ -27,7 +27,7 @@ declare namespace _default {
          *      ]
          *  )
          */
-        function set(muc_jids: string | string[], users: {
+        function set(muc_jids: string | Array<string>, users: {
             /**
              * - The JID of the user whose affiliation will change
              */
@@ -49,7 +49,7 @@ declare namespace _default {
          * @param {string} jid - The JID of the MUC for which the affiliation list should be fetched
          * @returns {Promise<MemberListItem[]|Error>}
          */
-        function get(affiliation: "owner" | "admin" | "member", jid: string): Promise<Error | any[]>;
+        function get(affiliation: "owner" | "admin" | "member", jid: string): Promise<MemberListItem[] | Error>;
     }
 }
 export default _default;

+ 3 - 3
src/headless/types/plugins/muc/affiliations/utils.d.ts

@@ -35,7 +35,7 @@ export function setAffiliations(muc_jid: string | Array<string>, users: Array<Us
  *  same affiliation as being currently set will be considered.
  * @returns {Promise} A promise which resolves and fails depending on the XMPP server response.
  */
-export function setAffiliation(affiliation: any[][number], muc_jids: string | Array<string>, members: object): Promise<any>;
+export function setAffiliation(affiliation: AFFILIATIONS[number], muc_jids: string | Array<string>, members: object): Promise<any>;
 /**
  * Given two lists of objects with 'jid', 'affiliation' and
  * 'reason' properties, return a new list containing
@@ -65,13 +65,13 @@ export function setAffiliation(affiliation: any[][number], muc_jids: string | Ar
 export function computeAffiliationsDelta(exclude_existing: boolean, remove_absentees: boolean, new_list: any[], old_list: any[]): any[];
 /**
  * Sends an IQ stanza to the server, asking it for the relevant affiliation list .
- * Returns an array of {@link MemberListItem } objects, representing occupants
+ * Returns an array of {@link MemberListItem} objects, representing occupants
  * that have the given affiliation.
  * See: https://xmpp.org/extensions/xep-0045.html#modifymember
  */
 export type NonOutcastAffiliation = ("admin" | "owner" | "member");
 export type MemberListItem = any;
 export type User = any;
-export type Model = import('@converse/skeletor').Model;
+export type Model = import("@converse/skeletor").Model;
 export type AFFILIATIONS = any[];
 //# sourceMappingURL=utils.d.ts.map

+ 5 - 5
src/headless/types/plugins/muc/api.d.ts

@@ -1,5 +1,5 @@
 export default rooms_api;
-export type MUC = import('./muc.js').default;
+export type MUC = import("./muc.js").default;
 declare namespace rooms_api {
     export { rooms };
 }
@@ -16,7 +16,7 @@ declare namespace rooms {
      * @param {object} [attrs] attrs The room attributes
      * @returns {Promise<MUC[]|MUC>} Promise which resolves with the Model representing the chat.
      */
-    function create(jids: string | string[], attrs?: any): Promise<import("./muc.js").default | import("./muc.js").default[]>;
+    function create(jids: (string[] | string), attrs?: object): Promise<MUC[] | MUC>;
     /**
      * Opens a MUC chatroom (aka groupchat)
      *
@@ -81,10 +81,10 @@ declare namespace rooms {
         nick?: string;
         hidden?: boolean;
         auto_configure?: boolean;
-        roomconfig?: any;
+        roomconfig?: object;
         minimized?: boolean;
         bring_to_foreground?: boolean;
-    }, force?: boolean): Promise<import("./muc.js").default | import("./muc.js").default[]>;
+    }, force?: boolean): Promise<MUC[] | MUC>;
     /**
      * Fetches the object representing a MUC chatroom (aka groupchat)
      *
@@ -110,6 +110,6 @@ declare namespace rooms {
     function get(jids?: string | string[], attrs?: {
         nick?: string;
         password?: string;
-    }, create?: boolean): Promise<import("./muc.js").default | import("./muc.js").default[]>;
+    }, create?: boolean): Promise<MUC[] | MUC>;
 }
 //# sourceMappingURL=api.d.ts.map

+ 35 - 35
src/headless/types/plugins/muc/constants.d.ts

@@ -1,55 +1,55 @@
 export const ROLES: string[];
 export const AFFILIATIONS: string[];
 export namespace MUC_ROLE_WEIGHTS {
-    const moderator: number;
-    const participant: number;
-    const visitor: number;
-    const none: number;
+    let moderator: number;
+    let participant: number;
+    let visitor: number;
+    let none: number;
 }
 export namespace AFFILIATION_CHANGES {
-    const OWNER: string;
-    const ADMIN: string;
-    const MEMBER: string;
-    const EXADMIN: string;
-    const EXOWNER: string;
-    const EXOUTCAST: string;
-    const EXMEMBER: string;
+    let OWNER: string;
+    let ADMIN: string;
+    let MEMBER: string;
+    let EXADMIN: string;
+    let EXOWNER: string;
+    let EXOUTCAST: string;
+    let EXMEMBER: string;
 }
 export const AFFILIATION_CHANGES_LIST: string[];
 export namespace MUC_TRAFFIC_STATES {
-    const ENTERED: string;
-    const EXITED: string;
+    let ENTERED: string;
+    let EXITED: string;
 }
 export const MUC_TRAFFIC_STATES_LIST: string[];
 export namespace MUC_ROLE_CHANGES {
-    const OP: string;
-    const DEOP: string;
-    const VOICE: string;
-    const MUTE: string;
+    let OP: string;
+    let DEOP: string;
+    let VOICE: string;
+    let MUTE: string;
 }
 export const MUC_ROLE_CHANGES_LIST: string[];
 export namespace INFO_CODES {
-    const visibility_changes: string[];
-    const self: string[];
-    const non_privacy_changes: string[];
-    const muc_logging_changes: string[];
-    const nickname_changes: string[];
-    const disconnected: string[];
-    const affiliation_changes: string[];
-    const join_leave_events: string[];
-    const role_changes: string[];
+    let visibility_changes: string[];
+    let self: string[];
+    let non_privacy_changes: string[];
+    let muc_logging_changes: string[];
+    let nickname_changes: string[];
+    let disconnected: string[];
+    let affiliation_changes: string[];
+    let join_leave_events: string[];
+    let role_changes: string[];
 }
 export namespace ROOMSTATUS {
-    export const CONNECTED: number;
-    export const CONNECTING: number;
-    export const NICKNAME_REQUIRED: number;
-    export const PASSWORD_REQUIRED: number;
-    export const DISCONNECTED: number;
-    const ENTERED_1: number;
+    export let CONNECTED: number;
+    export let CONNECTING: number;
+    export let NICKNAME_REQUIRED: number;
+    export let PASSWORD_REQUIRED: number;
+    export let DISCONNECTED: number;
+    let ENTERED_1: number;
     export { ENTERED_1 as ENTERED };
-    export const DESTROYED: number;
-    export const BANNED: number;
-    export const CLOSING: number;
+    export let DESTROYED: number;
+    export let BANNED: number;
+    export let CLOSING: number;
 }
 export const ROOM_FEATURES: string[];
 export const MUC_NICK_CHANGED_CODE: "303";

+ 5 - 5
src/headless/types/plugins/muc/index.d.ts

@@ -1,7 +1,7 @@
-import MUCMessage from "./message.js";
-import MUCMessages from "./messages.js";
-import MUC from "./muc.js";
-import MUCOccupant from "./occupant.js";
-import MUCOccupants from "./occupants.js";
+import MUCMessage from './message.js';
+import MUCMessages from './messages.js';
+import MUC from './muc.js';
+import MUCOccupant from './occupant.js';
+import MUCOccupants from './occupants.js';
 export { MUCMessage, MUCMessages, MUC, MUCOccupant, MUCOccupants };
 //# sourceMappingURL=index.d.ts.map

+ 1 - 1
src/headless/types/plugins/muc/message.d.ts

@@ -23,5 +23,5 @@ declare class MUCMessage extends Message {
     setOccupant(occupant?: import("./occupant.js").default): import("./occupant.js").default;
     occupant: any;
 }
-import Message from "../chat/message.js";
+import Message from '../chat/message.js';
 //# sourceMappingURL=message.d.ts.map

+ 2 - 2
src/headless/types/plugins/muc/messages.d.ts

@@ -6,6 +6,6 @@ declare class MUCMessages extends Collection {
     constructor(attrs: any, options?: {});
     model: typeof MUCMessage;
 }
-import { Collection } from "@converse/skeletor";
-import MUCMessage from "./message";
+import { Collection } from '@converse/skeletor';
+import MUCMessage from './message';
 //# sourceMappingURL=messages.d.ts.map

+ 13 - 13
src/headless/types/plugins/muc/muc.d.ts

@@ -1,12 +1,12 @@
 export default MUC;
-export type MUCMessage = import('./message.js').default;
-export type MUCOccupant = import('./occupant.js').default;
-export type NonOutcastAffiliation = import('./affiliations/utils.js').NonOutcastAffiliation;
+export type MUCMessage = import("./message.js").default;
+export type MUCOccupant = import("./occupant.js").default;
+export type NonOutcastAffiliation = import("./affiliations/utils.js").NonOutcastAffiliation;
 export type MemberListItem = any;
 export type MessageAttributes = any;
 export type MUCMessageAttributes = any;
 export type UserMessage = any;
-export type Builder = import('strophe.js').Builder;
+export type Builder = import("strophe.js").Builder;
 /**
  * Represents an open/ongoing groupchat conversation.
  * @namespace MUC
@@ -28,7 +28,7 @@ declare class MUC extends ChatBox {
         time_sent: string;
         type: string;
     };
-    debouncedRejoin: import("lodash").DebouncedFunc<() => Promise<MUC>>;
+    debouncedRejoin: import("lodash").DebouncedFunc<() => Promise<this>>;
     isEntered(): boolean;
     /**
      * Checks whether this MUC qualifies for subscribing to XEP-0437 Room Activity Indicators (RAI)
@@ -62,7 +62,7 @@ declare class MUC extends ChatBox {
     /**
      * @param {string} password
      */
-    constructJoinPresence(password: string): Promise<import("strophe.js/src/types/builder").default>;
+    constructJoinPresence(password: string): Promise<import("strophe.js").Builder>;
     clearOccupantsCache(): void;
     /**
      * Given the passed in MUC message, send a XEP-0333 chat marker.
@@ -71,7 +71,7 @@ declare class MUC extends ChatBox {
      * @param { Boolean } force - Whether a marker should be sent for the
      *  message, even if it didn't include a `markable` element.
      */
-    sendMarkerForMessage(msg: MUCMessage, type?: ('received' | 'displayed' | 'acknowledged'), force?: boolean): void;
+    sendMarkerForMessage(msg: MUCMessage, type?: ("received" | "displayed" | "acknowledged"), force?: boolean): void;
     /**
      * Ensures that the user is subscribed to XEP-0437 Room Activity Indicators
      * if `muc_subscribe_to_rai` is set to `true`.
@@ -144,7 +144,7 @@ declare class MUC extends ChatBox {
     message_handler: any;
     domain_message_handler: any;
     affiliation_message_handler: any;
-    removeHandlers(): MUC;
+    removeHandlers(): this;
     invitesAllowed(): any;
     /**
      * Sends a message stanza to the XMPP server and expects a reflection
@@ -202,7 +202,7 @@ declare class MUC extends ChatBox {
      * @param {{name: 'closeAllChatBoxes'}} [ev]
      */
     close(ev?: {
-        name: 'closeAllChatBoxes';
+        name: "closeAllChatBoxes";
     }): Promise<any>;
     canModerateMessages(): any;
     /**
@@ -574,7 +574,7 @@ declare class MUC extends ChatBox {
      * messages for them.
      * @param {MessageAttributes} attrs
      */
-    handleMEPNotification(attrs: any): boolean;
+    handleMEPNotification(attrs: MessageAttributes): boolean;
     /**
      * Returns an already cached message (if it exists) based on the
      * passed in attributes map.
@@ -591,7 +591,7 @@ declare class MUC extends ChatBox {
      * @method MUC#onMessage
      * @param {MessageAttributes} attrs - A promise which resolves to the message attributes.
      */
-    onMessage(attrs: any): Promise<void>;
+    onMessage(attrs: MessageAttributes): Promise<void>;
     /**
      * @param {Element} pres
      */
@@ -681,11 +681,11 @@ declare class MUC extends ChatBox {
     isUserMentioned(message: MUCMessage): any;
     incrementUnreadMsgsCounter(message: any): void;
 }
-import ChatBox from "../chat/model.js";
+import ChatBox from '../chat/model.js';
 declare class MUCSession extends Model {
     defaults(): {
         connection_status: number;
     };
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=muc.d.ts.map

+ 3 - 3
src/headless/types/plugins/muc/occupant.d.ts

@@ -29,7 +29,7 @@ declare class MUCOccupant extends ColorAwareModel {
     isModerator(): boolean;
     isSelf(): any;
 }
-import { ColorAwareModel } from "../../shared/color.js";
-import { ROLES } from "./constants.js";
-import { AFFILIATIONS } from "./constants.js";
+import { ColorAwareModel } from '../../shared/color.js';
+import { ROLES } from './constants.js';
+import { AFFILIATIONS } from './constants.js';
 //# sourceMappingURL=occupant.d.ts.map

+ 5 - 5
src/headless/types/plugins/muc/occupants.d.ts

@@ -1,8 +1,8 @@
 export default MUCOccupants;
 export type MemberListItem = any;
-export type Attributes = import('@converse/skeletor/src/types/collection').Attributes;
-export type CollectionOptions = import('@converse/skeletor/src/types/collection').CollectionOptions;
-export type Options = import('@converse/skeletor/src/types/collection').Options;
+export type Attributes = import("@converse/skeletor/src/types/collection").Attributes;
+export type CollectionOptions = import("@converse/skeletor/src/types/collection").CollectionOptions;
+export type Options = import("@converse/skeletor/src/types/collection").Options;
 /**
  * A list of {@link MUCOccupant} instances, representing participants in a MUC.
  * @class
@@ -54,6 +54,6 @@ declare class MUCOccupants extends Collection {
      */
     getOwnOccupant(): MUCOccupant;
 }
-import { Collection } from "@converse/skeletor";
-import MUCOccupant from "./occupant.js";
+import { Collection } from '@converse/skeletor';
+import MUCOccupant from './occupant.js';
 //# sourceMappingURL=occupants.d.ts.map

+ 4 - 4
src/headless/types/plugins/muc/parsers.d.ts

@@ -38,13 +38,13 @@ export function parseMUCPresence(stanza: Element, chatbox: MUC): {
     /**
      * - An array of XEP-0317 hats
      */
-    hats: {
+    hats: Array<{
         title: string;
         /**
-         * The object which {@link parseMUCPresence } returns
+         * The object which {@link parseMUCPresence} returns
          */
         uri: string;
-    }[];
+    }>;
     states: Array<string>;
     /**
      * - The sender JID (${muc_jid}/${nick})
@@ -74,6 +74,6 @@ export type MemberListItem = {
     jid?: string;
     nick?: string;
 };
-export type MUC = import('../muc/muc.js').default;
+export type MUC = import("../muc/muc.js").default;
 export type MUCMessageAttributes = any;
 //# sourceMappingURL=parsers.d.ts.map

+ 2 - 2
src/headless/types/plugins/muc/utils.d.ts

@@ -1,13 +1,13 @@
 /**
  * @param {import('@converse/skeletor').Model} model
  */
-export function isChatRoom(model: import('@converse/skeletor').Model): boolean;
+export function isChatRoom(model: import("@converse/skeletor").Model): boolean;
 export function shouldCreateGroupchatMessage(attrs: any): any;
 /**
  * @param {import('./muc.js').MUCOccupant} occupant1
  * @param {import('./muc.js').MUCOccupant} occupant2
  */
-export function occupantsComparator(occupant1: import('./muc.js').MUCOccupant, occupant2: import('./muc.js').MUCOccupant): 0 | 1 | -1;
+export function occupantsComparator(occupant1: import("./muc.js").MUCOccupant, occupant2: import("./muc.js").MUCOccupant): 0 | 1 | -1;
 export function registerDirectInvitationHandler(): void;
 export function disconnectChatRooms(): any;
 export function onWindowStateChanged(): Promise<void>;

+ 1 - 1
src/headless/types/plugins/ping/api.d.ts

@@ -10,7 +10,7 @@ declare namespace _default {
      *  Whether the pinged entity responded with a non-error IQ stanza.
      *  If we already know we're not connected, no ping is sent out and `null` is returned.
      */
-    function ping(jid?: string, timeout?: number): Promise<boolean>;
+    function ping(jid?: string, timeout?: number): Promise<boolean | null>;
 }
 export default _default;
 //# sourceMappingURL=api.d.ts.map

+ 4 - 4
src/headless/types/plugins/roster/contact.d.ts

@@ -28,7 +28,7 @@ declare class RosterContact extends ColorAwareModel {
      * @param {string} message - An optional message to explain the
      *      reason for the subscription request.
      */
-    subscribe(message: string): RosterContact;
+    subscribe(message: string): this;
     /**
      * Upon receiving the presence stanza of type "subscribed",
      * the user SHOULD acknowledge receipt of that subscription
@@ -51,13 +51,13 @@ declare class RosterContact extends ColorAwareModel {
      * @method RosterContacts#unauthorize
      * @param {string} message - Optional message to send to the person being unauthorized
      */
-    unauthorize(message: string): RosterContact;
+    unauthorize(message: string): this;
     /**
      * Authorize presence subscription
      * @method RosterContacts#authorize
      * @param {string} message - Optional message to send to the person being authorized
      */
-    authorize(message: string): RosterContact;
+    authorize(message: string): this;
     /**
      * Instruct the XMPP server to remove this contact from our roster
      * @method RosterContacts#removeFromRoster
@@ -65,5 +65,5 @@ declare class RosterContact extends ColorAwareModel {
      */
     removeFromRoster(): Promise<any>;
 }
-import { ColorAwareModel } from "../../shared/color.js";
+import { ColorAwareModel } from '../../shared/color.js';
 //# sourceMappingURL=contact.d.ts.map

+ 1 - 1
src/headless/types/plugins/roster/contacts.d.ts

@@ -80,6 +80,6 @@ declare class RosterContacts extends Collection {
     presenceHandler(presence: any): true | void;
 }
 import { Collection } from "@converse/skeletor";
-import RosterContact from "./contact.js";
+import RosterContact from './contact.js';
 import { Model } from "@converse/skeletor";
 //# sourceMappingURL=contacts.d.ts.map

+ 1 - 1
src/headless/types/plugins/roster/filter.d.ts

@@ -1,4 +1,4 @@
 export class RosterFilter extends Model {
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=filter.d.ts.map

+ 5 - 5
src/headless/types/plugins/roster/index.d.ts

@@ -1,7 +1,7 @@
-import RosterContact from "./contact.js";
-import RosterContacts from "./contacts.js";
-import Presence from "./presence.js";
-import Presences from "./presences.js";
-import { RosterFilter } from "./filter.js";
+import RosterContact from './contact.js';
+import RosterContacts from './contacts.js';
+import Presence from './presence.js';
+import Presences from './presences.js';
+import { RosterFilter } from './filter.js';
 export { RosterContact, RosterContacts, Presence, Presences, RosterFilter };
 //# sourceMappingURL=index.d.ts.map

+ 1 - 1
src/headless/types/plugins/roster/presence.d.ts

@@ -26,6 +26,6 @@ declare class Presence extends Model {
      */
     removeResource(name: string): void;
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 import Resources from "./resources.js";
 //# sourceMappingURL=presence.d.ts.map

+ 1 - 1
src/headless/types/plugins/roster/resource.d.ts

@@ -1,5 +1,5 @@
 export default Resource;
 declare class Resource extends Model {
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=resource.d.ts.map

+ 1 - 1
src/headless/types/plugins/roster/utils.d.ts

@@ -28,5 +28,5 @@ export function onRosterContactsFetched(): void;
  * @param { String } message - An optional message to the user
  */
 export function rejectPresenceSubscription(jid: string, message: string): void;
-export type RosterContacts = import('./contacts').default;
+export type RosterContacts = import("./contacts").default;
 //# sourceMappingURL=utils.d.ts.map

+ 1 - 1
src/headless/types/plugins/status/index.d.ts

@@ -1,3 +1,3 @@
 export { XMPPStatus };
-import XMPPStatus from "./status.js";
+import XMPPStatus from './status.js';
 //# sourceMappingURL=index.d.ts.map

+ 1 - 1
src/headless/types/plugins/status/status.d.ts

@@ -20,5 +20,5 @@ export default class XMPPStatus extends ColorAwareModel {
      */
     constructPresence(type?: string, to?: string, status_message?: string): Promise<any>;
 }
-import { ColorAwareModel } from "../../shared/color.js";
+import { ColorAwareModel } from '../../shared/color.js';
 //# sourceMappingURL=status.d.ts.map

+ 3 - 3
src/headless/types/plugins/vcard/api.d.ts

@@ -44,7 +44,7 @@ declare namespace _default {
          *     );
          * });
          */
-        function get(model: string | import("@converse/skeletor").Model, force?: boolean): Promise<any>;
+        function get(model: Model | string, force?: boolean): Promise<any>;
         /**
          * Fetches the VCard associated with a particular `Model` instance
          * (by using its `jid` or `muc_jid` attribute) and then updates the model with the
@@ -62,11 +62,11 @@ declare namespace _default {
          *     api.vcard.update(chatbox);
          * });
          */
-        function update(model: import("@converse/skeletor").Model, force?: boolean): Promise<any>;
+        function update(model: Model, force?: boolean): Promise<any>;
     }
 }
 export default _default;
-export type Model = import('@converse/skeletor').Model;
+export type Model = import("@converse/skeletor").Model;
 export type VCardData = {
     fn?: string;
     nickname?: string;

+ 1 - 1
src/headless/types/plugins/vcard/index.d.ts

@@ -1,4 +1,4 @@
-import VCard from "./vcard.js";
+import VCard from './vcard.js';
 import VCards from "./vcards";
 export { VCard, VCards };
 //# sourceMappingURL=index.d.ts.map

+ 5 - 5
src/headless/types/plugins/vcard/utils.d.ts

@@ -33,9 +33,9 @@ export function getVCard(jid: string): Promise<{
     error: any;
     vcard_error: string;
 }>;
-export type MUCMessage = import('../../plugins/muc/message').default;
-export type XMPPStatus = import('../../plugins/status/status').default;
-export type VCards = import('../../plugins/vcard/vcards').default;
-export type ModelWithContact = import('../chat/model-with-contact.js').default;
-export type MUCOccupant = import('../muc/occupant.js').default;
+export type MUCMessage = import("../../plugins/muc/message").default;
+export type XMPPStatus = import("../../plugins/status/status").default;
+export type VCards = import("../../plugins/vcard/vcards").default;
+export type ModelWithContact = import("../chat/model-with-contact.js").default;
+export type MUCOccupant = import("../muc/occupant.js").default;
 //# sourceMappingURL=utils.d.ts.map

+ 1 - 1
src/headless/types/plugins/vcard/vcard.d.ts

@@ -7,5 +7,5 @@ export default VCard;
 declare class VCard extends Model {
     getDisplayName(): any;
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=vcard.d.ts.map

+ 12 - 17
src/headless/types/shared/_converse.d.ts

@@ -1,26 +1,21 @@
 export default _converse;
-export type Storage = import('@converse/skeletor').Storage;
-export type Collection = import('@converse/skeletor').Collection;
-export type DiscoState = import('../plugins/disco/index').DiscoState;
-export type XMPPStatus = import('../plugins/status/status').default;
-export type VCards = import('../plugins/vcard/vcard').default;
+export type Storage = import("@converse/skeletor").Storage;
+export type Collection = import("@converse/skeletor").Collection;
+export type DiscoState = import("../plugins/disco/index").DiscoState;
+export type XMPPStatus = import("../plugins/status/status").default;
+export type VCards = import("../plugins/vcard/vcard").default;
 declare const _converse: ConversePrivateGlobal;
 declare const ConversePrivateGlobal_base: (new (...args: any[]) => {
-    on(name: string, callback: (event: any, model: Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any, context: any): any; /**
-     * A private, closured namespace containing the private api (via {@link _converse.api})
-     * as well as private methods and internal data-structures.
-     * @global
-     * @namespace _converse
-     */
+    on(name: string, callback: (event: any, model: import("@converse/skeletor/src/types/model.js").Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any, context: any): any;
     _events: any;
     _listeners: {};
-    listenTo(obj: any, name: string, callback?: (event: any, model: Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any): any;
+    listenTo(obj: any, name: string, callback?: (event: any, model: import("@converse/skeletor/src/types/model.js").Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any): any;
     _listeningTo: {};
     _listenId: any;
-    off(name: string, callback: (event: any, model: Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any, context?: any): any;
-    stopListening(obj?: any, name?: string, callback?: (event: any, model: Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any): any;
-    once(name: string, callback: (event: any, model: Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any, context: any): any;
-    listenToOnce(obj: any, name: string, callback?: (event: any, model: Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any): any;
+    off(name: string, callback: (event: any, model: import("@converse/skeletor/src/types/model.js").Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any, context?: any): any;
+    stopListening(obj?: any, name?: string, callback?: (event: any, model: import("@converse/skeletor/src/types/model.js").Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any): any;
+    once(name: string, callback: (event: any, model: import("@converse/skeletor/src/types/model.js").Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any, context: any): any;
+    listenToOnce(obj: any, name: string, callback?: (event: any, model: import("@converse/skeletor/src/types/model.js").Model, collection: import("@converse/skeletor").Collection, options?: Record<string, any>) => any): any;
     trigger(name: string, ...args: any[]): any;
 }) & ObjectConstructor;
 /**
@@ -101,5 +96,5 @@ declare class ConversePrivateGlobal extends ConversePrivateGlobal_base {
      */
     ___(str: string): string;
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=_converse.d.ts.map

+ 6 - 6
src/headless/types/shared/api/events.d.ts

@@ -29,11 +29,11 @@ declare namespace _default {
      * @param {...any} data - The data structure to be intercepted and modified by the hook listeners.
      * @returns {Promise<any>} - A promise that resolves with the modified data structure.
      */
-    function hook(name: string, context: any, data: any): Promise<any>;
+    function hook(name: string, context: any[], data: any[]): Promise<any>;
     namespace listen {
-        const once: any;
-        const on: any;
-        const not: any;
+        let once: any;
+        let on: any;
+        let not: any;
         /**
          * An options object which lets you set filter criteria for matching
          * against stanzas.
@@ -52,7 +52,7 @@ declare namespace _default {
          * @param {MatchingOptions|Function} options Matching options or callback
          * @param {function} handler The callback method to be called when the stanza appears
          */
-        function stanza(name: string, options: Function | {
+        function stanza(name: string, options: {
             /**
              * - The namespace to match against
              */
@@ -69,7 +69,7 @@ declare namespace _default {
              * - The stanza sender to match against
              */
             from?: string;
-        }, handler: Function): void;
+        } | Function, handler: Function): void;
     }
 }
 export default _default;

+ 2 - 2
src/headless/types/shared/api/index.d.ts

@@ -50,7 +50,7 @@ export type module = Record<string, Function>;
 /**
  * ### The private API
  *
- * The private API methods are only accessible via the closured {@link _converse }
+ * The private API methods are only accessible via the closured {@link _converse}
  * object, which is only available to plugins.
  *
  * These methods are kept private (i.e. not global) because they may return
@@ -61,7 +61,7 @@ export type APINamespace = Record<string, APIEndpoint | Function>;
 /**
  * ### The private API
  *
- * The private API methods are only accessible via the closured {@link _converse }
+ * The private API methods are only accessible via the closured {@link _converse}
  * object, which is only available to plugins.
  *
  * These methods are kept private (i.e. not global) because they may return

+ 4 - 4
src/headless/types/shared/api/presence.d.ts

@@ -9,11 +9,11 @@ declare namespace _default {
          * @param {Array<Element>|Array<Builder>|Element|Builder} [nodes]
          *  Nodes(s) to be added as child nodes of the `presence` XML element.
          */
-        function send(type?: string, to?: string, status?: string, nodes?: Element | import("strophe.js/src/types/builder.js").default | Element[] | import("strophe.js/src/types/builder.js").default[]): Promise<void>;
+        function send(type?: string, to?: string, status?: string, nodes?: Array<Element> | Array<Builder> | Element | Builder): Promise<void>;
     }
 }
 export default _default;
-export type Builder = import('strophe.js').Builder;
-export type XMPPStatus = import('../../plugins/status/status').default;
-export type MUC = import('../../plugins/muc/muc.js').default;
+export type Builder = import("strophe.js").Builder;
+export type XMPPStatus = import("../../plugins/status/status").default;
+export type MUC = import("../../plugins/muc/muc.js").default;
 //# sourceMappingURL=presence.d.ts.map

+ 2 - 2
src/headless/types/shared/api/send.d.ts

@@ -12,7 +12,7 @@ declare namespace _default {
      * });
      * _converse.api.send(msg);
      */
-    function send(stanza: any): void;
+    function send(stanza: Element | Strophe.Builder): void;
     /**
      * Send an IQ stanza
      * @method _converse.api.sendIQ
@@ -26,7 +26,7 @@ declare namespace _default {
      *  If the IQ stanza being sent is of type `result` or `error`, there's
      *  nothing to wait for, so an already resolved promise is returned.
      */
-    function sendIQ(stanza: any, timeout?: number, reject?: boolean): Promise<any>;
+    function sendIQ(stanza: Element | Strophe.Builder, timeout?: number, reject?: boolean): Promise<any>;
 }
 export default _default;
 export namespace Strophe {

+ 4 - 4
src/headless/types/shared/api/user.d.ts

@@ -1,6 +1,6 @@
 export default api;
 declare namespace api {
-    const user: {
+    let user: {
         /**
          * @method _converse.api.user.jid
          * @returns {string} The current user's full JID (Jabber ID)
@@ -32,12 +32,12 @@ declare namespace api {
          */
         logout(): Promise<any>;
         presence: {
-            send(type?: string, to?: string, status?: string, nodes?: Element | import("strophe.js/src/types/builder.js").default | Element[] | import("strophe.js/src/types/builder.js").default[]): Promise<void>;
+            send(type?: string, to?: string, status?: string, nodes?: Array<Element> | Array<Builder> | Element | Builder): Promise<void>;
         };
         settings: {
-            getModel(): Promise<import("@converse/skeletor").Model>;
+            getModel(): Promise<Model>;
             get(key: string, fallback?: any): Promise<any>;
-            set(key: any, val?: string): Promise<any>;
+            set(key: any | string, val?: string): Promise<any>;
             clear(): Promise<any>;
         };
     };

+ 3 - 3
src/headless/types/shared/chat/utils.d.ts

@@ -15,8 +15,8 @@ export function pruneHistory(model: ChatBox | MUC): void;
  */
 export function handleCorrection(model: ChatBox | MUC, attrs: object): Promise<Message | void>;
 export const debouncedPruneHistory: import("lodash").DebouncedFunc<typeof pruneHistory>;
-export type Message = import('../../plugins/chat/message.js').default;
-export type ChatBox = import('../../plugins/chat/model.js').default;
-export type MUC = import('../../plugins/muc/muc.js').default;
+export type Message = import("../../plugins/chat/message.js").default;
+export type ChatBox = import("../../plugins/chat/model.js").default;
+export type MUC = import("../../plugins/muc/muc.js").default;
 export type MediaURLData = any;
 //# sourceMappingURL=utils.d.ts.map

+ 1 - 1
src/headless/types/shared/color.d.ts

@@ -10,5 +10,5 @@ export class ColorAwareModel extends Model {
      */
     getAvatarStyle(append_style?: string): Promise<string>;
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=color.d.ts.map

+ 2 - 2
src/headless/types/shared/connection/api.d.ts

@@ -46,6 +46,6 @@ declare namespace _default {
     function isType(type: any): boolean;
 }
 export default _default;
-import { Connection } from "./index.js";
-import { MockConnection } from "./index.js";
+import { Connection } from './index.js';
+import { MockConnection } from './index.js';
 //# sourceMappingURL=api.d.ts.map

+ 1 - 1
src/headless/types/shared/connection/feedback.d.ts

@@ -5,5 +5,5 @@ declare class Feedback extends Model {
         message: string;
     };
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=feedback.d.ts.map

+ 7 - 3
src/headless/types/shared/connection/index.d.ts

@@ -1,4 +1,4 @@
-declare const Connection_base: typeof import("strophe.js/src/types/connection.js").default;
+declare const Connection_base: typeof import("strophe.js/src/types/connection").default;
 /**
  * The Connection class manages the connection to the XMPP server. It's
  * agnostic concerning the underlying protocol (i.e. websocket, long-polling
@@ -45,7 +45,6 @@ export class Connection extends Connection_base {
      * for the old transport are removed.
      */
     switchTransport(): Promise<void>;
-    _proto: any;
     reconnect(): Promise<any>;
     reconnecting: boolean;
     /**
@@ -65,7 +64,7 @@ export class Connection extends Connection_base {
      * @param {Boolean} [override] - An optional flag to replace any previous
      *  disconnection cause and reason.
      */
-    setDisconnectionCause(cause?: number | 'logout', reason?: string, override?: boolean): void;
+    setDisconnectionCause(cause?: number | "logout", reason?: string, override?: boolean): void;
     disconnection_cause: number | "logout";
     disconnection_reason: string;
     /**
@@ -103,6 +102,11 @@ export class Connection extends Connection_base {
  * @class
  */
 export class MockConnection extends Connection {
+    /**
+     * @param {string} service - The BOSH or WebSocket service URL.
+     * @param {import('strophe.js/src/types/connection').ConnectionOptions} options - The configuration options
+     */
+    constructor(service: string, options: import("strophe.js/src/types/connection").ConnectionOptions);
     sent_stanzas: any[];
     IQ_stanzas: any[];
     IQ_ids: any[];

+ 22 - 22
src/headless/types/shared/constants.d.ts

@@ -1,13 +1,13 @@
 export const BOSH_WAIT: 59;
 export const VERSION_NAME: "v11.0.0";
 export namespace STATUS_WEIGHTS {
-    const offline: number;
-    const unavailable: number;
-    const xa: number;
-    const away: number;
-    const dnd: number;
-    const chat: number;
-    const online: number;
+    let offline: number;
+    let unavailable: number;
+    let xa: number;
+    let away: number;
+    let dnd: number;
+    let chat: number;
+    let online: number;
 }
 export const ANONYMOUS: "anonymous";
 export const CLOSED: "closed";
@@ -30,24 +30,24 @@ export const CONTROLBOX_TYPE: "controlbox";
 export const CONNECTION_STATUS: typeof CONNECTION_STATUS;
 export const CORE_PLUGINS: string[];
 export namespace URL_PARSE_OPTIONS {
-    const start: RegExp;
+    let start: RegExp;
 }
 export const CHAT_STATES: string[];
 export namespace KEYCODES {
-    const TAB: number;
-    const ENTER: number;
-    const SHIFT: number;
-    const CTRL: number;
-    const ALT: number;
-    const ESCAPE: number;
-    const LEFT_ARROW: number;
-    const UP_ARROW: number;
-    const RIGHT_ARROW: number;
-    const DOWN_ARROW: number;
-    const FORWARD_SLASH: number;
-    const AT: number;
-    const META: number;
-    const META_RIGHT: number;
+    let TAB: number;
+    let ENTER: number;
+    let SHIFT: number;
+    let CTRL: number;
+    let ALT: number;
+    let ESCAPE: number;
+    let LEFT_ARROW: number;
+    let UP_ARROW: number;
+    let RIGHT_ARROW: number;
+    let DOWN_ARROW: number;
+    let FORWARD_SLASH: number;
+    let AT: number;
+    let META: number;
+    let META_RIGHT: number;
 }
 export const XFORM_TYPE_MAP: {
     'text-private': string;

+ 5 - 5
src/headless/types/shared/index.d.ts

@@ -1,7 +1,7 @@
-import _converse from "./_converse";
-import api from "./api/index.js";
-import * as constants from "./constants.js";
-import i18n from "./i18n";
-import * as parsers from "./parsers.js";
+import _converse from './_converse';
+import api from './api/index.js';
+import * as constants from './constants.js';
+import i18n from './i18n';
+import * as parsers from './parsers.js';
 export { _converse, api, constants, i18n, parsers };
 //# sourceMappingURL=index.d.ts.map

+ 7 - 7
src/headless/types/shared/parsers.d.ts

@@ -73,7 +73,7 @@ export function getErrorAttributes(stanza: Element): {
  * @param {Element} stanza - The message stanza
  * @returns {Reference}
  */
-export function getReferences(stanza: Element): any;
+export function getReferences(stanza: Element): Reference;
 /**
  * @param {Element} stanza
  */
@@ -157,11 +157,11 @@ export type XFormCaptchaURI = {
     type: string;
     data: string;
 };
-export type XFormListTypes = 'list-single' | 'list-multi';
-export type XFormJIDTypes = 'jid-single' | 'jid-multi';
-export type XFormTextTypes = 'text-multi' | 'text-private' | 'text-single';
-export type XFormDateTypes = 'date' | 'datetime';
-export type XFormFieldTypes = XFormListTypes | XFormJIDTypes | XFormTextTypes | XFormDateTypes | 'fixed' | 'boolean' | 'url' | 'hidden';
+export type XFormListTypes = "list-single" | "list-multi";
+export type XFormJIDTypes = "jid-single" | "jid-multi";
+export type XFormTextTypes = "text-multi" | "text-private" | "text-single";
+export type XFormDateTypes = "date" | "datetime";
+export type XFormFieldTypes = XFormListTypes | XFormJIDTypes | XFormTextTypes | XFormDateTypes | "fixed" | "boolean" | "url" | "hidden";
 export type XFormField = {
     var: string;
     label: string;
@@ -174,7 +174,7 @@ export type XFormField = {
     uri?: XFormCaptchaURI;
     readonly: boolean;
 };
-export type XFormResponseType = 'result' | 'form';
+export type XFormResponseType = "result" | "form";
 export type XForm = {
     type: XFormResponseType;
     title?: string;

+ 4 - 4
src/headless/types/shared/settings/api.d.ts

@@ -20,7 +20,7 @@ export namespace settings_api {
      *     'enable_foo': false
      * });
      */
-    function extend(settings: any): void;
+    function extend(settings: object): void;
     function update(settings: any): void;
     /**
      * @method _converse.api.settings.get
@@ -49,7 +49,7 @@ export namespace settings_api {
      *     "hide_offline_users": true
      * });
      */
-    function set(settings_or_key?: any, value?: string): void;
+    function set(settings_or_key?: any | string, value?: string): void;
     namespace listen {
         /**
          * Register an event listener for the passed in event.
@@ -61,7 +61,7 @@ export namespace settings_api {
          *  handler function.
          * @example api.settings.listen.on('change', callback);
          */
-        function on(name: "change", handler: Function, context?: any): void;
+        function on(name: ("change"), handler: Function, context?: any): void;
         /**
          * To stop listening to an event, you can use the `not` method.
          * @method _converse.api.settings.listen.not
@@ -72,5 +72,5 @@ export namespace settings_api {
         function not(name: string, handler: Function): void;
     }
 }
-export type Model = import('@converse/skeletor').Model;
+export type Model = import("@converse/skeletor").Model;
 //# sourceMappingURL=api.d.ts.map

+ 36 - 36
src/headless/types/shared/settings/constants.d.ts

@@ -1,36 +1,36 @@
 export namespace DEFAULT_SETTINGS {
-    const allow_non_roster_messaging: boolean;
-    const allow_url_history_change: boolean;
-    const assets_path: string;
-    const authentication: string;
-    const auto_login: boolean;
-    const auto_reconnect: boolean;
-    const blacklisted_plugins: any[];
-    const clear_cache_on_logout: boolean;
-    const connection_options: {};
-    const credentials_url: any;
-    const disable_effects: boolean;
-    const discover_connection_methods: boolean;
-    const geouri_regex: RegExp;
-    const geouri_replacement: string;
-    const i18n: any;
-    const jid: any;
-    const reuse_scram_keys: boolean;
-    const keepalive: boolean;
-    const loglevel: string;
-    const locales: string[];
-    const nickname: any;
-    const password: any;
-    const persistent_store: string;
-    const rid: any;
-    const root: Document;
-    const sid: any;
-    const singleton: boolean;
-    const strict_plugin_dependencies: boolean;
-    const stanza_timeout: number;
-    const view_mode: string;
-    const websocket_url: any;
-    const whitelisted_plugins: any[];
+    let allow_non_roster_messaging: boolean;
+    let allow_url_history_change: boolean;
+    let assets_path: string;
+    let authentication: string;
+    let auto_login: boolean;
+    let auto_reconnect: boolean;
+    let blacklisted_plugins: any[];
+    let clear_cache_on_logout: boolean;
+    let connection_options: {};
+    let credentials_url: any;
+    let disable_effects: boolean;
+    let discover_connection_methods: boolean;
+    let geouri_regex: RegExp;
+    let geouri_replacement: string;
+    let i18n: any;
+    let jid: any;
+    let reuse_scram_keys: boolean;
+    let keepalive: boolean;
+    let loglevel: string;
+    let locales: string[];
+    let nickname: any;
+    let password: any;
+    let persistent_store: string;
+    let rid: any;
+    let root: Document;
+    let sid: any;
+    let singleton: boolean;
+    let strict_plugin_dependencies: boolean;
+    let stanza_timeout: number;
+    let view_mode: string;
+    let websocket_url: any;
+    let whitelisted_plugins: any[];
 }
 /**
  * Converse's core configuration values
@@ -39,7 +39,7 @@ export type ConfigurationSettings = {
     allow_non_roster_messaging?: boolean;
     allow_url_history_change?: boolean;
     assets_path?: string;
-    authentication?: ('login' | 'prebind' | 'anonymous' | 'external');
+    authentication?: ("login" | "prebind" | "anonymous" | "external");
     /**
      * - Currently only used in connection with anonymous login
      */
@@ -62,17 +62,17 @@ export type ConfigurationSettings = {
     i18n?: string;
     jid?: string;
     keepalive?: boolean;
-    loglevel?: ('debug' | 'info' | 'eror');
+    loglevel?: ("debug" | "info" | "eror");
     locales?: Array<string>;
     nickname?: string;
     password?: string;
-    persistent_store?: ('IndexedDB' | 'localStorage');
+    persistent_store?: ("IndexedDB" | "localStorage");
     rid?: string;
     root?: Element;
     sid?: string;
     singleton?: boolean;
     strict_plugin_dependencies?: boolean;
-    view_mode?: ('overlayed' | 'fullscreen' | 'embedded');
+    view_mode?: ("overlayed" | "fullscreen" | "embedded");
     websocket_url?: string;
     whitelisted_plugins?: Array<string>;
 };

+ 3 - 3
src/headless/types/shared/settings/user/api.d.ts

@@ -6,7 +6,7 @@ export namespace user_settings_api {
      * @returns {Promise<Model>}
      * @example const settings = await api.user.settings.getModel();
      */
-    function getModel(): Promise<import("@converse/skeletor").Model>;
+    function getModel(): Promise<Model>;
     /**
      * Get the value of a particular user setting.
      * @method _converse.api.user.settings.get
@@ -29,7 +29,7 @@ export namespace user_settings_api {
      *     "baz": "buz"
      * });
      */
-    function set(key: any, val?: string): Promise<any>;
+    function set(key: any | string, val?: string): Promise<any>;
     /**
      * Clears all the user settings
      * @async
@@ -37,5 +37,5 @@ export namespace user_settings_api {
      */
     function clear(): Promise<any>;
 }
-export type Model = import('@converse/skeletor').Model;
+export type Model = import("@converse/skeletor").Model;
 //# sourceMappingURL=api.d.ts.map

+ 1 - 1
src/headless/types/utils/html.d.ts

@@ -34,5 +34,5 @@ export function siblingIndex(el: Element): number;
  * @return {string}
  */
 export function decodeHTMLEntities(str: string): string;
-import { Strophe } from "strophe.js";
+import { Strophe } from 'strophe.js';
 //# sourceMappingURL=html.d.ts.map

+ 16 - 25
src/headless/types/utils/index.d.ts

@@ -8,7 +8,7 @@ export function isEmptyMessage(attrs: any): boolean;
  * inserted before the mentioned nicknames.
  */
 export function prefixMentions(message: any): any;
-export function isErrorObject(o: any): boolean;
+export function isErrorObject(o: any): o is Error;
 export function safeSave(model: any, attributes: any, options: any): void;
 export function getRandomInt(max: any): number;
 /**
@@ -31,7 +31,7 @@ declare const _default: {
     triggerEvent: typeof triggerEvent;
     waitUntil: typeof waitUntil;
     isValidURL(text: string): boolean;
-    getURI(url: any): any;
+    getURI(url: string | getOpenPromise): any;
     checkFileTypes(types: string[], url: string): boolean;
     filterQueryParamsFromURL(url: any): any;
     isURLWithImageExtension(url: any): boolean;
@@ -41,28 +41,23 @@ declare const _default: {
     isImageURL(url: any): any;
     isEncryptedFileURL(url: any): any;
     getMediaURLsMetadata(text: string, offset?: number): {
-        media_urls?: url.MediaURLMetadata[];
+        media_urls?: MediaURLMetadata[];
     };
-    getMediaURLs(arr: url.MediaURLMetadata[], text: string, offset?: number): url.MediaURLMetadata[];
+    getMediaURLs(arr: Array<MediaURLMetadata>, text: string, offset?: number): MediaURLData[];
     getDefaultStore(): "session" | "persistent";
     createStore(id: any, store: any): any;
     initStorage(model: any, id: any, type: any): void;
     isErrorStanza(stanza: Element): boolean;
     isForbiddenError(stanza: Element): boolean;
     isServiceUnavailableError(stanza: Element): boolean;
-    getAttributes(stanza: Element): any;
+    getAttributes(stanza: Element): object;
     isUniView(): boolean;
     isTestEnv(): boolean;
     getUnloadEvent(): "pagehide" | "beforeunload" | "unload";
-    replacePromise(_converse: any, name: string): void;
-    shouldClearCache(_converse: any): boolean;
-    tearDown(_converse: any): Promise<any>;
-    clearSession(_converse: any): any;
-    /**
-     * @copyright The Converse.js contributors
-     * @license Mozilla Public License (MPLv2)
-     * @description This is the core utilities module.
-     */
+    replacePromise(_converse: ConversePrivateGlobal, name: string): void;
+    shouldClearCache(_converse: ConversePrivateGlobal): boolean;
+    tearDown(_converse: ConversePrivateGlobal): Promise<any>;
+    clearSession(_converse: ConversePrivateGlobal): any;
     merge(dst: any, src: any): void;
     isError(obj: any): boolean;
     isFunction(val: any): boolean;
@@ -72,23 +67,18 @@ declare const _default: {
     isSameDomain(jid1: any, jid2: any): boolean;
     getJIDFromURI(jid: string): string;
     isElement(el: unknown): boolean;
-    isTagEqual(stanza: Element | typeof import("strophe.js/src/types/builder.js").default, name: string): boolean;
+    isTagEqual(stanza: Element | typeof import("strophe.js").Builder, name: string): boolean;
     stringToElement(s: string): Element;
     queryChildren(el: HTMLElement, selector: string): ChildNode[];
     siblingIndex(el: Element): number;
     decodeHTMLEntities(str: string): string;
     getSelectValues(select: HTMLSelectElement): string[];
-    webForm2xForm(field: HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement): Element;
+    webForm2xForm(field: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement): Element;
     getCurrentWord(input: HTMLInputElement, index?: number, delineator?: string | RegExp): string;
     isMentionBoundary(s: string): boolean;
     replaceCurrentWord(input: HTMLInputElement, new_value: string): void;
     placeCaretAtEnd(textarea: HTMLTextAreaElement): void;
     colorize(s: string): Promise<string>;
-    /**
-     * @copyright The Converse.js contributors
-     * @license Mozilla Public License (MPLv2)
-     * @description This is the core utilities module.
-     */
     appendArrayBuffer(buffer1: any, buffer2: any): ArrayBufferLike;
     arrayBufferToHex(ab: any): any;
     arrayBufferToString(ab: any): string;
@@ -102,7 +92,7 @@ export type CommonUtils = Record<string, Function>;
 /**
  * The utils object
  */
-export type PluginUtils = Record<'muc' | 'mam', CommonUtils>;
+export type PluginUtils = Record<"muc" | "mam", CommonUtils>;
 declare function getLongestSubstring(string: any, candidates: any): any;
 /**
  * Call the callback once all the events have been triggered
@@ -113,7 +103,7 @@ declare function getLongestSubstring(string: any, candidates: any): any;
  */
 declare function onMultipleEvents(events: any[], callback: Function): void;
 declare function shouldCreateMessage(attrs: any): any;
-import { toStanza } from "strophe.js";
+import { toStanza } from 'strophe.js';
 /**
  * @param {Element} el
  * @param {string} name
@@ -122,6 +112,7 @@ import { toStanza } from "strophe.js";
  * @param {boolean} [cancelable]
  */
 declare function triggerEvent(el: Element, name: string, type?: string, bubbles?: boolean, cancelable?: boolean): void;
-import { waitUntil } from "./promise.js";
-import * as url from "./url.js";
+import { waitUntil } from './promise.js';
+import * as url from './url.js';
+import * as session from './session.js';
 //# sourceMappingURL=index.d.ts.map

+ 6 - 6
src/headless/types/utils/init.d.ts

@@ -4,15 +4,15 @@
  * @fires _converse#pluginsInitialized - Triggered once all plugins have been initialized.
  * @memberOf _converse
  */
-export function initPlugins(_converse: any): void;
+export function initPlugins(_converse: ConversePrivateGlobal): void;
 /**
  * @param {ConversePrivateGlobal} _converse
  */
-export function initClientConfig(_converse: any): Promise<void>;
+export function initClientConfig(_converse: ConversePrivateGlobal): Promise<void>;
 /**
  * @param {ConversePrivateGlobal} _converse
  */
-export function initSessionStorage(_converse: any): Promise<void>;
+export function initSessionStorage(_converse: ConversePrivateGlobal): Promise<void>;
 /**
  * Stores the passed in JID for the current user, potentially creating a
  * resource if the JID is bare.
@@ -30,17 +30,17 @@ export function setUserJID(jid: string): Promise<string>;
  * @param {ConversePrivateGlobal} _converse
  * @param {string} jid
  */
-export function initSession(_converse: any, jid: string): Promise<void>;
+export function initSession(_converse: ConversePrivateGlobal, jid: string): Promise<void>;
 /**
  * @param {ConversePrivateGlobal} _converse
  */
-export function registerGlobalEventHandlers(_converse: any): void;
+export function registerGlobalEventHandlers(_converse: ConversePrivateGlobal): void;
 /**
  * Make sure everything is reset in case this is a subsequent call to
  * converse.initialize (happens during tests).
  * @param {ConversePrivateGlobal} _converse
  */
-export function cleanup(_converse: any): Promise<void>;
+export function cleanup(_converse: ConversePrivateGlobal): Promise<void>;
 export function attemptNonPreboundSession(credentials: any, automatic: any): Promise<void>;
 /**
  * Fetch the stored SCRAM keys for the given JID, if available.

+ 4 - 4
src/headless/types/utils/session.d.ts

@@ -11,19 +11,19 @@ export function getUnloadEvent(): "pagehide" | "beforeunload" | "unload";
  * @param {ConversePrivateGlobal} _converse
  * @param {string} name
  */
-export function replacePromise(_converse: any, name: string): void;
+export function replacePromise(_converse: ConversePrivateGlobal, name: string): void;
 /**
  * @param {ConversePrivateGlobal} _converse
  * @returns {boolean}
  */
-export function shouldClearCache(_converse: any): boolean;
+export function shouldClearCache(_converse: ConversePrivateGlobal): boolean;
 /**
  * @param {ConversePrivateGlobal} _converse
  */
-export function tearDown(_converse: any): Promise<any>;
+export function tearDown(_converse: ConversePrivateGlobal): Promise<any>;
 /**
  * @param {ConversePrivateGlobal} _converse
  */
-export function clearSession(_converse: any): any;
+export function clearSession(_converse: ConversePrivateGlobal): any;
 export type ConversePrivateGlobal = any;
 //# sourceMappingURL=session.d.ts.map

+ 6 - 6
src/types/entry.d.ts

@@ -10,13 +10,13 @@ declare namespace converse {
          * @param {object} plugin The plugin object to be added.
          * @throws {TypeError} If a plugin with the same name has already been registered.
          */
-        function add(name: string, plugin: any): void;
+        function add(name: string, plugin: object): void;
     }
     /**
      * Initializes Converse with the provided settings.
      * @param {object} settings
      */
-    function initialize(settings?: any): any;
+    function initialize(settings?: object): any;
     /**
      * Public API method which explicitly loads Converse and allows you the
      * possibility to pass in configuration settings which need to be defined
@@ -36,7 +36,7 @@ declare namespace converse {
      * @param {object} settings A map of configuration-settings that are needed at load time.
      * @example converse.load({assets_path: '/path/to/assets/'});
      */
-    function load(settings?: any): {
+    function load(settings?: object): {
         plugins: {
             /**
              * Adds a Converse plugin
@@ -44,14 +44,14 @@ declare namespace converse {
              * @param {object} plugin The plugin object to be added.
              * @throws {TypeError} If a plugin with the same name has already been registered.
              */
-            add(name: string, plugin: any): void;
+            add(name: string, plugin: object): void;
         };
         /**
          * Initializes Converse with the provided settings.
          * @param {object} settings
          */
-        initialize(settings?: any): any;
-        load(settings?: any): any;
+        initialize(settings?: object): any;
+        load(settings?: object): any;
     };
 }
 //# sourceMappingURL=entry.d.ts.map

+ 1 - 1
src/types/i18n/index.d.ts

@@ -12,5 +12,5 @@ export const i18n: typeof i18nStub & {
     initialize(): Promise<void>;
     __(str: any, ...args: any[]): any;
 };
-import { i18n as i18nStub } from "@converse/headless";
+import { i18n as i18nStub } from '@converse/headless';
 //# sourceMappingURL=index.d.ts.map

+ 6 - 6
src/types/plugins/adhoc-views/adhoc-commands.d.ts

@@ -63,16 +63,16 @@ export default class AdHocCommands extends CustomElement {
      */
     cancel(ev: MouseEvent): Promise<void>;
 }
-export type AdHocCommand = import('@converse/headless/types/plugins/adhoc/utils').AdHocCommand;
-export type AdHocCommandResult = import('@converse/headless/types/plugins/adhoc/utils').AdHocCommandResult;
-export type AdHocCommandAction = import('@converse/headless/types/plugins/adhoc/api').AdHocCommandAction;
+export type AdHocCommand = import("@converse/headless/types/plugins/adhoc/utils").AdHocCommand;
+export type AdHocCommandResult = import("@converse/headless/types/plugins/adhoc/utils").AdHocCommandResult;
+export type AdHocCommandAction = import("@converse/headless/types/plugins/adhoc/api").AdHocCommandAction;
 export type UIProps = {
     instructions: string;
     jid: string;
     alert?: string;
-    alert_type?: 'danger' | 'primary';
-    name: 'cancel' | 'complete' | 'execute' | 'next' | 'prev';
+    alert_type?: "danger" | "primary";
+    name: "cancel" | "complete" | "execute" | "next" | "prev";
 };
 export type AdHocCommandUIProps = AdHocCommand & AdHocCommandResult & UIProps;
-import { CustomElement } from "shared/components/element.js";
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=adhoc-commands.d.ts.map

+ 3 - 3
src/types/plugins/adhoc-views/templates/ad-hoc-command-form.d.ts

@@ -1,6 +1,6 @@
 declare function _default(el: AdHocCommands, command: AdHocCommandUIProps): import("lit").TemplateResult<1>;
 export default _default;
-export type TemplateResult = import('lit').TemplateResult;
-export type AdHocCommands = import('../adhoc-commands').default;
-export type AdHocCommandUIProps = import('../adhoc-commands').AdHocCommandUIProps;
+export type TemplateResult = import("lit").TemplateResult;
+export type AdHocCommands = import("../adhoc-commands").default;
+export type AdHocCommandUIProps = import("../adhoc-commands").AdHocCommandUIProps;
 //# sourceMappingURL=ad-hoc-command-form.d.ts.map

+ 3 - 3
src/types/plugins/adhoc-views/templates/ad-hoc-command.d.ts

@@ -1,6 +1,6 @@
 declare function _default(el: AdHocCommands, command: AdHocCommandUIProps): import("lit").TemplateResult<1>;
 export default _default;
-export type AdHocCommand = import('@converse/headless/types/plugins/adhoc/utils').AdHocCommand;
-export type AdHocCommands = import('../adhoc-commands').default;
-export type AdHocCommandUIProps = import('../adhoc-commands').AdHocCommandUIProps;
+export type AdHocCommand = import("@converse/headless/types/plugins/adhoc/utils").AdHocCommand;
+export type AdHocCommands = import("../adhoc-commands").default;
+export type AdHocCommandUIProps = import("../adhoc-commands").AdHocCommandUIProps;
 //# sourceMappingURL=ad-hoc-command.d.ts.map

+ 1 - 1
src/types/plugins/adhoc-views/templates/ad-hoc.d.ts

@@ -1,4 +1,4 @@
 declare function _default(el: AdHocCommands): import("lit").TemplateResult<1>;
 export default _default;
-export type AdHocCommands = import('../adhoc-commands').default;
+export type AdHocCommands = import("../adhoc-commands").default;
 //# sourceMappingURL=ad-hoc.d.ts.map

+ 1 - 1
src/types/plugins/bookmark-views/components/bookmark-form.d.ts

@@ -27,5 +27,5 @@ declare class MUCBookmarkForm extends CustomElement {
      */
     closeBookmarkForm(ev: Event): void;
 }
-import { CustomElement } from "shared/components/element";
+import { CustomElement } from 'shared/components/element';
 //# sourceMappingURL=bookmark-form.d.ts.map

+ 2 - 2
src/types/plugins/bookmark-views/components/bookmarks-list.d.ts

@@ -8,6 +8,6 @@ export default class BookmarksView extends CustomElement {
      */
     clearFilter(ev: Event): void;
 }
-import { CustomElement } from "shared/components/element.js";
-import { Model } from "@converse/skeletor";
+import { CustomElement } from 'shared/components/element.js';
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=bookmarks-list.d.ts.map

+ 4 - 4
src/types/plugins/chatview/bottom-panel.d.ts

@@ -11,8 +11,8 @@ export default class ChatBottomPanel extends CustomElement {
     clearMessages(ev: any): void;
     autocompleteInPicker(input: any, value: any): Promise<void>;
 }
-export type EmojiPicker = import('shared/chat/emoji-picker.js').default;
-export type EmojiDropdown = import('shared/chat/emoji-dropdown.js').default;
-export type MessageForm = import('./message-form.js').default;
-import { CustomElement } from "shared/components/element.js";
+export type EmojiPicker = import("shared/chat/emoji-picker.js").default;
+export type EmojiDropdown = import("shared/chat/emoji-dropdown.js").default;
+export type MessageForm = import("./message-form.js").default;
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=bottom-panel.d.ts.map

+ 1 - 1
src/types/plugins/chatview/chat.d.ts

@@ -11,5 +11,5 @@ export default class ChatView extends BaseChatView {
     getHelpMessages(): string[];
     afterShown(): void;
 }
-import BaseChatView from "shared/chat/baseview.js";
+import BaseChatView from 'shared/chat/baseview.js';
 //# sourceMappingURL=chat.d.ts.map

+ 1 - 1
src/types/plugins/chatview/heading.d.ts

@@ -50,5 +50,5 @@ export type HeadingButtonAttributes = {
      */
     name: string;
 };
-import { CustomElement } from "shared/components/element.js";
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=heading.d.ts.map

+ 2 - 2
src/types/plugins/chatview/message-form.d.ts

@@ -22,6 +22,6 @@ export default class MessageForm extends CustomElement {
     onKeyDown(ev: any): any;
     onFormSubmitted(ev: any): Promise<void>;
 }
-export type EmojiDropdown = import('shared/chat/emoji-dropdown.js').default;
-import { CustomElement } from "shared/components/element.js";
+export type EmojiDropdown = import("shared/chat/emoji-dropdown.js").default;
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=message-form.d.ts.map

+ 1 - 1
src/types/plugins/chatview/templates/message-form.d.ts

@@ -1,3 +1,3 @@
-declare function _default(el: import('../message-form').default): import("lit").TemplateResult<1>;
+declare function _default(el: import("../message-form").default): import("lit").TemplateResult<1>;
 export default _default;
 //# sourceMappingURL=message-form.d.ts.map

+ 1 - 1
src/types/plugins/controlbox/buttons.d.ts

@@ -12,5 +12,5 @@ declare class ControlboxButtons extends CustomElement {
      */
     closeControlBox(ev: MouseEvent): void;
 }
-import { CustomElement } from "shared/components/element.js";
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=buttons.d.ts.map

+ 3 - 3
src/types/plugins/controlbox/controlbox.d.ts

@@ -11,8 +11,8 @@ declare class ControlBoxView extends CustomElement {
     setModel(): void;
     model: any;
     render(): import("lit").TemplateResult<1> | "";
-    close(ev: any): ControlBoxView;
-    afterShown(): ControlBoxView;
+    close(ev: any): this;
+    afterShown(): this;
 }
-import { CustomElement } from "shared/components/element.js";
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=controlbox.d.ts.map

+ 1 - 1
src/types/plugins/controlbox/model.d.ts

@@ -24,5 +24,5 @@ declare class ControlBox extends Model {
     maybeShow(force?: boolean): any;
     onReconnection(): void;
 }
-import { Model } from "@converse/skeletor";
+import { Model } from '@converse/skeletor';
 //# sourceMappingURL=model.d.ts.map

+ 1 - 1
src/types/plugins/controlbox/navback.d.ts

@@ -8,5 +8,5 @@ declare class ControlBoxNavback extends CustomElement {
     jid: any;
     render(): import("lit").TemplateResult<1>;
 }
-import { CustomElement } from "shared/components/element.js";
+import { CustomElement } from 'shared/components/element.js';
 //# sourceMappingURL=navback.d.ts.map

+ 1 - 1
src/types/plugins/controlbox/templates/buttons.d.ts

@@ -1,3 +1,3 @@
-declare function _default(el: import('../buttons').default): import("lit").TemplateResult<1>;
+declare function _default(el: import("../buttons").default): import("lit").TemplateResult<1>;
 export default _default;
 //# sourceMappingURL=buttons.d.ts.map

+ 1 - 1
src/types/plugins/controlbox/templates/controlbox.d.ts

@@ -1,3 +1,3 @@
-declare function _default(el: import('../controlbox').default): import("lit").TemplateResult<1>;
+declare function _default(el: import("../controlbox").default): import("lit").TemplateResult<1>;
 export default _default;
 //# sourceMappingURL=controlbox.d.ts.map

Неке датотеке нису приказане због велике количине промена