summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts31
1 files changed, 0 insertions, 31 deletions
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts
deleted file mode 100644
index c0fbcdb..0000000
--- a/includes/external/matrix/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { Capability } from "..";
-export declare enum EventKind {
- Event = "event",
- State = "state_event",
- ToDevice = "to_device"
-}
-export declare enum EventDirection {
- Send = "send",
- Receive = "receive"
-}
-export declare class WidgetEventCapability {
- readonly direction: EventDirection;
- readonly eventType: string;
- readonly kind: EventKind;
- readonly keyStr: string | null;
- readonly raw: string;
- private constructor();
- matchesAsStateEvent(direction: EventDirection, eventType: string, stateKey: string | null): boolean;
- matchesAsToDeviceEvent(direction: EventDirection, eventType: string): boolean;
- matchesAsRoomEvent(direction: EventDirection, eventType: string, msgtype?: string | null): boolean;
- static forStateEvent(direction: EventDirection, eventType: string, stateKey?: string): WidgetEventCapability;
- static forToDeviceEvent(direction: EventDirection, eventType: string): WidgetEventCapability;
- static forRoomEvent(direction: EventDirection, eventType: string): WidgetEventCapability;
- static forRoomMessageEvent(direction: EventDirection, msgtype?: string): WidgetEventCapability;
- /**
- * Parses a capabilities request to find all the event capability requests.
- * @param {Iterable<Capability>} capabilities The capabilities requested/to parse.
- * @returns {WidgetEventCapability[]} An array of event capability requests. May be empty, but never null.
- */
- static findEventCapabilities(capabilities: Iterable<Capability>): WidgetEventCapability[];
-}