diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
commit | 953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch) | |
tree | 8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/matrix/node_modules/matrix-js-sdk/lib/models/beacon.d.ts | |
parent | 62a9199846b0c07c03218703b33e8385764f42d9 (diff) | |
download | pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2 pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip |
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/models/beacon.d.ts')
-rw-r--r-- | includes/external/matrix/node_modules/matrix-js-sdk/lib/models/beacon.d.ts | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/beacon.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/beacon.d.ts deleted file mode 100644 index 3a6918c..0000000 --- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/beacon.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { BeaconInfoState, BeaconLocationState } from "../content-helpers"; -import { MatrixEvent } from "./event"; -import { TypedEventEmitter } from "./typed-event-emitter"; -export declare enum BeaconEvent { - New = "Beacon.new", - Update = "Beacon.update", - LivenessChange = "Beacon.LivenessChange", - Destroy = "Beacon.Destroy", - LocationUpdate = "Beacon.LocationUpdate" -} -export type BeaconEventHandlerMap = { - [BeaconEvent.Update]: (event: MatrixEvent, beacon: Beacon) => void; - [BeaconEvent.LivenessChange]: (isLive: boolean, beacon: Beacon) => void; - [BeaconEvent.Destroy]: (beaconIdentifier: string) => void; - [BeaconEvent.LocationUpdate]: (locationState: BeaconLocationState) => void; - [BeaconEvent.Destroy]: (beaconIdentifier: string) => void; -}; -export declare const isTimestampInDuration: (startTimestamp: number, durationMs: number, timestamp: number) => boolean; -export type BeaconIdentifier = string; -export declare const getBeaconInfoIdentifier: (event: MatrixEvent) => BeaconIdentifier; -export declare class Beacon extends TypedEventEmitter<Exclude<BeaconEvent, BeaconEvent.New>, BeaconEventHandlerMap> { - private rootEvent; - readonly roomId: string; - private _beaconInfo; - private _isLive?; - private livenessWatchTimeout?; - private _latestLocationEvent?; - constructor(rootEvent: MatrixEvent); - get isLive(): boolean; - get identifier(): BeaconIdentifier; - get beaconInfoId(): string; - get beaconInfoOwner(): string; - get beaconInfoEventType(): string; - get beaconInfo(): BeaconInfoState; - get latestLocationState(): BeaconLocationState | undefined; - get latestLocationEvent(): MatrixEvent | undefined; - update(beaconInfoEvent: MatrixEvent): void; - destroy(): void; - /** - * Monitor liveness of a beacon - * Emits BeaconEvent.LivenessChange when beacon expires - */ - monitorLiveness(): void; - /** - * Process Beacon locations - * Emits BeaconEvent.LocationUpdate - */ - addLocations(beaconLocationEvents: MatrixEvent[]): void; - private clearLatestLocation; - private setBeaconInfo; - private checkLiveness; -} -//# sourceMappingURL=beacon.d.ts.map
\ No newline at end of file |