@microsurveysai/react-native 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +96 -2
- package/dist/index.cjs +1986 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +393 -0
- package/dist/index.d.ts +393 -0
- package/dist/index.js +1957 -0
- package/dist/index.js.map +1 -0
- package/package.json +63 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
|
|
5
|
+
/** Synchronous string key/value storage the runtime persists into.
|
|
6
|
+
* Implementations should swallow their own errors
|
|
7
|
+
* (quota, disabled storage): persistence is best-effort. */
|
|
8
|
+
interface KeyValueStorage {
|
|
9
|
+
getItem(key: string): string | null;
|
|
10
|
+
setItem(key: string, value: string): void;
|
|
11
|
+
removeItem(key: string): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type Json = string | number | boolean | null | Json[] | {
|
|
15
|
+
[key: string]: Json;
|
|
16
|
+
};
|
|
17
|
+
type JsonObject = {
|
|
18
|
+
[key: string]: Json;
|
|
19
|
+
};
|
|
20
|
+
type QuestionType = "NPS" | "CES" | "CSAT_STAR" | "CSAT_EMOJI" | "THUMBS" | "SINGLE_CHOICE" | "OPEN_TEXT";
|
|
21
|
+
interface EmojiOption {
|
|
22
|
+
value: string;
|
|
23
|
+
emoji: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
interface ChoiceOption {
|
|
27
|
+
value: string;
|
|
28
|
+
label: string;
|
|
29
|
+
}
|
|
30
|
+
/** Typed, defaulted per-type config — port of iOS `QuestionConfig`. NPS and CES
|
|
31
|
+
* share the numeric-scale shape; `type` disambiguates defaults + answer shape. */
|
|
32
|
+
type QuestionConfig = {
|
|
33
|
+
kind: "scale";
|
|
34
|
+
min: number;
|
|
35
|
+
max: number;
|
|
36
|
+
minLabel?: string;
|
|
37
|
+
maxLabel?: string;
|
|
38
|
+
} | {
|
|
39
|
+
kind: "stars";
|
|
40
|
+
count: number;
|
|
41
|
+
} | {
|
|
42
|
+
kind: "emoji";
|
|
43
|
+
options: EmojiOption[];
|
|
44
|
+
} | {
|
|
45
|
+
kind: "thumbs";
|
|
46
|
+
} | {
|
|
47
|
+
kind: "singleChoice";
|
|
48
|
+
options: ChoiceOption[];
|
|
49
|
+
} | {
|
|
50
|
+
kind: "openText";
|
|
51
|
+
placeholder?: string;
|
|
52
|
+
maxLength?: number;
|
|
53
|
+
};
|
|
54
|
+
interface Question {
|
|
55
|
+
id: string;
|
|
56
|
+
order: number;
|
|
57
|
+
type: QuestionType;
|
|
58
|
+
prompt: string;
|
|
59
|
+
required: boolean;
|
|
60
|
+
config: QuestionConfig;
|
|
61
|
+
}
|
|
62
|
+
type TriggerType = "SINGLE" | "SEQUENCE";
|
|
63
|
+
interface TriggerStep {
|
|
64
|
+
order: number;
|
|
65
|
+
event: string;
|
|
66
|
+
match: JsonObject;
|
|
67
|
+
}
|
|
68
|
+
interface Trigger {
|
|
69
|
+
id: string;
|
|
70
|
+
type: TriggerType;
|
|
71
|
+
delaySeconds: number;
|
|
72
|
+
sequenceWindowSeconds: number | null;
|
|
73
|
+
fireEvery: number;
|
|
74
|
+
warmupCount: number;
|
|
75
|
+
steps: TriggerStep[];
|
|
76
|
+
}
|
|
77
|
+
interface Survey {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
questions: Question[];
|
|
81
|
+
audienceMatch?: JsonObject | null;
|
|
82
|
+
samplePercent?: number | null;
|
|
83
|
+
maxPerUserDays?: number | null;
|
|
84
|
+
startsAt?: string | null;
|
|
85
|
+
endsAt?: string | null;
|
|
86
|
+
triggers?: Trigger[] | null;
|
|
87
|
+
/** `false` = required: hide the close button + block scrim/swipe dismissal. */
|
|
88
|
+
dismissible?: boolean | null;
|
|
89
|
+
/** `"sheet"` | `"dialog"` | null (inherit the project theme's position). */
|
|
90
|
+
presentation?: string | null;
|
|
91
|
+
successMessage?: string | null;
|
|
92
|
+
/** Platform targeting for auto-presentation. Empty/absent = all platforms.
|
|
93
|
+
* The engine skips a survey whose list is non-empty and excludes the client's
|
|
94
|
+
* platform. Explicit inline `<MicroSurvey>` embeds ignore this. */
|
|
95
|
+
platforms?: string[] | null;
|
|
96
|
+
}
|
|
97
|
+
interface SDKConfig {
|
|
98
|
+
projectId: string;
|
|
99
|
+
fetchedAt?: string | null;
|
|
100
|
+
theme: ProjectTheme | null;
|
|
101
|
+
surveys: Survey[];
|
|
102
|
+
}
|
|
103
|
+
/** Brand-level survey appearance (API-CONTRACT §Theme). All keys optional. */
|
|
104
|
+
interface ProjectTheme {
|
|
105
|
+
accent?: string;
|
|
106
|
+
accentText?: string;
|
|
107
|
+
background?: string;
|
|
108
|
+
surface?: string;
|
|
109
|
+
text?: string;
|
|
110
|
+
secondaryText?: string;
|
|
111
|
+
border?: string;
|
|
112
|
+
cornerRadius?: number | null;
|
|
113
|
+
controlRadius?: number;
|
|
114
|
+
controlPill?: boolean;
|
|
115
|
+
controlHeight?: number;
|
|
116
|
+
spacing?: number;
|
|
117
|
+
textScale?: number;
|
|
118
|
+
position?: string;
|
|
119
|
+
alignment?: string;
|
|
120
|
+
font?: string;
|
|
121
|
+
titleSize?: number;
|
|
122
|
+
titleWeight?: string;
|
|
123
|
+
titleLineHeight?: number;
|
|
124
|
+
titleLetterSpacing?: number;
|
|
125
|
+
}
|
|
126
|
+
/** The exact JSON submitted under `answers[].value`, keyed per question type
|
|
127
|
+
* (API-CONTRACT §Answer value shapes). */
|
|
128
|
+
type AnswerValue = {
|
|
129
|
+
value: number;
|
|
130
|
+
} | {
|
|
131
|
+
value: "up" | "down";
|
|
132
|
+
} | {
|
|
133
|
+
value: string;
|
|
134
|
+
} | {
|
|
135
|
+
choice: string;
|
|
136
|
+
} | {
|
|
137
|
+
text: string;
|
|
138
|
+
};
|
|
139
|
+
interface SurveyAnswer {
|
|
140
|
+
questionId: string;
|
|
141
|
+
value: AnswerValue;
|
|
142
|
+
}
|
|
143
|
+
/** Outcome handed back when the survey UI closes. */
|
|
144
|
+
interface SurveyResult {
|
|
145
|
+
answers: SurveyAnswer[];
|
|
146
|
+
/** `true` if the user advanced through and submitted the final question. */
|
|
147
|
+
completed: boolean;
|
|
148
|
+
/** `true` if closed/dismissed before completing. */
|
|
149
|
+
dismissed: boolean;
|
|
150
|
+
}
|
|
151
|
+
/** Parse a raw `/api/sdk/config` JSON string into a fully-normalized `SDKConfig`.
|
|
152
|
+
* Returns `null` if the payload is unusable. Lenient by design — the SDK must
|
|
153
|
+
* keep working against an older/newer server shape. */
|
|
154
|
+
declare function parseConfig(rawText: string): SDKConfig | null;
|
|
155
|
+
|
|
156
|
+
/** An identity update from an analytics SDK (e.g. the Amplitude plugin). Any
|
|
157
|
+
* field may be absent when unknown; absent fields leave the current value. */
|
|
158
|
+
interface AnalyticsIdentity {
|
|
159
|
+
userId?: string | null;
|
|
160
|
+
deviceId?: string | null;
|
|
161
|
+
/** Properties to merge into the user properties (`$set` semantics). */
|
|
162
|
+
userProperties?: Record<string, unknown> | null;
|
|
163
|
+
/** Properties to set only where not already present (`$setOnce` semantics). */
|
|
164
|
+
setOnceProperties?: Record<string, unknown> | null;
|
|
165
|
+
/** Property keys to remove (`$unset` semantics). */
|
|
166
|
+
unsetProperties?: string[] | null;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface CreateClientOptions {
|
|
170
|
+
apiKey: string;
|
|
171
|
+
/** Override for self-hosted deployments. Defaults to https://console.microsurveys.ai. */
|
|
172
|
+
apiBaseURL?: string;
|
|
173
|
+
/** Foreground-refresh freshness window in ms. Defaults to 30 min. */
|
|
174
|
+
configTTLms?: number;
|
|
175
|
+
/** Auto-refresh config on tab foreground (visibilitychange). Default true. */
|
|
176
|
+
refreshOnForeground?: boolean;
|
|
177
|
+
/** This device's platform for survey targeting ("ios" | "android"). */
|
|
178
|
+
platform: string;
|
|
179
|
+
/** The OS version, sent with responses. */
|
|
180
|
+
osVersion?: string;
|
|
181
|
+
/** The host app's version, sent with responses so results can be compared
|
|
182
|
+
* across releases. */
|
|
183
|
+
appVersion?: string;
|
|
184
|
+
/** Where config, identity, trigger state and the outbox persist. Must already
|
|
185
|
+
* hold its data when the client is created. */
|
|
186
|
+
storage: KeyValueStorage;
|
|
187
|
+
/** Subscribes to "app came to the foreground"; returns an unsubscribe. */
|
|
188
|
+
subscribeForeground: (onForeground: () => void) => () => void;
|
|
189
|
+
}
|
|
190
|
+
/** An auto-triggered survey the host should present. Call `close` exactly once
|
|
191
|
+
* when the UI dismisses (completed, partial, or dismissed). */
|
|
192
|
+
interface ActiveSurvey {
|
|
193
|
+
survey: Survey;
|
|
194
|
+
trigger: Trigger | null;
|
|
195
|
+
close(result: SurveyResult): void;
|
|
196
|
+
}
|
|
197
|
+
type PresentListener = (active: ActiveSurvey) => void;
|
|
198
|
+
type ConfigListener = () => void;
|
|
199
|
+
declare class MicroSurveysClient {
|
|
200
|
+
private readonly api;
|
|
201
|
+
private readonly configStore;
|
|
202
|
+
private readonly identityStore;
|
|
203
|
+
private readonly triggerStateStore;
|
|
204
|
+
private readonly engine;
|
|
205
|
+
private readonly configTTLms;
|
|
206
|
+
private readonly refreshOnForeground;
|
|
207
|
+
private readonly platform;
|
|
208
|
+
private readonly osVersion;
|
|
209
|
+
private readonly appVersion;
|
|
210
|
+
private readonly subscribeForeground;
|
|
211
|
+
private readonly presentListeners;
|
|
212
|
+
private readonly configListeners;
|
|
213
|
+
private active;
|
|
214
|
+
private started;
|
|
215
|
+
private unsubscribeForeground;
|
|
216
|
+
constructor(opts: CreateClientOptions);
|
|
217
|
+
/** Flush any queued ingest, refresh config, and (optionally) wire the
|
|
218
|
+
* foreground refresh. Safe to call once early. */
|
|
219
|
+
start(): void;
|
|
220
|
+
/** Tear down listeners + pending timers. */
|
|
221
|
+
stop(): void;
|
|
222
|
+
/** Force an ETag-aware config refresh; keeps the cache on failure. */
|
|
223
|
+
refreshConfig(): Promise<void>;
|
|
224
|
+
/** Refresh only when the cache is missing or older than the TTL. */
|
|
225
|
+
refreshConfigIfStale(): void;
|
|
226
|
+
identify(userId: string | null | undefined, properties?: Record<string, unknown>): void;
|
|
227
|
+
track(name: string, properties?: Record<string, unknown>): void;
|
|
228
|
+
/** Merge identity forwarded by an analytics SDK (e.g. the Amplitude plugin).
|
|
229
|
+
* Its user/device id take precedence over `identify()` for `endUserId`. */
|
|
230
|
+
updateAnalyticsIdentity(update: AnalyticsIdentity): void;
|
|
231
|
+
getTheme(): ProjectTheme | null;
|
|
232
|
+
getSurvey(surveyId: string): Survey | undefined;
|
|
233
|
+
/** Subscribe to config refreshes (e.g. to render an inline survey that wasn't
|
|
234
|
+
* cached yet). Returns an unsubscribe function. */
|
|
235
|
+
onConfigChange(cb: ConfigListener): () => void;
|
|
236
|
+
/** Subscribe to auto-triggered surveys. Returns an unsubscribe function. If a
|
|
237
|
+
* survey is already active, the new subscriber is notified immediately. */
|
|
238
|
+
onPresent(cb: PresentListener): () => void;
|
|
239
|
+
private handlePresent;
|
|
240
|
+
private toActiveSurvey;
|
|
241
|
+
/** Records the outcome of an **inline** `<MicroSurvey>` (no trigger/gate). */
|
|
242
|
+
recordInline(survey: Survey, result: SurveyResult, shownAt: Date): void;
|
|
243
|
+
private recordOutcome;
|
|
244
|
+
/** Where this showing happened. The language is read at record time: the user
|
|
245
|
+
* can change it while the app runs. */
|
|
246
|
+
private deviceContext;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** The fields of an Amplitude event this plugin reads. */
|
|
250
|
+
interface AmplitudeEvent {
|
|
251
|
+
event_type: string;
|
|
252
|
+
event_properties?: Record<string, unknown> | null;
|
|
253
|
+
user_id?: string | null;
|
|
254
|
+
device_id?: string | null;
|
|
255
|
+
/** On `$identify` events: `{ $set, $setOnce, $unset, … }` operations. */
|
|
256
|
+
user_properties?: Record<string, unknown> | null;
|
|
257
|
+
}
|
|
258
|
+
/** An Amplitude enrichment plugin (`amplitude.add(plugin)`). */
|
|
259
|
+
interface MicroSurveysAmplitudePlugin {
|
|
260
|
+
name: string;
|
|
261
|
+
type: "enrichment";
|
|
262
|
+
setup(config?: unknown, client?: unknown): Promise<void>;
|
|
263
|
+
execute<E extends AmplitudeEvent>(event: E): Promise<E>;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** The subset of AsyncStorage this SDK needs. Matches
|
|
267
|
+
* `@react-native-async-storage/async-storage` v1, v2 (`multiGet`) and v3
|
|
268
|
+
* (`getMany`), or any store with the same shape. */
|
|
269
|
+
interface AsyncKeyValueStorage {
|
|
270
|
+
getItem(key: string): Promise<string | null>;
|
|
271
|
+
setItem(key: string, value: string): Promise<void>;
|
|
272
|
+
removeItem(key: string): Promise<void>;
|
|
273
|
+
getAllKeys(): Promise<readonly string[]>;
|
|
274
|
+
/** v3 batch read. */
|
|
275
|
+
getMany?(keys: string[]): Promise<Record<string, string | null>>;
|
|
276
|
+
/** v1/v2 batch read. */
|
|
277
|
+
multiGet?(keys: readonly string[]): Promise<readonly (readonly [string, string | null])[]>;
|
|
278
|
+
}
|
|
279
|
+
/** Loads every MicroSurveys key from `store` and returns a synchronous view of
|
|
280
|
+
* it for the runtime. Never rejects: if the store can't be read, the SDK
|
|
281
|
+
* starts with empty state. */
|
|
282
|
+
declare function hydrateAsyncStorage(store: AsyncKeyValueStorage): Promise<KeyValueStorage>;
|
|
283
|
+
|
|
284
|
+
interface MicroSurveysOptions {
|
|
285
|
+
/** Project API key (`ms_live_…` / `ms_test_…`) from the dashboard. */
|
|
286
|
+
apiKey: string;
|
|
287
|
+
/** Override for self-hosted deployments. Defaults to https://console.microsurveys.ai. */
|
|
288
|
+
apiBaseURL?: string;
|
|
289
|
+
/** Refresh config (when stale) and retry queued ingest whenever the app returns
|
|
290
|
+
* to the foreground. Default true. */
|
|
291
|
+
refreshOnForeground?: boolean;
|
|
292
|
+
/** Foreground freshness window for the cached config, in ms. Default 12h. */
|
|
293
|
+
configTTLms?: number;
|
|
294
|
+
/** A synchronous store (e.g. MMKV) to persist into instead of AsyncStorage. */
|
|
295
|
+
storage?: KeyValueStorage;
|
|
296
|
+
/** An async store to persist into. Defaults to `@react-native-async-storage/async-storage`. */
|
|
297
|
+
asyncStorage?: AsyncKeyValueStorage;
|
|
298
|
+
/** Your app's version (e.g. "3.2.0"), sent with responses so results can be
|
|
299
|
+
* compared across releases. With Expo: `Application.nativeApplicationVersion`. */
|
|
300
|
+
appVersion?: string;
|
|
301
|
+
}
|
|
302
|
+
declare class MicroSurveys {
|
|
303
|
+
readonly apiKey: string;
|
|
304
|
+
/** Resolves with the underlying runtime once storage has loaded. */
|
|
305
|
+
readonly ready: Promise<MicroSurveysClient>;
|
|
306
|
+
private client;
|
|
307
|
+
private pending;
|
|
308
|
+
constructor(opts: MicroSurveysOptions);
|
|
309
|
+
/** Runs `fn` now if the runtime is ready, otherwise as soon as it is. */
|
|
310
|
+
private withClient;
|
|
311
|
+
/** Flushes queued impressions/responses, refreshes the config, and starts the
|
|
312
|
+
* foreground refresh. Safe to call once early in app launch (the provider
|
|
313
|
+
* calls it for you unless `autoStart={false}`). */
|
|
314
|
+
start(): void;
|
|
315
|
+
/** Stops foreground refresh and cancels pending (delayed) presentations. */
|
|
316
|
+
stop(): void;
|
|
317
|
+
/** Forces an ETag-aware config refresh. Keeps the cache on failure. */
|
|
318
|
+
refreshConfig(): Promise<void>;
|
|
319
|
+
/** Identify the current user and/or attach properties used by audience
|
|
320
|
+
* targeting. Optional with Amplitude (identity flows in via the plugin). */
|
|
321
|
+
identify(userId: string | null | undefined, properties?: Record<string, unknown>): void;
|
|
322
|
+
/** Record an event. An eligible survey presents itself after its configured
|
|
323
|
+
* delay. Not needed for events that already flow through Amplitude. */
|
|
324
|
+
track(name: string, properties?: Record<string, unknown>): void;
|
|
325
|
+
/** Identity forwarded by an analytics SDK. Used by the Amplitude plugin. */
|
|
326
|
+
updateAnalyticsIdentity(update: AnalyticsIdentity): void;
|
|
327
|
+
/** The enrichment plugin to register on your Amplitude instance:
|
|
328
|
+
* `amplitude.add(ms.amplitudePlugin())`. Forwards events + identity into the
|
|
329
|
+
* SDK and returns every event unmodified. */
|
|
330
|
+
amplitudePlugin(): MicroSurveysAmplitudePlugin;
|
|
331
|
+
getTheme(): ProjectTheme | null;
|
|
332
|
+
getSurvey(surveyId: string): Survey | undefined;
|
|
333
|
+
/** Subscribe to config loads/refreshes. Fires once when the cached config
|
|
334
|
+
* becomes available. Returns an unsubscribe function. */
|
|
335
|
+
onConfigChange(cb: () => void): () => void;
|
|
336
|
+
/** Subscribe to auto-triggered surveys. Returns an unsubscribe function. */
|
|
337
|
+
onPresent(cb: (active: ActiveSurvey) => void): () => void;
|
|
338
|
+
/** Records the outcome of an inline `<MicroSurvey>`. */
|
|
339
|
+
recordInline(survey: Survey, result: SurveyResult, shownAt: Date): void;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
interface MicroSurveysProviderProps {
|
|
343
|
+
/** Project API key (`ms_live_…` / `ms_test_…`). Ignored when `instance` is passed. */
|
|
344
|
+
apiKey?: string;
|
|
345
|
+
/** Override the API base for self-hosted deployments. Ignored when `instance` is passed. */
|
|
346
|
+
apiBaseURL?: string;
|
|
347
|
+
/** Your app's version (e.g. "3.2.0"), sent with responses. Ignored when `instance` is passed. */
|
|
348
|
+
appVersion?: string;
|
|
349
|
+
/** A `MicroSurveys` you created yourself, e.g. to register its Amplitude plugin. */
|
|
350
|
+
instance?: MicroSurveys;
|
|
351
|
+
/** Start automatically on mount (load config, flush queued ingest). Default true. */
|
|
352
|
+
autoStart?: boolean;
|
|
353
|
+
/** A font family your app registered (e.g. with expo-font) to render surveys in.
|
|
354
|
+
* Defaults to the system font. */
|
|
355
|
+
fontFamily?: string;
|
|
356
|
+
children?: ReactNode;
|
|
357
|
+
}
|
|
358
|
+
declare function MicroSurveysProvider({ apiKey, apiBaseURL, appVersion, instance, autoStart, fontFamily, children }: MicroSurveysProviderProps): react.JSX.Element;
|
|
359
|
+
/** The `MicroSurveys` instance from the nearest provider (or null outside one). */
|
|
360
|
+
declare function useMicroSurveysInstance(): MicroSurveys | null;
|
|
361
|
+
/** Event + identity helpers bound to the provider's instance. Safe no-ops
|
|
362
|
+
* outside a provider. */
|
|
363
|
+
declare function useMicroSurveys(): {
|
|
364
|
+
instance: MicroSurveys | null;
|
|
365
|
+
track: (name: string, properties?: Record<string, unknown>) => void | undefined;
|
|
366
|
+
identify: (userId: string | null | undefined, properties?: Record<string, unknown>) => void | undefined;
|
|
367
|
+
refresh: () => Promise<void> | undefined;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
interface MicroSurveyProps {
|
|
371
|
+
surveyId: string;
|
|
372
|
+
/** Called with the outcome after the survey closes. */
|
|
373
|
+
onComplete?: (result: SurveyResult) => void;
|
|
374
|
+
/** Style for the card container (margins, width, …). */
|
|
375
|
+
style?: StyleProp<ViewStyle>;
|
|
376
|
+
}
|
|
377
|
+
declare function MicroSurvey({ surveyId, onComplete, style }: MicroSurveyProps): react.JSX.Element | null;
|
|
378
|
+
|
|
379
|
+
interface SurveyModalProps {
|
|
380
|
+
/** The survey to show; the modal is visible while this is non-null. */
|
|
381
|
+
survey: Survey | null;
|
|
382
|
+
/** The dashboard theme (`/api/sdk/config` → `theme`). Defaults apply when absent. */
|
|
383
|
+
theme?: ProjectTheme | null;
|
|
384
|
+
/** A font family your app registered (e.g. with expo-font). Defaults to the system font. */
|
|
385
|
+
fontFamily?: string;
|
|
386
|
+
/** Called once with the outcome, as soon as it is known. */
|
|
387
|
+
onResult?: (result: SurveyResult) => void;
|
|
388
|
+
/** Called after the survey has animated away. Clear `survey` here. */
|
|
389
|
+
onClose?: () => void;
|
|
390
|
+
}
|
|
391
|
+
declare function SurveyModal({ survey, theme: projectTheme, fontFamily, onResult, onClose }: SurveyModalProps): react.JSX.Element | null;
|
|
392
|
+
|
|
393
|
+
export { type AmplitudeEvent, type AnswerValue, type AsyncKeyValueStorage, type KeyValueStorage, MicroSurvey, type MicroSurveyProps, MicroSurveys, type MicroSurveysAmplitudePlugin, type MicroSurveysOptions, MicroSurveysProvider, type MicroSurveysProviderProps, type ProjectTheme, type Question, type Survey, type SurveyAnswer, SurveyModal, type SurveyModalProps, type SurveyResult, hydrateAsyncStorage, parseConfig, useMicroSurveys, useMicroSurveysInstance };
|