@camera.ui/browser 0.0.110 → 0.0.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +10 -1
  3. package/dist/index.d.ts +1269 -0
  4. package/dist/index.js +4179 -0
  5. package/package.json +55 -36
  6. package/CHANGELOG.md +0 -8
  7. package/dist/bundle.js +0 -2
  8. package/dist/bundle.js.LICENSE.txt +0 -23
  9. package/dist/types/packages/client/browser/src/api.d.ts +0 -8
  10. package/dist/types/packages/client/browser/src/client.d.ts +0 -23
  11. package/dist/types/packages/client/browser/src/index.d.ts +0 -2
  12. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +0 -30
  13. package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +0 -16
  14. package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +0 -18
  15. package/dist/types/packages/client/browser/src/proxy/index.d.ts +0 -3
  16. package/dist/types/packages/client/browser/src/socket.d.ts +0 -15
  17. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +0 -71
  18. package/dist/types/packages/client/browser/src/types.d.ts +0 -58
  19. package/dist/types/packages/client/browser/src/utils.d.ts +0 -12
  20. package/dist/types/packages/common/src/nats/messageQueue.d.ts +0 -48
  21. package/dist/types/packages/common/src/nats/nats.d.ts +0 -30
  22. package/dist/types/packages/common/src/nats/packer.d.ts +0 -2
  23. package/dist/types/packages/common/src/utils/subscribed.d.ts +0 -18
  24. package/dist/types/packages/plugineer/src/polyglot/node/camera/index.d.ts +0 -91
  25. package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/camera.d.ts +0 -8
  26. package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/ptz.d.ts +0 -11
  27. package/dist/types/packages/plugineer/src/polyglot/node/camera/iou.d.ts +0 -2
  28. package/dist/types/packages/plugineer/src/polyglot/node/camera/polygon.d.ts +0 -4
  29. package/dist/types/packages/plugineer/src/polyglot/node/camera/types.d.ts +0 -18
  30. package/dist/types/packages/plugineer/src/polyglot/node/plugins/schema.d.ts +0 -62
  31. package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +0 -135
  32. package/dist/types/packages/plugineer/src/types.d.ts +0 -4
  33. package/dist/types/packages/types/src/index.d.ts +0 -730
  34. package/dist/types/server/src/api/controllers/api.controller.d.ts +0 -7
  35. package/dist/types/server/src/api/controllers/auth.controller.d.ts +0 -16
  36. package/dist/types/server/src/api/controllers/backup.controller.d.ts +0 -10
  37. package/dist/types/server/src/api/controllers/cameras.controller.d.ts +0 -38
  38. package/dist/types/server/src/api/controllers/config.controller.d.ts +0 -14
  39. package/dist/types/server/src/api/controllers/files.controller.d.ts +0 -8
  40. package/dist/types/server/src/api/controllers/frameWorkers.controller.d.ts +0 -11
  41. package/dist/types/server/src/api/controllers/plugins.controller.d.ts +0 -48
  42. package/dist/types/server/src/api/controllers/system.controller.d.ts +0 -23
  43. package/dist/types/server/src/api/controllers/users.controller.d.ts +0 -28
  44. package/dist/types/server/src/api/database/checks.d.ts +0 -55
  45. package/dist/types/server/src/api/database/constants.d.ts +0 -8
  46. package/dist/types/server/src/api/database/index.d.ts +0 -30
  47. package/dist/types/server/src/api/database/migration.d.ts +0 -15
  48. package/dist/types/server/src/api/database/selfcheck.d.ts +0 -48
  49. package/dist/types/server/src/api/database/types.d.ts +0 -88
  50. package/dist/types/server/src/api/go2rtc/api/application.d.ts +0 -9
  51. package/dist/types/server/src/api/go2rtc/api/config.d.ts +0 -8
  52. package/dist/types/server/src/api/go2rtc/api/index.d.ts +0 -1
  53. package/dist/types/server/src/api/go2rtc/api/snapshot.d.ts +0 -8
  54. package/dist/types/server/src/api/go2rtc/api/streams.d.ts +0 -12
  55. package/dist/types/server/src/api/go2rtc/index.d.ts +0 -14
  56. package/dist/types/server/src/api/go2rtc/queue.d.ts +0 -10
  57. package/dist/types/server/src/api/go2rtc/types.d.ts +0 -92
  58. package/dist/types/server/src/api/index.d.ts +0 -22
  59. package/dist/types/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
  60. package/dist/types/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
  61. package/dist/types/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
  62. package/dist/types/server/src/api/middlewares/socketAuth.middleware.d.ts +0 -41
  63. package/dist/types/server/src/api/plugins/header.plugin.d.ts +0 -2
  64. package/dist/types/server/src/api/plugins/socket.plugin.d.ts +0 -11
  65. package/dist/types/server/src/api/plugins/system.plugin.d.ts +0 -20
  66. package/dist/types/server/src/api/plugins/useragent.plugin.d.ts +0 -8
  67. package/dist/types/server/src/api/routes/api.routes.d.ts +0 -2
  68. package/dist/types/server/src/api/routes/auth.routes.d.ts +0 -2
  69. package/dist/types/server/src/api/routes/backup.routes.d.ts +0 -2
  70. package/dist/types/server/src/api/routes/cameras.routes.d.ts +0 -2
  71. package/dist/types/server/src/api/routes/config.routes.d.ts +0 -2
  72. package/dist/types/server/src/api/routes/files.routes.d.ts +0 -2
  73. package/dist/types/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
  74. package/dist/types/server/src/api/routes/index.d.ts +0 -6
  75. package/dist/types/server/src/api/routes/plugins.routes.d.ts +0 -2
  76. package/dist/types/server/src/api/routes/system.routes.d.ts +0 -2
  77. package/dist/types/server/src/api/routes/users.routes.d.ts +0 -2
  78. package/dist/types/server/src/api/schemas/backup.schema.d.ts +0 -211
  79. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +0 -980
  80. package/dist/types/server/src/api/schemas/config.schema.d.ts +0 -114
  81. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +0 -703
  82. package/dist/types/server/src/api/schemas/plugins.schema.d.ts +0 -72
  83. package/dist/types/server/src/api/schemas/system.schema.d.ts +0 -17
  84. package/dist/types/server/src/api/schemas/users.schema.d.ts +0 -1013
  85. package/dist/types/server/src/api/services/auth.service.d.ts +0 -24
  86. package/dist/types/server/src/api/services/backup.service.d.ts +0 -11
  87. package/dist/types/server/src/api/services/cameras.service.d.ts +0 -54
  88. package/dist/types/server/src/api/services/plugins.service.d.ts +0 -38
  89. package/dist/types/server/src/api/services/system.service.d.ts +0 -13
  90. package/dist/types/server/src/api/services/users.service.d.ts +0 -25
  91. package/dist/types/server/src/api/types/index.d.ts +0 -610
  92. package/dist/types/server/src/api/utils/cameraSource.d.ts +0 -6
  93. package/dist/types/server/src/api/utils/cert.d.ts +0 -11
  94. package/dist/types/server/src/api/utils/constants.d.ts +0 -13
  95. package/dist/types/server/src/api/utils/fetch.d.ts +0 -1
  96. package/dist/types/server/src/api/utils/moveFiles.d.ts +0 -4
  97. package/dist/types/server/src/api/utils/parse.d.ts +0 -2
  98. package/dist/types/server/src/api/websocket/go2rtc.d.ts +0 -21
  99. package/dist/types/server/src/api/websocket/index.d.ts +0 -16
  100. package/dist/types/server/src/api/websocket/nsp/logs.d.ts +0 -19
  101. package/dist/types/server/src/api/websocket/nsp/main.d.ts +0 -9
  102. package/dist/types/server/src/api/websocket/nsp/metrics.d.ts +0 -24
  103. package/dist/types/server/src/api/websocket/nsp/notifications.d.ts +0 -12
  104. package/dist/types/server/src/api/websocket/nsp/plugins.d.ts +0 -13
  105. package/dist/types/server/src/api/websocket/nsp/proxy.d.ts +0 -27
  106. package/dist/types/server/src/api/websocket/nsp/server.d.ts +0 -26
  107. package/dist/types/server/src/api/websocket/nsp/status.d.ts +0 -15
  108. package/dist/types/server/src/api/websocket/types.d.ts +0 -41
  109. package/dist/types/server/src/api.d.ts +0 -29
  110. package/dist/types/server/src/camera/controller.d.ts +0 -61
  111. package/dist/types/server/src/camera/frameWorker.d.ts +0 -45
  112. package/dist/types/server/src/camera/types.d.ts +0 -11
  113. package/dist/types/server/src/go2rtc/index.d.ts +0 -25
  114. package/dist/types/server/src/go2rtc/types.d.ts +0 -14
  115. package/dist/types/server/src/main.d.ts +0 -25
  116. package/dist/types/server/src/nats/index.d.ts +0 -40
  117. package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +0 -22
  118. package/dist/types/server/src/nats/proxy/coreManager.d.ts +0 -14
  119. package/dist/types/server/src/nats/proxy/deviceManager.d.ts +0 -14
  120. package/dist/types/server/src/nats/server.d.ts +0 -38
  121. package/dist/types/server/src/nats/types.d.ts +0 -18
  122. package/dist/types/server/src/nats/utils.d.ts +0 -2
  123. package/dist/types/server/src/plugins/index.d.ts +0 -33
  124. package/dist/types/server/src/plugins/plugin.d.ts +0 -35
  125. package/dist/types/server/src/plugins/schema.d.ts +0 -34
  126. package/dist/types/server/src/plugins/types.d.ts +0 -7
  127. package/dist/types/server/src/plugins/worker.d.ts +0 -55
  128. package/dist/types/server/src/services/config/constants.d.ts +0 -6
  129. package/dist/types/server/src/services/config/index.d.ts +0 -67
  130. package/dist/types/server/src/services/config/types.d.ts +0 -156
  131. package/dist/types/server/src/services/logger/index.d.ts +0 -16
  132. package/dist/types/server/src/types.d.ts +0 -31
  133. package/dist/types/shared/types/index.d.ts +0 -21
@@ -0,0 +1,1269 @@
1
+ import { AudioProperty } from '@camera.ui/sdk';
2
+ import { AudioSensorProperties } from '@camera.ui/sdk';
3
+ import type { BaseCamera } from '@camera.ui/sdk';
4
+ import { BasePlugin } from '@camera.ui/sdk';
5
+ import { BatteryInfoProperties } from '@camera.ui/sdk';
6
+ import { BatteryProperty } from '@camera.ui/sdk';
7
+ import { Camera } from '@camera.ui/sdk';
8
+ import type { CameraInputSettings } from '@camera.ui/sdk/internal';
9
+ import { CameraSource } from '@camera.ui/sdk';
10
+ import { ChargingState } from '@camera.ui/sdk';
11
+ import { ClassifierProperty } from '@camera.ui/sdk';
12
+ import { ClassifierSensorProperties } from '@camera.ui/sdk';
13
+ import { ComputedRef } from 'vue';
14
+ import { ConnectionTarget } from '@camera.ui/transport';
15
+ import { ContactProperty } from '@camera.ui/sdk';
16
+ import { ContactSensorProperties } from '@camera.ui/sdk';
17
+ import { CoreManager } from '@camera.ui/sdk';
18
+ import { Detection } from '@camera.ui/sdk';
19
+ import { DoorbellProperty } from '@camera.ui/sdk';
20
+ import { DoorbellTriggerProperties } from '@camera.ui/sdk';
21
+ import { FaceDetection } from '@camera.ui/sdk';
22
+ import { FaceProperty } from '@camera.ui/sdk';
23
+ import { FaceSensorProperties } from '@camera.ui/sdk';
24
+ import { FormSubmitResponse } from '@camera.ui/sdk';
25
+ import { GarageControlProperties } from '@camera.ui/sdk';
26
+ import { GarageProperty } from '@camera.ui/sdk';
27
+ import { GarageState } from '@camera.ui/sdk';
28
+ import { HTMLAttributes } from 'vue';
29
+ import { HumidityInfoProperties } from '@camera.ui/sdk';
30
+ import { HumidityProperty } from '@camera.ui/sdk';
31
+ import { InjectionKey } from 'vue';
32
+ import { LeakProperty } from '@camera.ui/sdk';
33
+ import { LeakSensorProperties } from '@camera.ui/sdk';
34
+ import { LicensePlateDetection } from '@camera.ui/sdk';
35
+ import { LicensePlateProperty } from '@camera.ui/sdk';
36
+ import { LicensePlateSensorProperties } from '@camera.ui/sdk';
37
+ import { LightControlProperties } from '@camera.ui/sdk';
38
+ import { LightProperty } from '@camera.ui/sdk';
39
+ import { LockControlProperties } from '@camera.ui/sdk';
40
+ import { LockProperty } from '@camera.ui/sdk';
41
+ import { LockState } from '@camera.ui/sdk';
42
+ import { MaybeRefOrGetter } from 'vue';
43
+ import type { ModelSpec } from '@camera.ui/sdk';
44
+ import { MotionProperty } from '@camera.ui/sdk';
45
+ import { MotionSensorProperties } from '@camera.ui/sdk';
46
+ import { Status as NatsStatus } from '@camera.ui/rpc';
47
+ import { NatsTransport } from '@camera.ui/transport/transports/nats';
48
+ import { OAuthMetadata } from '@camera.ui/sdk';
49
+ import { OAuthState } from '@camera.ui/sdk';
50
+ import { ObjectProperty } from '@camera.ui/sdk';
51
+ import { ObjectSensorProperties } from '@camera.ui/sdk';
52
+ import { OccupancyProperty } from '@camera.ui/sdk';
53
+ import { OccupancySensorProperties } from '@camera.ui/sdk';
54
+ import { PluginContract } from '@camera.ui/sdk';
55
+ import type { PluginInfo } from '@camera.ui/sdk';
56
+ import type { PluginInterface } from '@camera.ui/sdk';
57
+ import { PluginInterfaces } from '@camera.ui/sdk';
58
+ import { ProbeConfig } from '@camera.ui/sdk';
59
+ import { ProbeStream } from '@camera.ui/sdk';
60
+ import { Promisify } from '@camera.ui/rpc';
61
+ import { PropertyChangedEvent } from '@camera.ui/sdk/internal';
62
+ import { PTZControlProperties } from '@camera.ui/sdk';
63
+ import { PTZDirection } from '@camera.ui/sdk';
64
+ import { PTZPosition } from '@camera.ui/sdk';
65
+ import { PTZProperty } from '@camera.ui/sdk';
66
+ import { Ref } from 'vue';
67
+ import { RPCClient } from '@camera.ui/rpc';
68
+ import { SchemaConfig } from '@camera.ui/sdk';
69
+ import { SecuritySystemProperties } from '@camera.ui/sdk';
70
+ import { SecuritySystemProperty } from '@camera.ui/sdk';
71
+ import { SecuritySystemState } from '@camera.ui/sdk';
72
+ import type { SensorJSON } from '@camera.ui/sdk/internal';
73
+ import { SensorType } from '@camera.ui/sdk';
74
+ import { ShallowRef } from 'vue';
75
+ import { SirenControlProperties } from '@camera.ui/sdk';
76
+ import { SirenProperty } from '@camera.ui/sdk';
77
+ import { SmokeProperty } from '@camera.ui/sdk';
78
+ import { SmokeSensorProperties } from '@camera.ui/sdk';
79
+ import type { SnapshotInterface } from '@camera.ui/sdk';
80
+ import type { StreamingInterface } from '@camera.ui/sdk';
81
+ import { StreamingRole } from '@camera.ui/sdk';
82
+ import { SwitchControlProperties } from '@camera.ui/sdk';
83
+ import { SwitchProperty } from '@camera.ui/sdk';
84
+ import { TemperatureInfoProperties } from '@camera.ui/sdk';
85
+ import { TemperatureProperty } from '@camera.ui/sdk';
86
+ import { WatchSource } from 'vue';
87
+ import { WsTransport } from '@camera.ui/transport/transports/ws';
88
+
89
+ export declare function acquireSensorManager(cameraId: string, rpcOrContext: RPCClient | ReactiveCameraDeviceContext): CachedSensorManager;
90
+
91
+ export declare interface ActivityMode extends ActivityModeState, ActivityModeActions {
92
+ }
93
+
94
+ declare interface ActivityModeActions {
95
+ setMode: (mode: CameraActivityMode) => void;
96
+ reportActivity: (hasActivity: boolean) => void;
97
+ resumeFromStandby: () => void;
98
+ resetIdleTimer: () => void;
99
+ dispose: () => void;
100
+ }
101
+
102
+ export declare interface ActivityModeConfig {
103
+ standbyTimeout?: number;
104
+ activityTimeout?: number;
105
+ }
106
+
107
+ declare interface ActivityModeState {
108
+ readonly mode: Ref<CameraActivityMode>;
109
+ readonly inStandby: Ref<boolean>;
110
+ readonly hasActivity: Ref<boolean>;
111
+ }
112
+
113
+ /* Excluded from this release type: AudioProperty */
114
+
115
+ /* Excluded from this release type: AudioSensorProperties */
116
+
117
+ export declare interface BaseLogger {
118
+ log: (...args: unknown[]) => void;
119
+ error: (...args: unknown[]) => void;
120
+ warn: (...args: unknown[]) => void;
121
+ success: (...args: unknown[]) => void;
122
+ debug: (...args: unknown[]) => void;
123
+ trace: (...args: unknown[]) => void;
124
+ attention: (...args: unknown[]) => void;
125
+ }
126
+
127
+ /* Excluded from this release type: BatteryInfoProperties */
128
+
129
+ /* Excluded from this release type: BatteryProperty */
130
+
131
+ declare interface CachedSensorManager {
132
+ manager: ReactiveSensorManager;
133
+ initPromise?: Promise<void>;
134
+ }
135
+
136
+ export declare const CAMERA_UI_INJECTION_KEY: InjectionKey<CameraUiContext>;
137
+
138
+ export declare type CameraActivityMode = 'always-on' | 'standby' | 'activity';
139
+
140
+ declare type CameraDeviceImplementation = PartialReturnType<StreamingInterface> & PartialReturnType<SnapshotInterface>;
141
+
142
+ export declare interface CameraDeviceInterface extends CameraDeviceImplementation {
143
+ refreshStates(): Promise<RefreshedStates>;
144
+ connect(): Promise<void>;
145
+ disconnect(): Promise<void>;
146
+ probeStream(sourceId: string, probeConfig?: ProbeConfig, refresh?: boolean): Promise<ProbeStream | undefined>;
147
+ getStreamStatus(sourceId: string): Promise<string>;
148
+ registerSensor(sensor: SensorJSON, pluginId: string): Promise<boolean>;
149
+ unregisterSensor(sensorId: string): void;
150
+ }
151
+
152
+ declare type CameraIdentifier = MaybeRefOrGetter<string | ReactiveCameraDevice | undefined>;
153
+
154
+ export declare interface CameraNamespaces {
155
+ cameraSubject: string;
156
+ cameraControllerRpc: string;
157
+ }
158
+
159
+ export declare interface CameraStream {
160
+ readonly status: Ref<StreamStatus>;
161
+ readonly isPlaying: Ref<boolean>;
162
+ readonly activeMode: Ref<'webrtc' | 'webrtc/tcp' | 'mse'>;
163
+ readonly activeResolution: Ref<StreamingRole>;
164
+ readonly hasAudio: Ref<boolean>;
165
+ readonly hasBackchannel: Ref<boolean>;
166
+ readonly error: Ref<Error | undefined>;
167
+ readonly isReconnecting: Ref<boolean>;
168
+ readonly activityMode: Ref<CameraActivityMode>;
169
+ readonly inStandby: Ref<boolean>;
170
+ readonly hasActivity: Ref<boolean>;
171
+ readonly isBusy: Ref<boolean>;
172
+ readonly hasSound: Ref<boolean>;
173
+ readonly hasIntercom: Ref<boolean>;
174
+ readonly stream: ShallowRef<ReactiveStream | undefined>;
175
+ readonly videoElement: ShallowRef<HTMLVideoElement | undefined>;
176
+ readonly containerElement: ShallowRef<HTMLElement | undefined>;
177
+ readonly fullscreenElement: ShallowRef<HTMLElement | undefined>;
178
+ readonly renderElement: ComputedRef<HTMLVideoElement | HTMLCanvasElement | undefined>;
179
+ readonly muted: ComputedRef<boolean>;
180
+ readonly paused: ComputedRef<boolean>;
181
+ readonly nativeWidth: Ref<number>;
182
+ readonly nativeHeight: Ref<number>;
183
+ readonly isPip: Ref<boolean>;
184
+ readonly supportsPip: ComputedRef<boolean>;
185
+ readonly isFullscreen: Ref<boolean>;
186
+ readonly isCameraDisabled: ComputedRef<boolean>;
187
+ start: () => Promise<void>;
188
+ stop: () => void;
189
+ restart: () => Promise<void>;
190
+ resumeFromStandby: () => void;
191
+ setMode: (mode: VideoStreamingMode) => Promise<void>;
192
+ setResolution: (resolution: StreamingRole) => Promise<void>;
193
+ setMicrophone: (track: MediaStreamTrack | null) => Promise<void>;
194
+ setActivityMode: (mode: CameraActivityMode) => void;
195
+ reportActivity: (hasActivity: boolean) => void;
196
+ setMuted: (muted: boolean) => void;
197
+ play: () => Promise<void>;
198
+ pause: () => void;
199
+ togglePip: () => void;
200
+ toggleFullscreen: () => Promise<void>;
201
+ captureScreenshot: () => string | null;
202
+ }
203
+
204
+ export declare interface CameraUiContext {
205
+ rpc: ShallowRef<RPCClient | undefined>;
206
+ target: Readonly<Ref<ConnectionTarget | null>>;
207
+ isConnected: Readonly<Ref<boolean>>;
208
+ endpoint: Readonly<Ref<string | undefined>>;
209
+ token: Readonly<Ref<string | undefined>>;
210
+ extraProxyQuery: Readonly<Ref<Record<string, string> | undefined>>;
211
+ error: Readonly<Ref<Error | undefined>>;
212
+ wsTransport?: WsTransport;
213
+ on: (event: CameraUiEventType, cb: CameraUiEventCallback) => void;
214
+ off: (event: CameraUiEventType, cb: CameraUiEventCallback) => void;
215
+ }
216
+
217
+ export declare type CameraUiEventCallback = () => void;
218
+
219
+ export declare type CameraUiEventType = 'reconnected' | 'disconnected' | 'visibility-resumed';
220
+
221
+ export declare type CameraUiPlugin = ReturnType<typeof createCameraUiPlugin>;
222
+
223
+ export declare interface CameraUiPluginInput {
224
+ natsTransport: NatsTransport;
225
+ target: Ref<ConnectionTarget | null>;
226
+ wsTransport?: WsTransport;
227
+ }
228
+
229
+ /* Excluded from this release type: ClassifierProperty */
230
+
231
+ /* Excluded from this release type: ClassifierSensorProperties */
232
+
233
+ export declare function clearCameraCache(): void;
234
+
235
+ export declare function clearOAuthCache(): void;
236
+
237
+ export declare function clearPluginCache(): void;
238
+
239
+ export declare function clearSensorCache(): void;
240
+
241
+ export declare function clearSnapshotCache(): void;
242
+
243
+ export declare function clearStorageCache(): void;
244
+
245
+ export declare interface CodecCompatibility {
246
+ compatible: boolean;
247
+ audioCompatible: boolean;
248
+ videoCompatible: boolean;
249
+ incompatibleCodecs: string[];
250
+ }
251
+
252
+ /* Excluded from this release type: ContactProperty */
253
+
254
+ /* Excluded from this release type: ContactSensorProperties */
255
+
256
+ export declare interface CoreManagerInterface {
257
+ getFFmpegPath(): Promise<string>;
258
+ getServerAddresses(): Promise<string[]>;
259
+ getPlugin(pluginName: string): Promise<PluginInfo | undefined>;
260
+ getPluginsByInterface(interfaceName: PluginInterface): Promise<PluginInfo[]>;
261
+ }
262
+
263
+ export declare interface CoreManagerNamespaces {
264
+ coreManagerSubject: string;
265
+ coreManagerRpc: string;
266
+ }
267
+
268
+ export declare function createActivityMode(options: CreateActivityModeOptions): ActivityMode;
269
+
270
+ declare interface CreateActivityModeOptions {
271
+ initialMode?: CameraActivityMode;
272
+ config?: ActivityModeConfig;
273
+ onStreamStart: () => void;
274
+ onStreamStop: () => void;
275
+ isStreamPlaying: () => boolean;
276
+ }
277
+
278
+ export declare function createCameraUiPlugin(input: CameraUiContext | CameraUiPluginInput): {
279
+ install(app: {
280
+ provide: (key: symbol, value: unknown) => void;
281
+ }): void;
282
+ };
283
+
284
+ export declare function createReactiveCameraDevice(rpcOrContext: RPCClient | ReactiveCameraDeviceContext, initialCamera: Camera): Promise<ReactiveCameraDevice>;
285
+
286
+ export declare function createSensorManager(rpcOrContext: RPCClient | ReactiveCameraDeviceContext, cameraId: string, sensorSubjectNamespace: string, sensorRpcNamespace: string): ReactiveSensorManager;
287
+
288
+ declare interface DBCamera extends BaseCamera {
289
+ sources: CameraInputSettings[];
290
+ workerAgentId?: string;
291
+ }
292
+
293
+ declare interface DetectionEventNamespaces {
294
+ detectionEventSubject: string;
295
+ }
296
+
297
+ export declare interface DeviceManagerInterface {
298
+ getCamera(cameraNameOrId: string, pluginId: string): Promise<Camera | undefined>;
299
+ }
300
+
301
+ export declare interface DeviceManagerNamespaces {
302
+ deviceManagerSubject: string;
303
+ deviceManagerRpc: string;
304
+ }
305
+
306
+ declare interface DiscoveryManagerNamespaces {
307
+ discoveryManagerSubject: string;
308
+ discoveryManagerRpc: string;
309
+ }
310
+
311
+ /* Excluded from this release type: DoorbellProperty */
312
+
313
+ /* Excluded from this release type: DoorbellTriggerProperties */
314
+
315
+ declare interface DownloadManagerNamespaces {
316
+ downloadManagerRpc: string;
317
+ }
318
+
319
+ /* Excluded from this release type: FaceProperty */
320
+
321
+ /* Excluded from this release type: FaceSensorProperties */
322
+
323
+ declare interface FrameWorkerDetectionNamespaces {
324
+ detectionRpc: string;
325
+ }
326
+
327
+ export declare interface FrameWorkerNamespaces {
328
+ frameWorkerChildRpc: string;
329
+ frameWorkerChild: string;
330
+ }
331
+
332
+ declare type FullscreenMode = 'fit' | 'scroll';
333
+
334
+ /* Excluded from this release type: GarageControlProperties */
335
+
336
+ /* Excluded from this release type: GarageProperty */
337
+
338
+ export declare function getSnapshotUrl(cameraId: string): string | undefined;
339
+
340
+ declare type HiddenCallback = () => void;
341
+
342
+ /* Excluded from this release type: HumidityInfoProperties */
343
+
344
+ /* Excluded from this release type: HumidityProperty */
345
+
346
+ export declare const isReactiveAudioSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveAudioSensor;
347
+
348
+ export declare const isReactiveBatteryInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveBatteryInfo;
349
+
350
+ export declare const isReactiveClassifierSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveClassifierSensor;
351
+
352
+ export declare const isReactiveContactSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveContactSensor;
353
+
354
+ export declare const isReactiveDoorbellTrigger: (sensor: ReactiveSensor<any>) => sensor is ReactiveDoorbellTrigger;
355
+
356
+ export declare const isReactiveFaceSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveFaceSensor;
357
+
358
+ export declare const isReactiveGarageControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveGarageControl;
359
+
360
+ export declare const isReactiveHumidityInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveHumidityInfo;
361
+
362
+ export declare const isReactiveLeakSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveLeakSensor;
363
+
364
+ export declare const isReactiveLicensePlateSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveLicensePlateSensor;
365
+
366
+ export declare const isReactiveLightControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveLightControl;
367
+
368
+ export declare const isReactiveLockControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveLockControl;
369
+
370
+ export declare const isReactiveMotionSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveMotionSensor;
371
+
372
+ export declare const isReactiveObjectSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveObjectSensor;
373
+
374
+ export declare const isReactiveOccupancySensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveOccupancySensor;
375
+
376
+ export declare const isReactivePTZControl: (sensor: ReactiveSensor<any>) => sensor is ReactivePTZControl;
377
+
378
+ export declare const isReactiveSecuritySystem: (sensor: ReactiveSensor<any>) => sensor is ReactiveSecuritySystem;
379
+
380
+ export declare const isReactiveSirenControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveSirenControl;
381
+
382
+ export declare const isReactiveSmokeSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveSmokeSensor;
383
+
384
+ export declare const isReactiveSwitchControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveSwitchControl;
385
+
386
+ export declare const isReactiveTemperatureInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveTemperatureInfo;
387
+
388
+ /* Excluded from this release type: LeakProperty */
389
+
390
+ /* Excluded from this release type: LeakSensorProperties */
391
+
392
+ /* Excluded from this release type: LicensePlateProperty */
393
+
394
+ /* Excluded from this release type: LicensePlateSensorProperties */
395
+
396
+ /* Excluded from this release type: LightControlProperties */
397
+
398
+ /* Excluded from this release type: LightProperty */
399
+
400
+ /* Excluded from this release type: LockControlProperties */
401
+
402
+ /* Excluded from this release type: LockProperty */
403
+
404
+ /* Excluded from this release type: MotionProperty */
405
+
406
+ /* Excluded from this release type: MotionSensorProperties */
407
+
408
+ export declare class NamespaceManager {
409
+ static coreManagerNamespaces(): CoreManagerNamespaces {
410
+ return {
411
+ coreManagerSubject: 'coreManager.subscriber',
412
+ coreManagerRpc: 'coreManager.rpc',
413
+ };
414
+ }
415
+
416
+ static deviceManagerNamespaces(): DeviceManagerNamespaces {
417
+ return {
418
+ deviceManagerSubject: 'deviceManager.subscriber',
419
+ deviceManagerRpc: 'deviceManager.rpc',
420
+ };
421
+ }
422
+
423
+ static discoveryManagerNamespaces(): DiscoveryManagerNamespaces {
424
+ return {
425
+ discoveryManagerSubject: 'discoveryManager.subscriber',
426
+ discoveryManagerRpc: 'discoveryManager.rpc',
427
+ };
428
+ }
429
+
430
+ static pluginNamespaces(pluginId: string): PluginNamespaces {
431
+ return {
432
+ pluginDeviceManagerSubject: `plugin.${pluginId}.deviceManager.subscriber`,
433
+ pluginChildRpc: `plugin.${pluginId}.child.rpc`,
434
+ pluginChild: `plugin.${pluginId}.child`,
435
+ pluginStorageRpc: `plugin.${pluginId}.storage.rpc`,
436
+ };
437
+ }
438
+
439
+ static cameraNamespaces(cameraId: string): CameraNamespaces {
440
+ return {
441
+ cameraSubject: `camera.${cameraId}.subscriber`,
442
+ cameraControllerRpc: `camera.${cameraId}.controller.rpc`,
443
+ };
444
+ }
445
+
446
+ static frameWorkerNamespaces(cameraId: string): FrameWorkerNamespaces {
447
+ return {
448
+ frameWorkerChildRpc: `camera.${cameraId}.frameWorker.child.rpc`,
449
+ frameWorkerChild: `camera.${cameraId}.frameWorker.child`,
450
+ };
451
+ }
452
+
453
+ static pluginCameraNamespaces(pluginId: string, cameraId: string): PluginCameraNamespaces {
454
+ return {
455
+ cameraInterfacesRpc: `plugin.${pluginId}.camera.${cameraId}.cameraInterfaces.rpc`,
456
+ cameraStorageRpc: `plugin.${pluginId}.camera.${cameraId}.cameraStorage.rpc`,
457
+ cameraImplRpc: `plugin.${pluginId}.camera.${cameraId}.impl.rpc`,
458
+ };
459
+ }
460
+
461
+ static pluginSensorNamespaces(pluginId: string, cameraId: string, sensorId: string): PluginSensorNamespaces {
462
+ return {
463
+ sensorStorageRpc: `plugin.${pluginId}.camera.${cameraId}.sensor.${sensorId}.storage.rpc`,
464
+ };
465
+ }
466
+
467
+ static sensorControllerNamespaces(cameraId: string): SensorControllerNamespaces {
468
+ return {
469
+ sensorSubject: `camera.${cameraId}.sensors.subject`,
470
+ sensorRpc: `camera.${cameraId}.sensors.rpc`,
471
+ sensorWriteSubject: `camera.${cameraId}.sensors.writes`,
472
+ };
473
+ }
474
+
475
+ static sensorEventNamespaces(cameraId: string, sensorId: string): SensorEventNamespaces {
476
+ return {
477
+ sensorSubject: `camera.${cameraId}.sensor.${sensorId}.subject`,
478
+ };
479
+ }
480
+
481
+ static sensorProviderNamespaces(pluginId: string, cameraId: string, sensorId: string): SensorProviderNamespaces {
482
+ return {
483
+ sensorRpc: `plugin.${pluginId}.camera.${cameraId}.sensor.${sensorId}.rpc`,
484
+ };
485
+ }
486
+
487
+ static frameWorkerDetectionNamespaces(cameraId: string): FrameWorkerDetectionNamespaces {
488
+ return {
489
+ detectionRpc: `camera.${cameraId}.frameWorker.detection.rpc`,
490
+ };
491
+ }
492
+
493
+ static detectionEventNamespaces(cameraId: string): DetectionEventNamespaces {
494
+ return {
495
+ detectionEventSubject: `camera.${cameraId}.events.subject`,
496
+ };
497
+ }
498
+
499
+ static sensorControllerRpc(cameraId: string): string {
500
+ return `camera.${cameraId}.sensors.controller.rpc`;
501
+ }
502
+
503
+ static terminalManagerNamespaces(): TerminalManagerNamespaces {
504
+ return {
505
+ terminalManagerSubject: 'terminalManager.subscriber',
506
+ terminalManagerRpc: 'terminalManager.rpc',
507
+ };
508
+ }
509
+
510
+ static downloadManagerNamespaces(): DownloadManagerNamespaces {
511
+ return {
512
+ downloadManagerRpc: 'downloadManager.rpc',
513
+ };
514
+ }
515
+
516
+ static notificationManagerNamespaces(): NotificationManagerNamespaces {
517
+ return {
518
+ notificationsPublishSubject: 'notifications.publish',
519
+ };
520
+ }
521
+
522
+ static workerAgentRpc(agentId: string): string {
523
+ return `worker.${agentId}.rpc`;
524
+ }
525
+
526
+ static workerHeartbeat(): string {
527
+ return 'workers.heartbeat';
528
+ }
529
+
530
+ static workerDisconnect(): string {
531
+ return 'workers.disconnect';
532
+ }
533
+ }
534
+
535
+ export { NatsStatus }
536
+
537
+ declare interface NotificationManagerNamespaces {
538
+ notificationsPublishSubject: string;
539
+ }
540
+
541
+ /* Excluded from this release type: ObjectProperty */
542
+
543
+ /* Excluded from this release type: ObjectSensorProperties */
544
+
545
+ /* Excluded from this release type: OccupancyProperty */
546
+
547
+ /* Excluded from this release type: OccupancySensorProperties */
548
+
549
+ declare type PartialReturnType<T> = {
550
+ [K in keyof T]: T[K] extends (...args: infer A) => Promise<infer R>
551
+ ? (...args: A) => Promise<R | undefined>
552
+ : T[K] extends (...args: infer A) => infer R
553
+ ? (...args: A) => R | undefined
554
+ : T[K];
555
+ };
556
+
557
+ export declare interface PluginCameraNamespaces {
558
+ cameraInterfacesRpc: string;
559
+ cameraStorageRpc: string;
560
+ cameraImplRpc: string;
561
+ }
562
+
563
+ export declare interface PluginNamespaces {
564
+ pluginDeviceManagerSubject: string;
565
+ pluginChildRpc: string;
566
+ pluginChild: string;
567
+ pluginStorageRpc: string;
568
+ }
569
+
570
+ export declare interface PluginSensorNamespaces {
571
+ sensorStorageRpc: string;
572
+ }
573
+
574
+ /* Excluded from this release type: PTZControlProperties */
575
+
576
+ /* Excluded from this release type: PTZProperty */
577
+
578
+ export declare interface ReactiveAudioSensor extends ReactiveSensor<AudioSensorProperties> {
579
+ readonly type: typeof SensorType.Audio;
580
+ getProperty(property: typeof AudioProperty.Detected): boolean | undefined;
581
+ getProperty(property: typeof AudioProperty.Detections): Detection[] | undefined;
582
+ getProperty(property: typeof AudioProperty.Decibels): number | undefined;
583
+ getProperty(property: string): unknown;
584
+ }
585
+
586
+ export declare interface ReactiveBatteryInfo extends ReactiveSensor<BatteryInfoProperties> {
587
+ readonly type: typeof SensorType.Battery;
588
+ getProperty(property: typeof BatteryProperty.Level): number | undefined;
589
+ getProperty(property: typeof BatteryProperty.Low): boolean | undefined;
590
+ getProperty(property: typeof BatteryProperty.Charging): ChargingState | undefined;
591
+ getProperty(property: string): unknown;
592
+ }
593
+
594
+ export declare interface ReactiveCameraDevice {
595
+ readonly id: string;
596
+ readonly name: Ref<string>;
597
+ readonly room: Ref<string>;
598
+ readonly nativeId: Ref<string | undefined>;
599
+ readonly disabled: Ref<boolean>;
600
+ readonly snooze: Ref<boolean>;
601
+ readonly isCloud: Ref<boolean>;
602
+ readonly connected: Ref<boolean>;
603
+ readonly frameWorkerConnected: Ref<boolean>;
604
+ readonly sources: Ref<CameraSource[]>;
605
+ readonly streamSource: Ref<CameraSource | undefined>;
606
+ readonly snapshotSource: Ref<CameraSource | undefined>;
607
+ readonly highResolutionSource: Ref<CameraSource | undefined>;
608
+ readonly midResolutionSource: Ref<CameraSource | undefined>;
609
+ readonly lowResolutionSource: Ref<CameraSource | undefined>;
610
+ readonly capabilities: Ref<SensorType[]>;
611
+ readonly hasLight: ComputedRef<boolean>;
612
+ readonly hasSiren: ComputedRef<boolean>;
613
+ readonly hasDoorbell: ComputedRef<boolean>;
614
+ readonly hasBattery: ComputedRef<boolean>;
615
+ readonly hasAudioSensor: ComputedRef<boolean>;
616
+ readonly hasMotionSensor: ComputedRef<boolean>;
617
+ readonly hasObjectSensor: ComputedRef<boolean>;
618
+ readonly hasPtz: ComputedRef<boolean>;
619
+ readonly camera: Ref<Camera>;
620
+ readonly snapshot: ShallowRef<ArrayBuffer | undefined>;
621
+ readonly snapshotLoading: Ref<boolean>;
622
+ fetchSnapshot: (sourceId?: string, forceNew?: boolean) => Promise<ArrayBuffer | undefined>;
623
+ probeStream: (sourceId?: string, probeConfig?: ProbeConfig, refresh?: boolean) => Promise<ProbeStream | undefined>;
624
+ streamUrl: (sourceId: string) => Promise<string | undefined>;
625
+ refreshStates: () => Promise<void>;
626
+ reconnect: () => Promise<void>;
627
+ close: () => Promise<void>;
628
+ }
629
+
630
+ declare interface ReactiveCameraDeviceContext {
631
+ rpc: ShallowRef<RPCClient | undefined>;
632
+ }
633
+
634
+ export declare interface ReactiveClassifierSensor extends ReactiveSensor<ClassifierSensorProperties> {
635
+ readonly type: typeof SensorType.Classifier;
636
+ getProperty(property: typeof ClassifierProperty.Detected): boolean | undefined;
637
+ getProperty(property: typeof ClassifierProperty.Detections): Detection[] | undefined;
638
+ getProperty(property: typeof ClassifierProperty.Labels): string[] | undefined;
639
+ getProperty(property: string): unknown;
640
+ }
641
+
642
+ export declare interface ReactiveContactSensor extends ReactiveSensor<ContactSensorProperties> {
643
+ readonly type: typeof SensorType.Contact;
644
+ getProperty(property: typeof ContactProperty.Detected): boolean | undefined;
645
+ getProperty(property: string): unknown;
646
+ }
647
+
648
+ export declare interface ReactiveCoreManager extends Omit<CoreManager, 'connectToPlugin' | 'signRequest' | 'onEvent'> {
649
+ }
650
+
651
+ export declare interface ReactiveDeviceManager {
652
+ getCamera: (cameraIdOrName: string) => Promise<ReactiveCameraDevice | undefined>;
653
+ }
654
+
655
+ export declare interface ReactiveDoorbellTrigger extends ReactiveSensor<DoorbellTriggerProperties> {
656
+ readonly type: typeof SensorType.Doorbell;
657
+ getProperty(property: typeof DoorbellProperty.Ring): boolean | undefined;
658
+ getProperty(property: string): unknown;
659
+ }
660
+
661
+ export declare interface ReactiveFaceSensor extends ReactiveSensor<FaceSensorProperties> {
662
+ readonly type: typeof SensorType.Face;
663
+ getProperty(property: typeof FaceProperty.Detected): boolean | undefined;
664
+ getProperty(property: typeof FaceProperty.Detections): FaceDetection[] | undefined;
665
+ getProperty(property: string): unknown;
666
+ }
667
+
668
+ export declare interface ReactiveGarageControl extends ReactiveSensor<GarageControlProperties> {
669
+ readonly type: typeof SensorType.Garage;
670
+ getProperty(property: typeof GarageProperty.CurrentState): GarageState | undefined;
671
+ getProperty(property: typeof GarageProperty.TargetState): GarageState | undefined;
672
+ getProperty(property: typeof GarageProperty.ObstructionDetected): boolean | undefined;
673
+ getProperty(property: string): unknown;
674
+ setProperty(property: typeof GarageProperty.TargetState, value: GarageState): Promise<void>;
675
+ setProperty(property: string, value: unknown): Promise<void>;
676
+ }
677
+
678
+ export declare interface ReactiveHumidityInfo extends ReactiveSensor<HumidityInfoProperties> {
679
+ readonly type: typeof SensorType.Humidity;
680
+ getProperty(property: typeof HumidityProperty.Current): number | undefined;
681
+ getProperty(property: string): unknown;
682
+ }
683
+
684
+ export declare interface ReactiveLeakSensor extends ReactiveSensor<LeakSensorProperties> {
685
+ readonly type: typeof SensorType.Leak;
686
+ getProperty(property: typeof LeakProperty.Detected): boolean | undefined;
687
+ getProperty(property: string): unknown;
688
+ }
689
+
690
+ export declare interface ReactiveLicensePlateSensor extends ReactiveSensor<LicensePlateSensorProperties> {
691
+ readonly type: typeof SensorType.LicensePlate;
692
+ getProperty(property: typeof LicensePlateProperty.Detected): boolean | undefined;
693
+ getProperty(property: typeof LicensePlateProperty.Detections): LicensePlateDetection[] | undefined;
694
+ getProperty(property: string): unknown;
695
+ }
696
+
697
+ export declare interface ReactiveLightControl extends ReactiveSensor<LightControlProperties> {
698
+ readonly type: typeof SensorType.Light;
699
+ getProperty(property: typeof LightProperty.On): boolean | undefined;
700
+ getProperty(property: typeof LightProperty.Brightness): number | undefined;
701
+ getProperty(property: string): unknown;
702
+ setProperty(property: typeof LightProperty.On, value: boolean): Promise<void>;
703
+ setProperty(property: typeof LightProperty.Brightness, value: number): Promise<void>;
704
+ setProperty(property: string, value: unknown): Promise<void>;
705
+ }
706
+
707
+ export declare interface ReactiveLockControl extends ReactiveSensor<LockControlProperties> {
708
+ readonly type: typeof SensorType.Lock;
709
+ getProperty(property: typeof LockProperty.CurrentState): LockState | undefined;
710
+ getProperty(property: typeof LockProperty.TargetState): LockState | undefined;
711
+ getProperty(property: string): unknown;
712
+ setProperty(property: typeof LockProperty.CurrentState, value: LockState): Promise<void>;
713
+ setProperty(property: typeof LockProperty.TargetState, value: LockState): Promise<void>;
714
+ setProperty(property: string, value: unknown): Promise<void>;
715
+ }
716
+
717
+ export declare interface ReactiveMotionSensor extends ReactiveSensor<MotionSensorProperties> {
718
+ readonly type: typeof SensorType.Motion;
719
+ getProperty(property: typeof MotionProperty.Detected): boolean | undefined;
720
+ getProperty(property: typeof MotionProperty.Detections): Detection[] | undefined;
721
+ getProperty(property: string): unknown;
722
+ }
723
+
724
+ export declare interface ReactiveObjectSensor extends ReactiveSensor<ObjectSensorProperties> {
725
+ readonly type: typeof SensorType.Object;
726
+ getProperty(property: typeof ObjectProperty.Detected): boolean | undefined;
727
+ getProperty(property: typeof ObjectProperty.Detections): Detection[] | undefined;
728
+ getProperty(property: typeof ObjectProperty.Labels): string[] | undefined;
729
+ getProperty(property: string): unknown;
730
+ }
731
+
732
+ export declare interface ReactiveOccupancySensor extends ReactiveSensor<OccupancySensorProperties> {
733
+ readonly type: typeof SensorType.Occupancy;
734
+ getProperty(property: typeof OccupancyProperty.Detected): boolean | undefined;
735
+ getProperty(property: string): unknown;
736
+ }
737
+
738
+ export declare interface ReactivePTZControl extends ReactiveSensor<PTZControlProperties> {
739
+ readonly type: typeof SensorType.PTZ;
740
+ getProperty(property: typeof PTZProperty.Position): PTZPosition | undefined;
741
+ getProperty(property: typeof PTZProperty.Moving): boolean | undefined;
742
+ getProperty(property: typeof PTZProperty.Presets): string[] | undefined;
743
+ getProperty(property: typeof PTZProperty.Velocity): PTZDirection | undefined;
744
+ getProperty(property: typeof PTZProperty.TargetPreset): string | undefined;
745
+ getProperty(property: string): unknown;
746
+ setProperty(property: typeof PTZProperty.Position, value: PTZPosition): Promise<void>;
747
+ setProperty(property: typeof PTZProperty.Moving, value: boolean): Promise<void>;
748
+ setProperty(property: typeof PTZProperty.Velocity, value: PTZDirection): Promise<void>;
749
+ setProperty(property: typeof PTZProperty.TargetPreset, value: string): Promise<void>;
750
+ setProperty(property: string, value: unknown): Promise<void>;
751
+ }
752
+
753
+ export declare interface ReactiveSecuritySystem extends ReactiveSensor<SecuritySystemProperties> {
754
+ readonly type: typeof SensorType.SecuritySystem;
755
+ getProperty(property: typeof SecuritySystemProperty.CurrentState): SecuritySystemState | undefined;
756
+ getProperty(property: typeof SecuritySystemProperty.TargetState): SecuritySystemState | undefined;
757
+ getProperty(property: string): unknown;
758
+ setProperty(property: typeof SecuritySystemProperty.CurrentState, value: SecuritySystemState): Promise<void>;
759
+ setProperty(property: typeof SecuritySystemProperty.TargetState, value: SecuritySystemState): Promise<void>;
760
+ setProperty(property: string, value: unknown): Promise<void>;
761
+ }
762
+
763
+ export declare interface ReactiveSensor<TProperties extends object = Record<string, unknown>> {
764
+ readonly id: string;
765
+ readonly type: SensorType;
766
+ readonly name: string;
767
+ readonly displayName: Ref<string>;
768
+ readonly pluginId: string;
769
+ readonly capabilities: Ref<string[]>;
770
+ readonly properties: TProperties;
771
+ getProperty<T = unknown>(property: string): T | undefined;
772
+ setProperty(property: string, value: unknown): Promise<void>;
773
+ setDisplayName(displayName: string): Promise<void>;
774
+ hasCapability(capability: string): boolean;
775
+ onCapabilitiesChanged(callback: (capabilities: string[]) => void): () => void;
776
+ }
777
+
778
+ export declare interface ReactiveSensorManager {
779
+ readonly sensors: ComputedRef<ReactiveSensor[]>;
780
+ readonly isInitialized: ComputedRef<boolean>;
781
+ ensureInitialized(): Promise<void>;
782
+ reconnect(): Promise<void>;
783
+ getSensor(sensorId: string): ReactiveSensor | undefined;
784
+ getSensorsByType(type: SensorType): ReactiveSensor[];
785
+ hasSensorType(type: SensorType): boolean;
786
+ setDisplayName(sensorId: string, displayName: string): Promise<void>;
787
+ close(): void;
788
+ }
789
+
790
+ export declare interface ReactiveSirenControl extends ReactiveSensor<SirenControlProperties> {
791
+ readonly type: typeof SensorType.Siren;
792
+ getProperty(property: typeof SirenProperty.Active): boolean | undefined;
793
+ getProperty(property: typeof SirenProperty.Volume): number | undefined;
794
+ getProperty(property: string): unknown;
795
+ setProperty(property: typeof SirenProperty.Active, value: boolean): Promise<void>;
796
+ setProperty(property: typeof SirenProperty.Volume, value: number): Promise<void>;
797
+ setProperty(property: string, value: unknown): Promise<void>;
798
+ }
799
+
800
+ export declare interface ReactiveSmokeSensor extends ReactiveSensor<SmokeSensorProperties> {
801
+ readonly type: typeof SensorType.Smoke;
802
+ getProperty(property: typeof SmokeProperty.Detected): boolean | undefined;
803
+ getProperty(property: string): unknown;
804
+ }
805
+
806
+ export declare interface ReactiveStorage {
807
+ readonly proxy: Promisify<StorageRPC>;
808
+ readonly config: ShallowRef<SchemaConfig | undefined>;
809
+ readonly isLoading: Ref<boolean>;
810
+ readonly error: Ref<Error | undefined>;
811
+ getConfig(): Promise<SchemaConfig | undefined>;
812
+ setValue<T = unknown>(key: string, value: T): Promise<void>;
813
+ setConfig(newConfig: Record<string, unknown>): Promise<void>;
814
+ submitValue(key: string, value: unknown): Promise<FormSubmitResponse | void>;
815
+ }
816
+
817
+ export declare interface ReactiveStream {
818
+ readonly status: Ref<StreamStatus>;
819
+ readonly activeMode: Ref<Exclude<VideoStreamingMode, 'auto'>>;
820
+ readonly requestedMode: Ref<VideoStreamingMode>;
821
+ readonly activeResolution: Ref<StreamingRole>;
822
+ readonly requestedResolution: Ref<StreamingRole>;
823
+ readonly source: Ref<CameraSource | undefined>;
824
+ readonly hasVideo: Ref<boolean>;
825
+ readonly hasAudio: Ref<boolean>;
826
+ readonly hasBackchannel: Ref<boolean>;
827
+ readonly isPlaying: Ref<boolean>;
828
+ readonly error: Ref<Error | undefined>;
829
+ readonly probeInfo: Ref<ProbeStream | undefined>;
830
+ readonly muted: Ref<boolean>;
831
+ readonly paused: Ref<boolean>;
832
+ readonly nativeWidth: Ref<number>;
833
+ readonly nativeHeight: Ref<number>;
834
+ start: () => Promise<void>;
835
+ stop: () => void;
836
+ restart: () => Promise<void>;
837
+ setMode: (mode: VideoStreamingMode) => Promise<void>;
838
+ setResolution: (resolution: StreamingRole) => Promise<void>;
839
+ setMicrophone: (track: MediaStreamTrack | null) => Promise<void>;
840
+ setMuted: (muted: boolean) => void;
841
+ play: () => Promise<void>;
842
+ pause: () => void;
843
+ }
844
+
845
+ export declare interface ReactiveSwitchControl extends ReactiveSensor<SwitchControlProperties> {
846
+ readonly type: typeof SensorType.Switch;
847
+ getProperty(property: typeof SwitchProperty.On): boolean | undefined;
848
+ getProperty(property: string): unknown;
849
+ setProperty(property: typeof SwitchProperty.On, value: boolean): Promise<void>;
850
+ setProperty(property: string, value: unknown): Promise<void>;
851
+ }
852
+
853
+ export declare interface ReactiveTemperatureInfo extends ReactiveSensor<TemperatureInfoProperties> {
854
+ readonly type: typeof SensorType.Temperature;
855
+ getProperty(property: typeof TemperatureProperty.Current): number | undefined;
856
+ getProperty(property: string): unknown;
857
+ }
858
+
859
+ export declare function refreshClientSubscriptions(): void;
860
+
861
+ declare interface RefreshedStates {
862
+ camera: Camera;
863
+ cameraState: boolean;
864
+ frameWorkerState: boolean;
865
+ sensorStates: Record<string, SensorRefreshedState>;
866
+ }
867
+
868
+ export declare function releaseSensorManager(cameraId: string): void;
869
+
870
+ export declare function resetClientState(): void;
871
+
872
+ export declare function rpcCall<T>(rpcRef: Readonly<ShallowRef<RPCClient | undefined>>, fn: (rpc: RPCClient) => Promise<T>, options?: RpcCallOptions): Promise<T>;
873
+
874
+ export declare interface RpcCallOptions {
875
+ maxRetries?: number;
876
+ awaitConnect?: boolean;
877
+ connectTimeoutMs?: number;
878
+ retryDelayMs?: (attempt: number) => number;
879
+ shouldRetry?: (err: unknown, attempt: number) => boolean;
880
+ signal?: AbortSignal;
881
+ }
882
+
883
+ export { RPCClient }
884
+
885
+ /* Excluded from this release type: SecuritySystemProperties */
886
+
887
+ /* Excluded from this release type: SecuritySystemProperty */
888
+
889
+ declare interface SensorAddedEvent {
890
+ cameraId: string;
891
+ sensor: StoredSensorData;
892
+ state: SensorRefreshedState;
893
+ }
894
+
895
+ declare interface SensorCapabilitiesChangedEvent {
896
+ cameraId: string;
897
+ sensorId: string;
898
+ capabilities: string[];
899
+ }
900
+
901
+ export declare interface SensorControllerNamespaces {
902
+ sensorSubject: string;
903
+ sensorRpc: string;
904
+ sensorWriteSubject: string;
905
+ }
906
+
907
+ export declare interface SensorControllerRPC {
908
+ getSensors(): StoredSensorData[];
909
+ getSensor(sensorId: string): StoredSensorData | undefined;
910
+ getSensorByType(sensorType: SensorType): StoredSensorData | undefined;
911
+ getSensorsByType(sensorType: SensorType): StoredSensorData[];
912
+ getSensorState(sensorId: string): SensorRefreshedState;
913
+ getSensorStates(): Record<string, SensorRefreshedState>;
914
+ getPropertyValue(sensorId: string, property: string): unknown;
915
+ getAllPropertyValues(sensorId: string): Record<string, unknown>;
916
+ setDisplayName(sensorId: string, displayName: string): void;
917
+ }
918
+
919
+ declare interface SensorDisplayNameChangedEvent {
920
+ cameraId: string;
921
+ sensorId: string;
922
+ displayName: string;
923
+ }
924
+
925
+ export declare interface SensorEventMessage {
926
+ type: 'property:changed' | 'sensor:added' | 'sensor:removed' | 'sensor:displayName:changed' | 'sensor:capabilities:changed';
927
+ data: PropertyChangedEvent | SensorAddedEvent | SensorRemovedEvent | SensorDisplayNameChangedEvent | SensorCapabilitiesChangedEvent;
928
+ }
929
+
930
+ export declare interface SensorEventNamespaces {
931
+ sensorSubject: string;
932
+ }
933
+
934
+ export declare interface SensorProviderNamespaces {
935
+ sensorRpc: string;
936
+ }
937
+
938
+ export declare interface SensorRefreshedState {
939
+ type: SensorType;
940
+ properties: Record<string, unknown>;
941
+ capabilities: string[];
942
+ displayName?: string;
943
+ }
944
+
945
+ declare interface SensorRemovedEvent {
946
+ cameraId: string;
947
+ sensorId: string;
948
+ sensorType: SensorType;
949
+ }
950
+
951
+ /* Excluded from this release type: SirenControlProperties */
952
+
953
+ /* Excluded from this release type: SirenProperty */
954
+
955
+ /* Excluded from this release type: SmokeProperty */
956
+
957
+ /* Excluded from this release type: SmokeSensorProperties */
958
+
959
+ export declare interface StorageRPC {
960
+ getValue<T = string>(key: string, defaultValue?: T): Promise<T | undefined>;
961
+ setValue<T = string>(key: string, newValue: T): Promise<void>;
962
+ submitValue(key: string, newValue: unknown): Promise<FormSubmitResponse | void>;
963
+ hasValue(key: string): boolean;
964
+ getConfig(): Promise<SchemaConfig>;
965
+ setConfig(newConfig: Record<string, unknown>): Promise<void>;
966
+ getSchema<T>(key: string): T | undefined;
967
+ hasSchema(key: string): boolean;
968
+ }
969
+
970
+ export declare interface StoredSensorData {
971
+ id: string;
972
+ type: SensorType;
973
+ name: string;
974
+ displayName: string;
975
+ pluginId: string;
976
+ properties: Record<string, unknown>;
977
+ capabilities: string[];
978
+ requiresFrames?: boolean;
979
+ modelSpec?: ModelSpec;
980
+ }
981
+
982
+ export declare const STREAM_CONFIG: {
983
+ readonly WEBRTC: {
984
+ readonly RECONNECT_DELAY: 1000;
985
+ readonly CONNECT_TIMEOUT: 10000;
986
+ readonly WS_CONNECT_TIMEOUT: 5000;
987
+ readonly ICE_SERVERS: readonly [{
988
+ readonly urls: "stun:stun.l.google.com:19302";
989
+ }];
990
+ };
991
+ readonly MSE: {
992
+ readonly BUFFER_SIZE: number;
993
+ readonly BUFFER_WINDOW: 5;
994
+ };
995
+ readonly CODECS: {
996
+ readonly DEFAULT: readonly ["avc1.640029", "avc1.64002A", "avc1.640033", "hvc1.1.6.L153.B0", "mp4a.40.2", "mp4a.40.5", "flac", "opus"];
997
+ readonly WEBRTC_VIDEO: readonly ["H264", "VP8", "VP9"];
998
+ readonly WEBRTC_AUDIO: readonly ["opus", "G722", "PCMU", "PCMA"];
999
+ };
1000
+ };
1001
+
1002
+ export declare interface StreamOptions {
1003
+ camera: MaybeRefOrGetter<ReactiveCameraDevice | undefined>;
1004
+ videoElement: MaybeRefOrGetter<HTMLVideoElement | undefined | null>;
1005
+ mode?: MaybeRefOrGetter<VideoStreamingMode>;
1006
+ resolution?: MaybeRefOrGetter<StreamingRole>;
1007
+ autoStart?: boolean;
1008
+ manageLifecycle?: boolean;
1009
+ wsReconnectTimeout?: number;
1010
+ webrtcConnectTimeout?: number;
1011
+ }
1012
+
1013
+ export declare type StreamStatus = 'idle' | 'connecting' | 'connected' | 'reconnecting' | 'error' | 'closed';
1014
+
1015
+ /* Excluded from this release type: SwitchControlProperties */
1016
+
1017
+ /* Excluded from this release type: SwitchProperty */
1018
+
1019
+ /* Excluded from this release type: TemperatureInfoProperties */
1020
+
1021
+ /* Excluded from this release type: TemperatureProperty */
1022
+
1023
+ export declare interface TerminalManagerInterface {
1024
+ createSession(options?: TerminalOptions): Promise<TerminalSessionInfo>;
1025
+ generateOutput(sessionId: string): AsyncGenerator<Uint8Array>;
1026
+ writeInput(sessionId: string, data: string): Promise<void>;
1027
+ resize(sessionId: string, dimensions: { cols: number; rows: number }): Promise<void>;
1028
+ closeSession(sessionId: string): Promise<void>;
1029
+ }
1030
+
1031
+ export declare interface TerminalManagerNamespaces {
1032
+ terminalManagerSubject: string;
1033
+ terminalManagerRpc: string;
1034
+ }
1035
+
1036
+ export declare interface TerminalOptions {
1037
+ cols?: number;
1038
+ rows?: number;
1039
+ cwd?: string;
1040
+ shell?: string;
1041
+ env?: Record<string, string>;
1042
+ }
1043
+
1044
+ export declare interface TerminalSessionInfo {
1045
+ sessionId: string;
1046
+ pid: number;
1047
+ dimensions: { cols: number; rows: number };
1048
+ }
1049
+
1050
+ export declare function useAudioSensor(camera: CameraIdentifier): UseSensorTypedReturn<ReactiveAudioSensor>;
1051
+
1052
+ export declare function useCameraById(cameraIdOrName: MaybeRefOrGetter<string>): UseCameraByIdReturn;
1053
+
1054
+ export declare interface UseCameraByIdReturn {
1055
+ camera: ShallowRef<ReactiveCameraDevice | undefined>;
1056
+ isLoading: ComputedRef<boolean>;
1057
+ error: Ref<Error | undefined>;
1058
+ refresh: () => Promise<void>;
1059
+ }
1060
+
1061
+ export declare function useCameraStorage(camera: CameraIdentifier, pluginName: MaybeRefOrGetter<string>): UseStorageReturn;
1062
+
1063
+ export declare function useCameraStream(options: UseCameraStreamOptions): CameraStream;
1064
+
1065
+ export declare interface UseCameraStreamOptions {
1066
+ camera: MaybeRefOrGetter<string | ReactiveCameraDevice>;
1067
+ mode?: MaybeRefOrGetter<VideoStreamingMode>;
1068
+ resolution?: MaybeRefOrGetter<StreamingRole>;
1069
+ activityMode?: MaybeRefOrGetter<CameraActivityMode>;
1070
+ activityConfig?: ActivityModeConfig;
1071
+ autoStart?: MaybeRefOrGetter<boolean>;
1072
+ startDelay?: number;
1073
+ isolated?: boolean;
1074
+ canvasStyle?: MaybeRefOrGetter<HTMLAttributes['style']>;
1075
+ canvasClass?: MaybeRefOrGetter<HTMLAttributes['class']>;
1076
+ videoStyle?: MaybeRefOrGetter<HTMLAttributes['style']>;
1077
+ videoClass?: MaybeRefOrGetter<HTMLAttributes['class']>;
1078
+ }
1079
+
1080
+ export declare function useCameraUi(): CameraUiContext;
1081
+
1082
+ export declare function useClassifierSensors(camera: CameraIdentifier): UseSensorsTypedReturn<ReactiveClassifierSensor>;
1083
+
1084
+ export declare function useCoreManager(): ReactiveCoreManager;
1085
+
1086
+ export declare function useCuiFullscreen(target: MaybeRefOrGetter<HTMLElement | null | undefined>, options?: UseCuiFullscreenOptions): UseCuiFullscreenReturn;
1087
+
1088
+ export declare interface UseCuiFullscreenOptions {
1089
+ mode?: FullscreenMode;
1090
+ }
1091
+
1092
+ export declare interface UseCuiFullscreenReturn {
1093
+ readonly isFullscreen: ComputedRef<boolean>;
1094
+ readonly isSupported: ComputedRef<boolean>;
1095
+ enter: () => Promise<void>;
1096
+ exit: () => Promise<void>;
1097
+ toggle: () => Promise<void>;
1098
+ }
1099
+
1100
+ export declare function useDeviceManager(): ReactiveDeviceManager;
1101
+
1102
+ export declare function useFaceSensor(camera: CameraIdentifier): UseSensorTypedReturn<ReactiveFaceSensor>;
1103
+
1104
+ export declare function useLicensePlateSensor(camera: CameraIdentifier): UseSensorTypedReturn<ReactiveLicensePlateSensor>;
1105
+
1106
+ export declare function useMotionSensor(camera: CameraIdentifier): UseSensorTypedReturn<ReactiveMotionSensor>;
1107
+
1108
+ export declare function useOAuth(pluginName: string): UseOAuthReturn;
1109
+
1110
+ export declare interface UseOAuthReturn {
1111
+ readonly state: Ref<OAuthState>;
1112
+ readonly metadata: Ref<OAuthMetadata | null>;
1113
+ startDeviceFlow(scope: string[]): Promise<void>;
1114
+ startAuthCodeFlow(scope: string[]): Promise<void>;
1115
+ cancel(): Promise<void>;
1116
+ disconnect(): Promise<void>;
1117
+ refresh(): Promise<void>;
1118
+ }
1119
+
1120
+ export declare function useObjectSensor(camera: CameraIdentifier): UseSensorTypedReturn<ReactiveObjectSensor>;
1121
+
1122
+ export declare function usePlugin(pluginName: MaybeRefOrGetter<string>): UsePluginReturn;
1123
+
1124
+ export declare interface UsePluginReturn {
1125
+ plugin: ShallowRef<Promisify<BasePlugin & PluginInterfaces> | undefined>;
1126
+ contract: Ref<PluginContract | undefined>;
1127
+ isLoading: ComputedRef<boolean>;
1128
+ error: Ref<Error | undefined>;
1129
+ refresh: () => Promise<void>;
1130
+ }
1131
+
1132
+ export declare function usePluginStorage(pluginName: MaybeRefOrGetter<string>): UseStorageReturn;
1133
+
1134
+ export declare function usePTZControl(camera: CameraIdentifier): UseSensorTypedReturn<ReactivePTZControl>;
1135
+
1136
+ export declare function useRpcCall<T>(fn: (rpc: RPCClient) => Promise<T>, options?: UseRpcCallOptions): UseRpcCallReturn<T>;
1137
+
1138
+ export declare interface UseRpcCallOptions extends RpcCallOptions {
1139
+ immediate?: boolean;
1140
+ watch?: WatchSource[];
1141
+ refetchOnReconnect?: boolean;
1142
+ }
1143
+
1144
+ export declare interface UseRpcCallReturn<T> {
1145
+ readonly data: ShallowRef<T | undefined>;
1146
+ readonly loading: Ref<boolean>;
1147
+ readonly error: Ref<Error | undefined>;
1148
+ execute(): Promise<T | undefined>;
1149
+ refresh(): Promise<T | undefined>;
1150
+ }
1151
+
1152
+ export declare function useRpcSubscription(subscribeFn: (rpc: RPCClient) => Promise<() => void>, options?: UseRpcSubscriptionOptions): UseRpcSubscriptionReturn;
1153
+
1154
+ export declare interface UseRpcSubscriptionOptions {
1155
+ onError?: (err: unknown) => void;
1156
+ maxRetries?: number;
1157
+ retryDelayMs?: (attempt: number) => number;
1158
+ }
1159
+
1160
+ export declare interface UseRpcSubscriptionReturn {
1161
+ readonly isActive: Ref<boolean>;
1162
+ resubscribe(): Promise<void>;
1163
+ }
1164
+
1165
+ export declare function useSensorById(camera: CameraIdentifier, sensorId: MaybeRefOrGetter<string | undefined>): UseSensorReturn;
1166
+
1167
+ export declare function useSensorByType(camera: CameraIdentifier, sensorType: MaybeRefOrGetter<SensorType>): UseSensorReturn;
1168
+
1169
+ export declare interface UseSensorReturn {
1170
+ sensor: ShallowRef<ReactiveSensor<any> | undefined>;
1171
+ isLoading: ComputedRef<boolean>;
1172
+ error: Ref<Error | undefined>;
1173
+ }
1174
+
1175
+ export declare function useSensors(camera: CameraIdentifier): UseSensorsReturn;
1176
+
1177
+ export declare function useSensorsByType(camera: CameraIdentifier, sensorType: MaybeRefOrGetter<SensorType>): UseSensorsReturn;
1178
+
1179
+ export declare interface UseSensorsReturn {
1180
+ sensors: ComputedRef<ReactiveSensor<any>[]>;
1181
+ isLoading: ComputedRef<boolean>;
1182
+ error: Ref<Error | undefined>;
1183
+ }
1184
+
1185
+ export declare function useSensorStorage(camera: CameraIdentifier, sensorId: MaybeRefOrGetter<string | undefined>, pluginId: MaybeRefOrGetter<string | undefined>): UseStorageReturn;
1186
+
1187
+ export declare interface UseSensorsTypedReturn<T extends ReactiveSensor<any> = ReactiveSensor> {
1188
+ sensors: ComputedRef<T[]>;
1189
+ isLoading: ComputedRef<boolean>;
1190
+ error: Ref<Error | undefined>;
1191
+ }
1192
+
1193
+ export declare interface UseSensorTypedReturn<T extends ReactiveSensor<any> = ReactiveSensor<any>> {
1194
+ sensor: ShallowRef<T | undefined>;
1195
+ isLoading: ComputedRef<boolean>;
1196
+ error: Ref<Error | undefined>;
1197
+ }
1198
+
1199
+ export declare function useSnapshot(cameraIdOrName: MaybeRefOrGetter<string | DBCamera>): UseSnapshotReturn;
1200
+
1201
+ export declare interface UseSnapshotReturn {
1202
+ snapshot: ShallowRef<ArrayBuffer | undefined>;
1203
+ snapshotSrc: ComputedRef<string | undefined>;
1204
+ isLoading: ComputedRef<boolean>;
1205
+ refresh: () => Promise<void>;
1206
+ }
1207
+
1208
+ export declare interface UseStorageReturn {
1209
+ config: ShallowRef<SchemaConfig | undefined>;
1210
+ isLoading: ComputedRef<boolean>;
1211
+ error: Ref<Error | undefined>;
1212
+ getConfig(): Promise<SchemaConfig | undefined>;
1213
+ setValue<T = unknown>(key: string, value: T): Promise<void>;
1214
+ setConfig(newConfig: Record<string, unknown>): Promise<void>;
1215
+ submitValue(key: string, value: unknown): Promise<FormSubmitResponse | void>;
1216
+ isConnected: Ref<boolean>;
1217
+ }
1218
+
1219
+ export declare function useTabVisibility(): UseTabVisibilityReturn;
1220
+
1221
+ export declare interface UseTabVisibilityReturn {
1222
+ readonly isVisible: ComputedRef<boolean>;
1223
+ onTabHidden(cb: HiddenCallback): () => void;
1224
+ onTabPaused(cb: HiddenCallback, options?: {
1225
+ delayMs?: number;
1226
+ }): () => void;
1227
+ onTabVisible(cb: VisibleCallback): () => void;
1228
+ }
1229
+
1230
+ export declare function useTerminal(): UseTerminalReturn;
1231
+
1232
+ export declare interface UseTerminalOptions extends TerminalOptions {
1233
+ onData?: (data: Uint8Array) => void;
1234
+ onClose?: () => void;
1235
+ onError?: (error: Error) => void;
1236
+ }
1237
+
1238
+ export declare interface UseTerminalReturn {
1239
+ sessionId: Readonly<ShallowRef<string | undefined>>;
1240
+ isConnected: Readonly<Ref<boolean>>;
1241
+ isConnecting: Readonly<Ref<boolean>>;
1242
+ isClientConnected: Readonly<Ref<boolean>>;
1243
+ error: Readonly<Ref<Error | undefined>>;
1244
+ dimensions: Readonly<Ref<{
1245
+ cols: number;
1246
+ rows: number;
1247
+ }>>;
1248
+ connect: (options?: UseTerminalOptions) => Promise<void>;
1249
+ write: (data: string) => Promise<void>;
1250
+ resize: (dimensions: {
1251
+ cols: number;
1252
+ rows: number;
1253
+ }) => Promise<void>;
1254
+ close: () => Promise<void>;
1255
+ }
1256
+
1257
+ export declare function useTopmostFullscreenElement(): ComputedRef<HTMLElement | null>;
1258
+
1259
+ export declare type VideoStreamingMode = 'webrtc' | 'webrtc/tcp' | 'mse' | 'auto';
1260
+
1261
+ declare type VisibleCallback = (info: {
1262
+ hiddenMs: number;
1263
+ }) => void;
1264
+
1265
+
1266
+ export * from "@camera.ui/sdk";
1267
+ export * from "@camera.ui/sdk/internal";
1268
+
1269
+ export { }