@avatarfactory/react 0.1.40

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.
@@ -0,0 +1,461 @@
1
+ import { RefObject, ReactNode } from 'react';
2
+ import { at as LipSyncConfig, au as LipSyncMotionConfig, av as UseAvatarResultWithPlayer, $ as TranscriptEntry, G as ConnectionHealth, d as ActionFlow, k as ActionUiOp, aw as BatchedTtsJob, ax as AvatarModeWithPlayer, ay as AvatarSurface, az as WidgetAction, aA as CommandOutcome, Y as TourStep, aB as AvatarConfigFromServer, S as ScreenSharePosition, F as CaptionPosition, O as StatusBannerPosition, Q as ThinkingIndicatorPosition, q as AvatarEnvironment, r as AvatarError, aC as AvatarConfigWithPlayer, aD as IBrowserHost, aE as PageHost, ab as WidgetDeploymentProjection, aF as AvatarHostProvider } from './AvatarProvider-BXaeG3PZ.mjs';
3
+ export { A as ActionAwaiting, a as ActionCheckResult, b as ActionContext, c as ActionDefinition, e as ActionFlowStage, f as ActionKind, g as ActionParam, h as ActionParamType, i as ActionResult, j as ActionUi, l as AppEventArgs, m as AppEventPolicy, n as Avatar, o as AvatarConnectingLoader, p as AvatarConnectingLoaderProps, s as AvatarErrorCode, t as AvatarErrorSource, u as AvatarEventMap, w as AvatarPublicProps, aG as AvatarSpeech, x as AvatarWidget, y as AvatarWidgetProps, B as BRIDGE_NAMESPACE, z as BRIDGE_VERSION, C as BridgeActionDeclaration, D as BridgeEnvelope, E as BridgeMessage, aH as BrowserCommand, aI as BrowserOutcome, H as HealthConcern, I as HealthService, J as HealthState, L as LoaderMessage, P as PaintPhase, R as RuntimeMessage, K as ScreenShareUiConfig, M as SessionPhase, N as StatusBannerConfig, T as ThinkingIndicatorConfig, V as TourHighlight, W as TourSide, X as TourState, Z as TourTarget, _ as TranscriptConfig, a0 as TranscriptSpeaker, a1 as TranscriptWord, a2 as TurnPhase, a3 as UseAvatarActionFlowResult, U as UseAvatarResult, a4 as UseAvatarWidgetResult, a5 as WIDGET_DEFAULTS, a6 as WidgetAppearance, a7 as WidgetBehaviour, a8 as WidgetBox, a9 as WidgetConfig, aa as WidgetContextPolicy, ac as WidgetLauncherStyle, ad as WidgetLimits, ae as WidgetMobileMode, af as WidgetOffset, ag as WidgetPanelSize, ah as WidgetPosition, ai as WidgetStage, aj as WidgetTeaser, ak as WidgetTour, al as buildEnvelope, am as parseBridgeMessage, an as postBridgeMessage, ao as resolveWidgetAppearance, ap as useAvatarAction, aq as useAvatarActionFlow, ar as useAvatarEvent, as as useAvatarWidget } from './AvatarProvider-BXaeG3PZ.mjs';
4
+ import { Rive } from '@rive-app/webgl2';
5
+ import { P as PageSurfaceCall } from './remotePageSurface-ao95kNYE.mjs';
6
+ export { I as IPageSurface, a as PageSurfaceTransport, b as PageUnreadable, c as createRemotePageSurface } from './remotePageSurface-ao95kNYE.mjs';
7
+ import * as react_jsx_runtime from 'react/jsx-runtime';
8
+
9
+ /** Per-rig mouth motion in engine-ready units, read every frame by both renderers' clock
10
+ * closures and all four engines. Mutated in place — never replaced. */
11
+ declare class LipSyncTuning {
12
+ speed: number;
13
+ /** Jaw-only, multiplied with `speed` in the engines — never a replacement. */
14
+ jawSpeed: number;
15
+ openness: number;
16
+ holdSec: number;
17
+ rest: number;
18
+ offsetSec: number;
19
+ /** Set by the runtime for its environment, never by a rig, so reset() leaves it. */
20
+ maxStepFrames: number;
21
+ /** Clamp and write in place, merging over what is already set. The only route by which
22
+ * a value reaches an engine. */
23
+ apply(config?: Partial<LipSyncConfig> | null): void;
24
+ /** Back to defaults, then apply. Used when a config arrives, so a reconnect can't
25
+ * inherit the previous session's live-tuned values for a field the wire omits. */
26
+ reset(config?: Partial<LipSyncConfig> | null): void;
27
+ /** Wire-shaped copy, for logging and for the studio's save. */
28
+ snapshot(): LipSyncMotionConfig;
29
+ }
30
+
31
+ /** Minimal snapshot store for values that change faster than the React tree should
32
+ * re-render. Read with useSyncExternalStore so only subscribers re-render. */
33
+ type ExternalStore<T> = {
34
+ subscribe: (listener: () => void) => () => void;
35
+ getSnapshot: () => T;
36
+ getServerSnapshot: () => T;
37
+ set: (next: T) => void;
38
+ };
39
+
40
+ /** What the renderer asks of the thing playing the avatar's voice. `WebAudioTtsPlayer`
41
+ * plays it here; a remote player follows audio played in another document (the
42
+ * extension's engine host) and only reports its clock. */
43
+ type SpeechPlayer = {
44
+ enqueueChunk(base64: string, alignmentStart: number): void;
45
+ enqueueSequentialChunk(base64: string): void;
46
+ /** Seconds into the utterance the listener is hearing now. */
47
+ getAlignmentTime(): number;
48
+ /** How far ahead audio is already scheduled, in the same seconds. */
49
+ getPlayableAlignmentTime(): number;
50
+ isPlaybackScheduled(): boolean;
51
+ isAudioActive(): boolean;
52
+ hasPendingAudio(): boolean;
53
+ getOutputLevel(): number;
54
+ pause(): void;
55
+ resume(): void;
56
+ setMuted(muted: boolean): void;
57
+ /** Sounds one beep now, over a swear word the voice left as a pause. */
58
+ playBeep(): void;
59
+ destroy(): void;
60
+ };
61
+ /** Builds the renderer's player. `onEnded` fires once the utterance has finished. */
62
+ type SpeechPlayerFactory = (onEnded: () => void, sharedCtx: AudioContext | null) => SpeechPlayer;
63
+
64
+ type RigBinding = "input" | "data-binding";
65
+ type RigValueKind = "number" | "boolean" | "trigger" | "enum" | "color" | "string";
66
+ /** A state-machine input, or a view-model property. */
67
+ type RigValueSource = "input" | "property";
68
+ type RigValueData = number | boolean | string | null;
69
+ interface RigValue {
70
+ /** Nested view-model properties are joined with "/": "Face/blink". */
71
+ path: string;
72
+ kind: RigValueKind;
73
+ source: RigValueSource;
74
+ /** Null for a trigger, which holds nothing between fires. Colors are ARGB numbers. */
75
+ value: RigValueData;
76
+ /** A mouth-shape slot, rewritten every frame while the avatar speaks. */
77
+ isViseme: boolean;
78
+ }
79
+ type RigActivityEvent = {
80
+ type: "snapshot";
81
+ binding: RigBinding;
82
+ stateMachine: string | null;
83
+ values: RigValue[];
84
+ } | {
85
+ type: "change";
86
+ value: RigValue;
87
+ previous: RigValueData;
88
+ } | {
89
+ type: "trigger";
90
+ path: string;
91
+ source: RigValueSource;
92
+ }
93
+ /** The SDK asked the rig for a gesture; `target` is the input or property it drives. */
94
+ | {
95
+ type: "gesture";
96
+ name: string;
97
+ target: string;
98
+ }
99
+ /** The SDK set one of its own controls (talking/listening); `landed` false means the
100
+ * rig has no value by that name. */
101
+ | {
102
+ type: "write";
103
+ path: string;
104
+ value: RigValueData;
105
+ landed: boolean;
106
+ } | {
107
+ type: "detached";
108
+ };
109
+ type RigActivityListener = (event: RigActivityEvent) => void;
110
+ interface RigTarget {
111
+ rive: Rive;
112
+ binding: RigBinding;
113
+ stateMachine?: string;
114
+ }
115
+ /**
116
+ * One per provider. Readers get values only — never the Rive instance — and the rig is
117
+ * sampled only while someone is subscribed.
118
+ */
119
+ declare class RigActivityHub {
120
+ private readonly listeners;
121
+ private watcher;
122
+ subscribe: (listener: RigActivityListener) => (() => void);
123
+ attach(target: RigTarget): void;
124
+ /** Before the instance is freed: a read after that kills the frame loop. */
125
+ detach(): void;
126
+ /** State-machine triggers hold no value, so only the code firing them can tell. */
127
+ reportTrigger(path: string): void;
128
+ reportGesture(name: string, target: string): void;
129
+ reportWrite(path: string, value: RigValueData, landed: boolean): void;
130
+ private emit;
131
+ }
132
+
133
+ /** One-shot gesture command passed from the hook to the renderer. The token increments on
134
+ * every triggerAction() call, so firing the same gesture twice still lands. */
135
+ type GestureCommand = {
136
+ name: string;
137
+ token: number;
138
+ atMs?: number;
139
+ /** Server-authoritative; when absent the renderer infers it from active audio. */
140
+ speechless?: boolean;
141
+ /** A sound, not a rig trigger: scheduled the same way, played by the audio player. */
142
+ beep?: true;
143
+ };
144
+ /** `stream` is non-null only while video is LIVE; `sessionOpen` stays true while video
145
+ * is off, so the panel persists. */
146
+ type CameraState = {
147
+ stream: MediaStream | null;
148
+ facing: "user" | "environment";
149
+ sessionOpen: boolean;
150
+ toggleVideo: () => void;
151
+ flip: () => void;
152
+ /** The "Detect mood" switch; null when this session cannot read mood. */
153
+ mood: {
154
+ on: boolean;
155
+ toggle: () => void;
156
+ } | null;
157
+ };
158
+ /** The screen share the built-in prompt renders. `share` must run inside a click. */
159
+ type ScreenShareState = {
160
+ phase: "idle" | "awaiting_click" | "picking" | "live";
161
+ share: () => void;
162
+ dismiss: () => void;
163
+ stop: () => void;
164
+ };
165
+ /** `pause`/`resume` are the barge-in's soft hold; `reset` tears the turn's pipeline
166
+ * down for the next job to rebuild. */
167
+ type PlaybackControls = {
168
+ pause: () => void;
169
+ resume: () => void;
170
+ reset: () => void;
171
+ /** Playback RMS right now, so barge-in telemetry can tell echo from a person. */
172
+ getOutputLevel: () => number;
173
+ /** Audio still scheduled, decoded or mid-decode. The authority on "the avatar is
174
+ * still talking" — React state lags it by a render and a drain timeout. */
175
+ hasPendingAudio: () => boolean;
176
+ };
177
+ /** Served as stores, not state: they update several times a second and would otherwise
178
+ * re-render every context consumer. */
179
+ type UseAvatarInternalResult = Omit<UseAvatarResultWithPlayer, "transcript" | "health"> & {
180
+ _transcriptStore: ExternalStore<TranscriptEntry[]>;
181
+ _healthStore: ExternalStore<ConnectionHealth>;
182
+ /** Read through `useAvatarActionFlow`, which also wraps `_sendActionUi`. */
183
+ _actionFlowStore: ExternalStore<ActionFlow | null>;
184
+ _sendActionUi: (op: ActionUiOp, args?: Record<string, unknown>, name?: string) => boolean;
185
+ _currentJob: BatchedTtsJob | null;
186
+ _onPlaybackEnd: () => boolean | void;
187
+ _onRiveReady?: () => void;
188
+ _onRiveError: (err: Error) => void;
189
+ _resetToken: number;
190
+ /** Player paints and never opens a socket, so session-scoped chrome has nothing to
191
+ * report there. */
192
+ _mode: AvatarModeWithPlayer;
193
+ /** Only <AvatarWidget> calls it; a bare <Avatar> leaves the runtime's "inline". */
194
+ _setMountSurface: (surface: AvatarSurface) => void;
195
+ /** Subscribed by <AvatarWidget> rather than handled here: this hook sits above the
196
+ * widget, which owns the placement and stage a command acts on. */
197
+ _onWidgetCommand: (handler: (action: WidgetAction, turnId: number) => void) => () => void;
198
+ _reportWidgetStatus: (turnId: number, outcome: CommandOutcome) => void;
199
+ /** Every utterance batch as it starts playing; the tour times its cues off these. */
200
+ _onSpeechJob: (handler: (job: BatchedTtsJob) => void) => () => void;
201
+ /** A server-written tour of the page just sent; null when it cannot be had. */
202
+ _requestTour: () => Promise<TourStep[] | null>;
203
+ /** The next session opens listening; for `tour.greeting: false`. */
204
+ _skipNextGreeting: () => void;
205
+ _riveKey: string;
206
+ _avatarConfig: AvatarConfigFromServer | null;
207
+ _shouldArmTalking: boolean;
208
+ /** Bumps when the user says something (first ASR words, throttled): a resting avatar
209
+ * that settled into idle listens again. */
210
+ _userActivity: number;
211
+ /** Bumps on every `avatar_thinking`: an edge, because `isThinking` can already be true
212
+ * when a second one arrives (the user spoke again before the reply). */
213
+ _thinkingSignal: number;
214
+ _speakerMuted: boolean;
215
+ /** A ref, so a burst in one turn can't be lost to React batching; `_gestureSignal`
216
+ * bumps to wake the renderer. */
217
+ _gestureQueue: React.MutableRefObject<GestureCommand[]>;
218
+ _gestureSignal: number;
219
+ /** A click on the avatar: one of the rig's playful gestures, unless it is talking. */
220
+ _avatarClicked: () => void;
221
+ /** Read every frame by the engines. One object for the runtime's life, mutated in place
222
+ * by setLipSyncTuning — never replaced. */
223
+ _lipSyncTuning: LipSyncTuning;
224
+ /** Sampled only while a first-party reader is subscribed. */
225
+ _rigActivity: RigActivityHub;
226
+ /** Local union on purpose — the core AvatarVisualState type is not re-exported. */
227
+ _visualState: "normal" | "expired";
228
+ _camera: CameraState;
229
+ _screen: ScreenShareState;
230
+ _screenSharePosition: ScreenSharePosition;
231
+ _captionsEnabled: boolean;
232
+ _captionPosition: CaptionPosition;
233
+ /** Enabled + anchored via config; the banner reads `health.concern` for its copy. */
234
+ _statusBannerEnabled: boolean;
235
+ _statusBannerPosition: StatusBannerPosition;
236
+ /** Enabled + anchored via config; reads isResponseSlow off the public result. */
237
+ _thinkingIndicatorEnabled: boolean;
238
+ _thinkingIndicatorPosition: ThinkingIndicatorPosition;
239
+ /** Published by the renderer so captions reveal words in step with the audio. */
240
+ _speechClockRef: React.MutableRefObject<(() => number | null) | null>;
241
+ _registerSpeechClock: (getPlaybackTime: (() => number | null) | null) => void;
242
+ /** Renderer publishes the live player so interrupts reach it directly. */
243
+ _registerPlaybackControls: (controls: PlaybackControls | null) => void;
244
+ /** Null when the browser gives us no audio at all. */
245
+ _getAudioContext: () => AudioContext | null;
246
+ /** Set only by a view of a voice played elsewhere (the extension). */
247
+ _createSpeechPlayer?: SpeechPlayerFactory;
248
+ /** Push-to-talk only: bind spacebar in the built-in button. */
249
+ _spacebarToTalk: boolean;
250
+ /** `"meeting"`: the frame is a bot's camera, so session chrome stays off it. */
251
+ _environment?: AvatarEnvironment;
252
+ mode: AvatarModeWithPlayer;
253
+ };
254
+
255
+ declare function useAvatar(): UseAvatarResultWithPlayer;
256
+
257
+ /** Where the mic worklet and the VAD and mood workers load from. Unset, each is a `blob:`
258
+ * URL of its bundled source; a CSP that refuses `blob:` scripts (an MV3 extension page)
259
+ * serves `dist/public/{pcm-worklet,vad-worker,mood-worker}.js` as files instead. */
260
+ type ScriptUrls = {
261
+ pcmWorklet?: string;
262
+ vadWorker?: string;
263
+ moodWorker?: string;
264
+ /** A folder serving mood's MediaPipe files as `<sha256>.<ext>`, copied from our
265
+ * `/v1/assets/`. Its scripts then load by URL, not `blob:`. Unset, ours are used. */
266
+ moodAssets?: string;
267
+ };
268
+ /** Process-wide, like the page's CSP it answers to. Set before the first call starts. */
269
+ declare const setScriptUrls: (urls: ScriptUrls) => void;
270
+
271
+ type RiveRendererStatus = "live" | "recovering" | "unrecoverable";
272
+ type RiveRendererEvent = {
273
+ type: "lost";
274
+ generation: number;
275
+ surface: string;
276
+ } | {
277
+ type: "recovered";
278
+ generation: number;
279
+ recoveryMs: number;
280
+ } | {
281
+ type: "unrecoverable";
282
+ generation: number;
283
+ reason: "loss-storm" | "runtime-unsupported";
284
+ };
285
+ /** Idempotent. Must run before Rive builds its first renderer: a shared context created
286
+ * earlier is never seen, so its loss goes unhandled. */
287
+ declare function watchRiveRenderer(): void;
288
+ declare const getRiveRendererStatus: () => RiveRendererStatus;
289
+ /** Synchronous: `lost` fires before any rig is remounted or cleaned up. */
290
+ declare function onRiveRendererEvent(listener: (event: RiveRendererEvent) => void): () => void;
291
+ /** Loses the shared context the way a GPU reset would, so recovery can be exercised in
292
+ * any browser. False when Rive has not built one yet. */
293
+ declare function simulateRiveContextLoss(): boolean;
294
+
295
+ /** Moves once per rebuilt runtime. Key a Rive owner on it and the owner remounts onto
296
+ * the new context. */
297
+ declare function useRiveRenderGeneration(): number;
298
+ declare function useRiveRendererStatus(): RiveRendererStatus;
299
+
300
+ /**
301
+ * Shows the last good frame of the rig inside `surfaceHostRef` on `holdCanvasRef` from a
302
+ * context loss until the rebuilt rig (`readyToken`) has drawn. The host must hold only
303
+ * that rig, and it must draw through the shared renderer.
304
+ */
305
+ declare function useRiveFrameHold(surfaceHostRef: RefObject<HTMLElement | null>, holdCanvasRef: RefObject<HTMLCanvasElement | null>, readyToken: unknown): void;
306
+
307
+ /** The engine's state a view mirrors. Plain JSON: it crosses a process boundary. */
308
+ type EngineState = Pick<UseAvatarInternalResult, "isReady" | "isLoading" | "isConnecting" | "isSpeaking" | "isListening" | "isThinking" | "isResponseSlow" | "isIdle" | "isFailed" | "isConnected" | "isMicMuted" | "isSpeakerMuted" | "isPushToTalk" | "isTalking" | "availableActions" | "notice" | "avatarId" | "mode"> & {
309
+ error: Omit<AvatarError, "cause"> | null;
310
+ resetToken: number;
311
+ riveKey: string;
312
+ avatarConfig: UseAvatarInternalResult["_avatarConfig"];
313
+ shouldArmTalking: boolean;
314
+ /** Optional, so a view and a host a release apart still agree: absent reads as 0. */
315
+ userActivity?: number;
316
+ /** Optional for the same reason: absent reads as 0. */
317
+ thinkingSignal?: number;
318
+ visualState: UseAvatarInternalResult["_visualState"];
319
+ /** The rig's motion fields, copied onto the view's own tuning object. */
320
+ tuning: Record<string, number>;
321
+ };
322
+ /** The voice's clock at one instant: `alignmentSec` into the utterance at wall time `at`,
323
+ * running on from there unless paused. Sampled whenever the clock jumps or stops. */
324
+ type SpeechAnchor = {
325
+ epoch: number | null;
326
+ alignmentSec: number;
327
+ playableSec: number;
328
+ at: number;
329
+ paused: boolean;
330
+ scheduled: boolean;
331
+ active: boolean;
332
+ pending: boolean;
333
+ };
334
+ /** A speak batch with its audio replaced by a marker: views draw, they never play. */
335
+ type SpeechBatch = Omit<BatchedTtsJob, "audioChunks"> & {
336
+ audioChunks: string[];
337
+ };
338
+ type EngineToView = {
339
+ t: "state";
340
+ state: EngineState;
341
+ } | {
342
+ t: "speech";
343
+ job: SpeechBatch;
344
+ } | {
345
+ t: "anchor";
346
+ anchor: SpeechAnchor;
347
+ } | {
348
+ t: "speech.ended";
349
+ epoch: number | null;
350
+ } | {
351
+ t: "speech.reset";
352
+ } | {
353
+ t: "gestures";
354
+ gestures: GestureCommand[];
355
+ } | {
356
+ t: "transcript";
357
+ entries: TranscriptEntry[];
358
+ } | {
359
+ t: "health";
360
+ health: ConnectionHealth;
361
+ } | {
362
+ t: "page.call";
363
+ id: number;
364
+ call: PageSurfaceCall;
365
+ };
366
+ type ViewCommand = "start" | "stop" | "interrupt" | "stopSpeaking" | "startTalking" | "stopTalking" | "skipNextGreeting";
367
+ type ViewToEngine = {
368
+ t: "join";
369
+ protocol: number;
370
+ }
371
+ /** The tab this view sits in is the one in front, so the avatar's page is its page. */
372
+ | {
373
+ t: "visible";
374
+ visible: boolean;
375
+ } | {
376
+ t: "cmd";
377
+ cmd: ViewCommand;
378
+ } | {
379
+ t: "mic";
380
+ muted: boolean;
381
+ } | {
382
+ t: "speaker";
383
+ muted: boolean;
384
+ } | {
385
+ t: "trigger";
386
+ name: string;
387
+ } | {
388
+ t: "avatarClick";
389
+ } | {
390
+ t: "surface";
391
+ surface: AvatarSurface;
392
+ } | {
393
+ t: "rive.ready";
394
+ } | {
395
+ t: "page.reply";
396
+ id: number;
397
+ ok: boolean;
398
+ value?: unknown;
399
+ error?: string;
400
+ } | {
401
+ t: "page.changed";
402
+ };
403
+ /** The engine host's side of the transport: one channel per view, keyed by an id the
404
+ * transport assigns. */
405
+ type EngineHostLink = {
406
+ send(viewId: string, message: EngineToView): void;
407
+ broadcast(message: EngineToView): void;
408
+ onMessage(listener: (viewId: string, message: ViewToEngine) => void): () => void;
409
+ onLeave(listener: (viewId: string) => void): () => void;
410
+ };
411
+ /** A view's side: one channel to the engine host. */
412
+ type EngineViewLink = {
413
+ send(message: ViewToEngine): void;
414
+ onMessage(listener: (message: EngineToView) => void): () => void;
415
+ };
416
+
417
+ type AvatarEngineHostProps = {
418
+ /** A call: the engine host exists to hold one. */
419
+ config: AvatarConfigWithPlayer;
420
+ link: EngineHostLink;
421
+ /** Tabs and search around the page; read once, like the runtime's other adapters. */
422
+ browser?: IBrowserHost;
423
+ };
424
+ /** The avatar with no face: runtime, mic, barge-in and voice, for views elsewhere to
425
+ * draw. One per browser in the extension, outliving every page it serves. */
426
+ declare function AvatarEngineHost({ config, link, browser }: AvatarEngineHostProps): react_jsx_runtime.JSX.Element;
427
+
428
+ type RemoteAvatarProviderProps = {
429
+ config: AvatarConfigWithPlayer;
430
+ link: EngineViewLink;
431
+ /** This view's own page, which the engine reads and acts on while this tab is in front. */
432
+ pageHost?: PageHost;
433
+ children: React.ReactNode;
434
+ };
435
+ /** `<AvatarProvider>` for a view of an engine running elsewhere: the same components
436
+ * render under it unchanged. */
437
+ declare function RemoteAvatarProvider({ config, link, pageHost, children, }: RemoteAvatarProviderProps): react_jsx_runtime.JSX.Element;
438
+
439
+ type EmbedRuntimeProps = {
440
+ projection: WidgetDeploymentProjection;
441
+ /** The embedding page's origin, already checked server-side against the deployment's
442
+ * domains. Every message in either direction is pinned to it. */
443
+ hostOrigin: string;
444
+ };
445
+ /** The hosted runtime page's whole body: the widget in a frame the loader places. */
446
+ declare const EmbedRuntime: ({ projection, hostOrigin }: EmbedRuntimeProps) => react_jsx_runtime.JSX.Element;
447
+
448
+ declare const AvatarProvider: (props: {
449
+ config: AvatarConfigWithPlayer;
450
+ children: ReactNode;
451
+ pageHost?: PageHost;
452
+ }) => ReturnType<typeof AvatarHostProvider>;
453
+
454
+ /** The next session opens listening, without its greeting — for a call carried across
455
+ * a page load, which has already said hello. */
456
+ declare const useSkipNextGreeting: () => (() => void);
457
+ /** First-party: subscribe to the rig's values for the studio's rig console. Read-only —
458
+ * the Rive instance itself never leaves the SDK. */
459
+ declare const useRigActivity: () => RigActivityHub["subscribe"];
460
+
461
+ export { ActionFlow, ActionUiOp, AvatarConfigWithPlayer, AvatarEngineHost, AvatarEnvironment, AvatarError, AvatarModeWithPlayer, AvatarProvider, CaptionPosition, ConnectionHealth, EmbedRuntime, type EmbedRuntimeProps, type EngineHostLink, type EngineToView, type EngineViewLink, IBrowserHost, PageHost, PageSurfaceCall, RemoteAvatarProvider, type RigActivityEvent, type RigActivityListener, type RigBinding, type RigValue, type RigValueData, type RigValueKind, type RigValueSource, type RiveRendererEvent, type RiveRendererStatus, ScreenSharePosition, type ScriptUrls, StatusBannerPosition, ThinkingIndicatorPosition, TourStep, TranscriptEntry, UseAvatarResultWithPlayer, type ViewToEngine, WidgetDeploymentProjection, getRiveRendererStatus, onRiveRendererEvent, setScriptUrls, simulateRiveContextLoss, useAvatar, useRigActivity, useRiveFrameHold, useRiveRenderGeneration, useRiveRendererStatus, useSkipNextGreeting, watchRiveRenderer };