@qontinui/ui-bridge-native 0.1.6 → 0.2.1
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.
- package/dist/control/{action-executor.d.ts → index.d.mts} +14 -6
- package/dist/control/index.d.ts +95 -5
- package/dist/control/index.js +74 -11
- package/dist/control/index.js.map +1 -1
- package/dist/control/index.mjs +74 -11
- package/dist/control/index.mjs.map +1 -1
- package/dist/core/index.d.mts +46 -0
- package/dist/core/index.d.ts +43 -6
- package/dist/core/index.js +108 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +108 -2
- package/dist/core/index.mjs.map +1 -1
- package/dist/debug/{inspector.d.ts → index.d.mts} +6 -3
- package/dist/debug/index.d.ts +44 -4
- package/dist/debug/index.js +2 -2
- package/dist/debug/index.js.map +1 -1
- package/dist/debug/index.mjs +2 -2
- package/dist/debug/index.mjs.map +1 -1
- package/dist/design/{design-inspector-native.d.ts → index.d.mts} +11 -7
- package/dist/design/index.d.ts +60 -5
- package/dist/{design/design-types.d.ts → design-types-BHr6Q1FX.d.mts} +11 -10
- package/dist/design-types-BHr6Q1FX.d.ts +205 -0
- package/dist/http-server-D2U1k48d.d.mts +703 -0
- package/dist/http-server-ck8clUsZ.d.ts +703 -0
- package/dist/index.d.mts +89 -0
- package/dist/index.d.ts +86 -28
- package/dist/index.js +754 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +749 -51
- package/dist/index.mjs.map +1 -1
- package/dist/react/{useAutoRegister.d.ts → index.d.mts} +15 -7
- package/dist/react/index.d.ts +69 -8
- package/dist/react/index.js +733 -50
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +731 -51
- package/dist/react/index.mjs.map +1 -1
- package/dist/{core/registry.d.ts → registry-BxXaxmsT.d.ts} +51 -10
- package/dist/registry-KdUW_koV.d.mts +253 -0
- package/dist/server/index.d.mts +119 -0
- package/dist/server/index.d.ts +117 -13
- package/dist/server/index.js +272 -16
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +272 -16
- package/dist/server/index.mjs.map +1 -1
- package/dist/{core/types.d.ts → types-BwdPNpII.d.mts} +172 -30
- package/dist/types-BwdPNpII.d.ts +525 -0
- package/dist/{control/types.d.ts → types-DCEv5qb6.d.ts} +36 -15
- package/dist/types-DjB0zJJH.d.mts +197 -0
- package/dist/useUIBridgeToast-BPIEbsEc.d.mts +726 -0
- package/dist/useUIBridgeToast-DD13oF3k.d.ts +726 -0
- package/package.json +2 -2
- package/dist/control/action-executor.d.ts.map +0 -1
- package/dist/control/index.d.ts.map +0 -1
- package/dist/control/types.d.ts.map +0 -1
- package/dist/core/element-identifier.d.ts +0 -41
- package/dist/core/element-identifier.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/registry.d.ts.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug/inspector.d.ts.map +0 -1
- package/dist/design/design-inspector-native.d.ts.map +0 -1
- package/dist/design/design-types.d.ts.map +0 -1
- package/dist/design/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/react/UIBridgeNativeProvider.d.ts +0 -147
- package/dist/react/UIBridgeNativeProvider.d.ts.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/useAutoRegister.d.ts.map +0 -1
- package/dist/react/useUIBridge.d.ts +0 -103
- package/dist/react/useUIBridge.d.ts.map +0 -1
- package/dist/react/useUIComponent.d.ts +0 -112
- package/dist/react/useUIComponent.d.ts.map +0 -1
- package/dist/react/useUIElement.d.ts +0 -162
- package/dist/react/useUIElement.d.ts.map +0 -1
- package/dist/server/design-handlers.d.ts +0 -47
- package/dist/server/design-handlers.d.ts.map +0 -1
- package/dist/server/handlers.d.ts +0 -20
- package/dist/server/handlers.d.ts.map +0 -1
- package/dist/server/http-server.d.ts +0 -247
- package/dist/server/http-server.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/types.d.ts +0 -200
- package/dist/server/types.d.ts.map +0 -1
- package/dist/server/ws-connection.d.ts +0 -48
- package/dist/server/ws-connection.d.ts.map +0 -1
- package/dist/server/ws-event-bridge.d.ts +0 -113
- package/dist/server/ws-event-bridge.d.ts.map +0 -1
- package/dist/server/ws-protocol.d.ts +0 -48
- package/dist/server/ws-protocol.d.ts.map +0 -1
- package/dist/server/ws-types.d.ts +0 -65
- package/dist/server/ws-types.d.ts.map +0 -1
- package/dist/transport/CloudRelayClient.d.ts +0 -51
- package/dist/transport/CloudRelayClient.d.ts.map +0 -1
- package/dist/transport/DeviceAnnouncer.d.ts +0 -75
- package/dist/transport/DeviceAnnouncer.d.ts.map +0 -1
- package/dist/transport/index.d.ts +0 -3
- package/dist/transport/index.d.ts.map +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export { A as ActionHandler, B as BridgeEvent, a as BridgeEventListener, b as BridgeEventType, C as ComponentAction, c as CustomAction, D as DiscoveredNativeElement, N as NativeActionRequest, d as NativeActionResponse, e as NativeBridgeSnapshot, f as NativeCapturedToast, g as NativeComponentAction, h as NativeCustomAction, i as NativeElementIdentifier, j as NativeElementRef, k as NativeElementState, l as NativeElementType, m as NativeFindRequest, n as NativeFindResponse, o as NativeLayout, p as NativeModalInfo, q as NativeRegistrationCoverage, r as NativeSnapshotEnricher, s as NativeSnapshotEnrichers, t as NativeSnapshotModalContext, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, w as NativeStandardAction, x as NativeUIBridgeConfig, y as NativeUIBridgeFeatures, R as RegisteredNativeComponent, z as RegisteredNativeElement, W as WaitOptions, E as Workflow, F as WorkflowStep, G as WorkflowStepType } from './types-BwdPNpII.mjs';
|
|
2
|
+
export { N as NativeRegistryConfig, a as NativeUIBridgeRegistry, R as RegisterComponentOptions, b as RegisterElementOptions, e as extractHandlerNames, g as getGlobalRegistry, r as resetGlobalRegistry, s as setGlobalRegistry } from './registry-KdUW_koV.mjs';
|
|
3
|
+
export { buildTreePath, createNativeElementIdentifier, findAllByPattern, findElementByIdentifier, matchesIdentifier, parseTreePath } from './core/index.mjs';
|
|
4
|
+
export { A as ActionRecord, C as CloudRelayClient, a as CloudRelayConfig, b as ComponentActionDef, c as ComponentActionRequest, d as ComponentActionResponse, D as DeclaredUndoState, M as ModalDetector, e as ModalPushInput, T as ToastCapture, f as ToastCaptureConfig, g as ToastRecordInput, h as ToastRecorderInput, U as UIBridgeNativeContextValue, i as UIBridgeNativeProvider, j as UIBridgeNativeProviderProps, k as UIBridgeProps, l as UndoTracker, m as UndoTrackerConfig, n as UseUIBridgeModalOptions, o as UseUIBridgeReturn, p as UseUIBridgeToastOptions, q as UseUIComponentOptions, r as UseUIComponentReturn, s as UseUIElementOptions, t as UseUIElementReturn, u as UseUIElementWithPropsReturn, v as useToastRecorder, w as useUIBridge, x as useUIBridgeModal, y as useUIBridgeNative, z as useUIBridgeNativeOptional, B as useUIBridgeNativeRequired, E as useUIBridgeRequired, F as useUIBridgeToast, G as useUIComponent, H as useUIComponentAction, I as useUIElement, J as useUIElementWithProps } from './useUIBridgeToast-BPIEbsEc.mjs';
|
|
5
|
+
export { A as ActionExecutionOptions, C as ControlActionRequest, a as ControlActionResponse, b as ControlComponentActionRequest, c as ControlComponentActionResponse, N as NativeActionExecutor, P as PressActionParams, S as ScrollActionParams, d as SwipeActionParams, T as TypeActionParams, W as WaitResult } from './types-DjB0zJJH.mjs';
|
|
6
|
+
export { DefaultNativeActionExecutor, createNativeActionExecutor } from './control/index.mjs';
|
|
7
|
+
export { A as APIResponse, F as FillFormFieldInput, a as FillFormFieldResult, b as FillFormRequest, c as FillFormResponse, H as HTTPRequest, d as HTTPResponse, e as HandlerContext, f as HandlerFunction, J as JsonRpcBatchRequest, g as JsonRpcBatchResponse, h as JsonRpcEvent, i as JsonRpcRequest, j as JsonRpcResponse, N as NativeServerConfig, k as NativeServerHandlers, l as NativeUIBridgeServer, m as NavigationProvider, R as RequestHandler, n as RouteDefinition, o as RouteProvider, S as ScreenshotProvider, p as ServerAdapter, U as UI_BRIDGE_NATIVE_ROUTES, W as WebSocketConnection, q as WebSocketEventBridge, r as WebSocketMessageHandler, s as WebSocketServerAdapter, t as createNativeServer } from './http-server-D2U1k48d.mjs';
|
|
8
|
+
export { NativeDesignHandlers, buildUpgradeResponse, computeAcceptKey, createDesignHandlers, createServerHandlers } from './server/index.mjs';
|
|
9
|
+
export { E as ElementDesignData, a as ExtendedComputedStyles, F as FlattenedNativeStyle, N as NativeInteractionStateName, b as NativeStateStyles, P as PseudoElementStyles, R as ResponsiveSnapshot, S as StateStyles, c as StyleDiff } from './design-types-BHr6Q1FX.mjs';
|
|
10
|
+
export { captureNativeResponsiveSnapshot, captureNativeStateVariations, getNativeElementDesignData, mapNativeStyleToExtended } from './design/index.mjs';
|
|
11
|
+
export { UIBridgeInspector, UIBridgeInspectorProps } from './debug/index.mjs';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
13
|
+
import 'react';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Device Announcer — mDNS + Cloud registration for physical device discovery
|
|
17
|
+
*
|
|
18
|
+
* Announces the UI Bridge service on the local network via mDNS (when
|
|
19
|
+
* react-native-zeroconf is available) and optionally registers with the
|
|
20
|
+
* cloud relay backend.
|
|
21
|
+
*/
|
|
22
|
+
interface AnnouncerConfig {
|
|
23
|
+
/** Stable device identifier */
|
|
24
|
+
deviceId: string;
|
|
25
|
+
/** App bundle/package ID */
|
|
26
|
+
appId: string;
|
|
27
|
+
/** UI Bridge server port (default 8087) */
|
|
28
|
+
port?: number;
|
|
29
|
+
/** Cloud relay WebSocket URL for registration */
|
|
30
|
+
cloudRelayUrl?: string;
|
|
31
|
+
/** Auth token for cloud relay */
|
|
32
|
+
cloudToken?: string;
|
|
33
|
+
/** UI Bridge SDK version */
|
|
34
|
+
version?: string;
|
|
35
|
+
}
|
|
36
|
+
interface DeviceAnnouncerState {
|
|
37
|
+
mdnsActive: boolean;
|
|
38
|
+
cloudConnected: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Minimal interface for the react-native-zeroconf Zeroconf instance */
|
|
41
|
+
interface ZeroconfService {
|
|
42
|
+
publishService(type: string, protocol: string, domain: string, name: string, port: number, txtRecord: Record<string, string>): void;
|
|
43
|
+
unpublishService(name: string): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Announces the UI Bridge server on the local network (mDNS) and optionally
|
|
47
|
+
* registers with the qontinui.io cloud relay for remote discovery.
|
|
48
|
+
*/
|
|
49
|
+
declare class DeviceAnnouncer {
|
|
50
|
+
private config;
|
|
51
|
+
private state;
|
|
52
|
+
private cloudWs;
|
|
53
|
+
private reconnectTimer;
|
|
54
|
+
private reconnectDelay;
|
|
55
|
+
private stopped;
|
|
56
|
+
/** Zeroconf instance, set when mDNS is successfully started */
|
|
57
|
+
private zeroconf;
|
|
58
|
+
/** Rotated pairing token for mDNS TXT records */
|
|
59
|
+
private pairingToken;
|
|
60
|
+
constructor(config: AnnouncerConfig);
|
|
61
|
+
/**
|
|
62
|
+
* Start mDNS advertisement.
|
|
63
|
+
*
|
|
64
|
+
* The consumer must pass the `Zeroconf` constructor (from `react-native-zeroconf`)
|
|
65
|
+
* explicitly; otherwise this is a no-op.
|
|
66
|
+
*
|
|
67
|
+
* Rationale: Metro's `require()` throws an uncatchable module-load error if the
|
|
68
|
+
* bundle doesn't include the named package. That error escapes async try/catch
|
|
69
|
+
* boundaries and crashes the app. We avoid it by never calling `require()`
|
|
70
|
+
* ourselves — the consumer imports the package when they know it's installed.
|
|
71
|
+
*
|
|
72
|
+
* @param ZeroconfCtor - constructor from `import Zeroconf from 'react-native-zeroconf'`
|
|
73
|
+
*/
|
|
74
|
+
startMdnsAdvertise(ZeroconfCtor?: new () => ZeroconfService): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Connect to the cloud relay WebSocket and send a device_register message.
|
|
77
|
+
*
|
|
78
|
+
* Reconnects automatically with exponential backoff (2 s → 60 s) if the
|
|
79
|
+
* connection drops.
|
|
80
|
+
*/
|
|
81
|
+
connectCloudRelay(): Promise<void>;
|
|
82
|
+
/** Stop all advertising and registration. */
|
|
83
|
+
stop(): Promise<void>;
|
|
84
|
+
/** Return a copy of the current announcer state. */
|
|
85
|
+
getState(): DeviceAnnouncerState;
|
|
86
|
+
private scheduleReconnect;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { type AnnouncerConfig, DeviceAnnouncer, type DeviceAnnouncerState };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,89 @@
|
|
|
1
|
+
export { A as ActionHandler, B as BridgeEvent, a as BridgeEventListener, b as BridgeEventType, C as ComponentAction, c as CustomAction, D as DiscoveredNativeElement, N as NativeActionRequest, d as NativeActionResponse, e as NativeBridgeSnapshot, f as NativeCapturedToast, g as NativeComponentAction, h as NativeCustomAction, i as NativeElementIdentifier, j as NativeElementRef, k as NativeElementState, l as NativeElementType, m as NativeFindRequest, n as NativeFindResponse, o as NativeLayout, p as NativeModalInfo, q as NativeRegistrationCoverage, r as NativeSnapshotEnricher, s as NativeSnapshotEnrichers, t as NativeSnapshotModalContext, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, w as NativeStandardAction, x as NativeUIBridgeConfig, y as NativeUIBridgeFeatures, R as RegisteredNativeComponent, z as RegisteredNativeElement, W as WaitOptions, E as Workflow, F as WorkflowStep, G as WorkflowStepType } from './types-BwdPNpII.js';
|
|
2
|
+
export { N as NativeRegistryConfig, a as NativeUIBridgeRegistry, R as RegisterComponentOptions, b as RegisterElementOptions, e as extractHandlerNames, g as getGlobalRegistry, r as resetGlobalRegistry, s as setGlobalRegistry } from './registry-BxXaxmsT.js';
|
|
3
|
+
export { buildTreePath, createNativeElementIdentifier, findAllByPattern, findElementByIdentifier, matchesIdentifier, parseTreePath } from './core/index.js';
|
|
4
|
+
export { A as ActionRecord, C as CloudRelayClient, a as CloudRelayConfig, b as ComponentActionDef, c as ComponentActionRequest, d as ComponentActionResponse, D as DeclaredUndoState, M as ModalDetector, e as ModalPushInput, T as ToastCapture, f as ToastCaptureConfig, g as ToastRecordInput, h as ToastRecorderInput, U as UIBridgeNativeContextValue, i as UIBridgeNativeProvider, j as UIBridgeNativeProviderProps, k as UIBridgeProps, l as UndoTracker, m as UndoTrackerConfig, n as UseUIBridgeModalOptions, o as UseUIBridgeReturn, p as UseUIBridgeToastOptions, q as UseUIComponentOptions, r as UseUIComponentReturn, s as UseUIElementOptions, t as UseUIElementReturn, u as UseUIElementWithPropsReturn, v as useToastRecorder, w as useUIBridge, x as useUIBridgeModal, y as useUIBridgeNative, z as useUIBridgeNativeOptional, B as useUIBridgeNativeRequired, E as useUIBridgeRequired, F as useUIBridgeToast, G as useUIComponent, H as useUIComponentAction, I as useUIElement, J as useUIElementWithProps } from './useUIBridgeToast-DD13oF3k.js';
|
|
5
|
+
export { A as ActionExecutionOptions, C as ControlActionRequest, a as ControlActionResponse, b as ControlComponentActionRequest, c as ControlComponentActionResponse, N as NativeActionExecutor, P as PressActionParams, S as ScrollActionParams, d as SwipeActionParams, T as TypeActionParams, W as WaitResult } from './types-DCEv5qb6.js';
|
|
6
|
+
export { DefaultNativeActionExecutor, createNativeActionExecutor } from './control/index.js';
|
|
7
|
+
export { A as APIResponse, F as FillFormFieldInput, a as FillFormFieldResult, b as FillFormRequest, c as FillFormResponse, H as HTTPRequest, d as HTTPResponse, e as HandlerContext, f as HandlerFunction, J as JsonRpcBatchRequest, g as JsonRpcBatchResponse, h as JsonRpcEvent, i as JsonRpcRequest, j as JsonRpcResponse, N as NativeServerConfig, k as NativeServerHandlers, l as NativeUIBridgeServer, m as NavigationProvider, R as RequestHandler, n as RouteDefinition, o as RouteProvider, S as ScreenshotProvider, p as ServerAdapter, U as UI_BRIDGE_NATIVE_ROUTES, W as WebSocketConnection, q as WebSocketEventBridge, r as WebSocketMessageHandler, s as WebSocketServerAdapter, t as createNativeServer } from './http-server-ck8clUsZ.js';
|
|
8
|
+
export { NativeDesignHandlers, buildUpgradeResponse, computeAcceptKey, createDesignHandlers, createServerHandlers } from './server/index.js';
|
|
9
|
+
export { E as ElementDesignData, a as ExtendedComputedStyles, F as FlattenedNativeStyle, N as NativeInteractionStateName, b as NativeStateStyles, P as PseudoElementStyles, R as ResponsiveSnapshot, S as StateStyles, c as StyleDiff } from './design-types-BHr6Q1FX.js';
|
|
10
|
+
export { captureNativeResponsiveSnapshot, captureNativeStateVariations, getNativeElementDesignData, mapNativeStyleToExtended } from './design/index.js';
|
|
11
|
+
export { UIBridgeInspector, UIBridgeInspectorProps } from './debug/index.js';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
13
|
+
import 'react';
|
|
14
|
+
|
|
1
15
|
/**
|
|
2
|
-
*
|
|
16
|
+
* Device Announcer — mDNS + Cloud registration for physical device discovery
|
|
3
17
|
*
|
|
4
|
-
* UI Bridge
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
18
|
+
* Announces the UI Bridge service on the local network via mDNS (when
|
|
19
|
+
* react-native-zeroconf is available) and optionally registers with the
|
|
20
|
+
* cloud relay backend.
|
|
21
|
+
*/
|
|
22
|
+
interface AnnouncerConfig {
|
|
23
|
+
/** Stable device identifier */
|
|
24
|
+
deviceId: string;
|
|
25
|
+
/** App bundle/package ID */
|
|
26
|
+
appId: string;
|
|
27
|
+
/** UI Bridge server port (default 8087) */
|
|
28
|
+
port?: number;
|
|
29
|
+
/** Cloud relay WebSocket URL for registration */
|
|
30
|
+
cloudRelayUrl?: string;
|
|
31
|
+
/** Auth token for cloud relay */
|
|
32
|
+
cloudToken?: string;
|
|
33
|
+
/** UI Bridge SDK version */
|
|
34
|
+
version?: string;
|
|
35
|
+
}
|
|
36
|
+
interface DeviceAnnouncerState {
|
|
37
|
+
mdnsActive: boolean;
|
|
38
|
+
cloudConnected: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Minimal interface for the react-native-zeroconf Zeroconf instance */
|
|
41
|
+
interface ZeroconfService {
|
|
42
|
+
publishService(type: string, protocol: string, domain: string, name: string, port: number, txtRecord: Record<string, string>): void;
|
|
43
|
+
unpublishService(name: string): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Announces the UI Bridge server on the local network (mDNS) and optionally
|
|
47
|
+
* registers with the qontinui.io cloud relay for remote discovery.
|
|
8
48
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
49
|
+
declare class DeviceAnnouncer {
|
|
50
|
+
private config;
|
|
51
|
+
private state;
|
|
52
|
+
private cloudWs;
|
|
53
|
+
private reconnectTimer;
|
|
54
|
+
private reconnectDelay;
|
|
55
|
+
private stopped;
|
|
56
|
+
/** Zeroconf instance, set when mDNS is successfully started */
|
|
57
|
+
private zeroconf;
|
|
58
|
+
/** Rotated pairing token for mDNS TXT records */
|
|
59
|
+
private pairingToken;
|
|
60
|
+
constructor(config: AnnouncerConfig);
|
|
61
|
+
/**
|
|
62
|
+
* Start mDNS advertisement.
|
|
63
|
+
*
|
|
64
|
+
* The consumer must pass the `Zeroconf` constructor (from `react-native-zeroconf`)
|
|
65
|
+
* explicitly; otherwise this is a no-op.
|
|
66
|
+
*
|
|
67
|
+
* Rationale: Metro's `require()` throws an uncatchable module-load error if the
|
|
68
|
+
* bundle doesn't include the named package. That error escapes async try/catch
|
|
69
|
+
* boundaries and crashes the app. We avoid it by never calling `require()`
|
|
70
|
+
* ourselves — the consumer imports the package when they know it's installed.
|
|
71
|
+
*
|
|
72
|
+
* @param ZeroconfCtor - constructor from `import Zeroconf from 'react-native-zeroconf'`
|
|
73
|
+
*/
|
|
74
|
+
startMdnsAdvertise(ZeroconfCtor?: new () => ZeroconfService): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Connect to the cloud relay WebSocket and send a device_register message.
|
|
77
|
+
*
|
|
78
|
+
* Reconnects automatically with exponential backoff (2 s → 60 s) if the
|
|
79
|
+
* connection drops.
|
|
80
|
+
*/
|
|
81
|
+
connectCloudRelay(): Promise<void>;
|
|
82
|
+
/** Stop all advertising and registration. */
|
|
83
|
+
stop(): Promise<void>;
|
|
84
|
+
/** Return a copy of the current announcer state. */
|
|
85
|
+
getState(): DeviceAnnouncerState;
|
|
86
|
+
private scheduleReconnect;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { type AnnouncerConfig, DeviceAnnouncer, type DeviceAnnouncerState };
|