@testerpaykit/expo 2.1.2 → 2.2.0

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _testerpaykit_api_client from '@testerpaykit/api-client';
2
- import { SessionEventInput, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportPayload, BugReportResponse, TaskListResponse, TesterTask, TesterPayKitApiClient, WorkCommand, CompensationWallet, PaidAssignment, AnonymousLoginResponse, BugReportType, BugSeverity, BugCategory, MyBugReportSummary, NotificationsResult, TesterSessionEndReason, PushRegistration, TesterProfile, TesterPoints, ChecklistTask, ChecklistStepResult, EarningsSummary, PayoutRecord } from '@testerpaykit/api-client';
2
+ import { SessionEventInput, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportPayload, BugReportResponse, TaskListResponse, TesterTask, TesterPayKitApiClient, WorkCommand, CompensationWallet, PaidAssignment, AnonymousLoginResponse, BugReportType, BugSeverity, BugCategory, MyBugReportSummary, AppLinkResponse, NotificationsResult, TesterSessionEndReason, PushRegistration, TesterProfile, TesterPoints, ClientOutdatedInfo, ChecklistTask, ChecklistStepResult, EarningsSummary, PayoutRecord } from '@testerpaykit/api-client';
3
3
  export { BugCategory, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportType, BugSeverity, CompensationWallet, EarningsSummary, EnrollmentResponse, MoneyEntry, MyBugReportSummary, MyBugReportsResponse, NotificationsResult, PaidAssignment, PayoutRecord, PushRegistration, TaskListFilter, TaskListResponse, TesterPoints, TesterProfile, TesterTask, TpkNotification, WorkCommand } from '@testerpaykit/api-client';
4
4
  import { RemoteAiSession } from '@testerpaykit/core';
5
5
  import React, { RefObject, ReactNode } from 'react';
@@ -544,6 +544,17 @@ declare function deriveTaskProgress(res: TaskListResponse): TaskProgress;
544
544
  */
545
545
  declare function findAssignmentForTask(tasks: TesterTask[], key: string): TesterTask | null;
546
546
 
547
+ /** `beta`: TesterPayKit is active. `store`: completely inert. */
548
+ type TpkBuildChannel = 'beta' | 'store';
549
+ /**
550
+ * The channel this build was made for. Fixed at build time by the config
551
+ * plugin (`["@testerpaykit/expo", { "channel": "beta" }]` or
552
+ * `TPK_CHANNEL=beta`); without one, `__DEV__` builds are `beta` and release
553
+ * builds `store`. Apps use it to hide their own TesterPayKit entries (e.g. a
554
+ * "Become a tester" row) in store builds.
555
+ */
556
+ declare function getBuildChannel(): TpkBuildChannel;
557
+
547
558
  /** Total agreed working time, including reading/reporting outside app screens.
548
559
  * This preview is never an approved balance. The server validates every receipt. */
549
560
  declare function workSeconds(a: PaidAssignment, serverNow: number): number;
@@ -708,14 +719,15 @@ interface SubmitBugResult {
708
719
  /**
709
720
  * Initialise the TesterPayKit client for an Expo app.
710
721
  *
722
+ * // null in a `store` build (see getBuildChannel)
711
723
  * const tpk = await TpkExpo.init({
712
724
  * projectId: '<uuid>',
713
725
  * testerCode: deviceCodeFromSettingsScreen,
714
726
  * apiBaseUrl: __DEV__ ? 'http://192.168.178.69:18080' : undefined,
715
727
  * });
716
- * await tpk.submitBug({ title: 'X broke', description: '...' });
717
- * tpk.trackScreenView('home');
718
- * tpk.trackTap('home', 'sign_up_button');
728
+ * await tpk?.submitBug({ title: 'X broke', description: '...' });
729
+ * tpk?.trackScreenView('home');
730
+ * tpk?.trackTap('home', 'sign_up_button');
719
731
  */
720
732
  declare class TpkExpo {
721
733
  private readonly config;
@@ -780,7 +792,14 @@ declare class TpkExpo {
780
792
  sessionId: string;
781
793
  /** Active tester identity. Updated by background auth flow. */
782
794
  tester: AnonymousLoginResponse['tester'];
783
- static init(config: TpkExpoConfig): Promise<TpkExpo>;
795
+ /** The build channel (see [getBuildChannel]). `store`: [init] returns null. */
796
+ static get channel(): TpkBuildChannel;
797
+ /**
798
+ * Resolves to null in a `store` build: nothing is started, read, written
799
+ * or sent (App Store Guideline 2.2), so hosts handle it exactly like a
800
+ * client that never came up. Never rejects for that reason.
801
+ */
802
+ static init(config: TpkExpoConfig): Promise<TpkExpo | null>;
784
803
  /**
785
804
  * POST a bug report to the server. Device + app snapshots are
786
805
  * gathered automatically; recent breadcrumbs are attached. On
@@ -835,7 +854,7 @@ declare class TpkExpo {
835
854
  * Whether this install may report yet (migrations 075 + 077: a
836
855
  * confirmed DE/AT/CH number AND an admin's approval).
837
856
  * - `verified`: number confirmed and approved (cached once both hold).
838
- * - `required`: ask for the number now.
857
+ * - `required`: not confirmed yet; confirm once in the TPK app.
839
858
  * - `awaitingApproval`: number confirmed, approval still pending.
840
859
  * Never cached.
841
860
  * - `unknown`: offline / not signed in, nothing cached.
@@ -893,7 +912,7 @@ declare class TpkExpo {
893
912
  /**
894
913
  * Lets a person become a visible tester from the host's own UI (e.g. a
895
914
  * "Become a tester" entry): the mounted TesterPayKitWrapper opens the
896
- * phone sheet when the number is not confirmed yet and says so when
915
+ * TPK-app sheet when the number is not confirmed yet and says so when
897
916
  * the approval is still pending. Returns the resulting [access]; when
898
917
  * it is `ready` the widget appears. Without a mounted wrapper it only
899
918
  * re-checks.
@@ -907,33 +926,19 @@ declare class TpkExpo {
907
926
  private accessFromCache;
908
927
  private setAccess;
909
928
  /**
910
- * Sends the SMS code. `unavailable` means the server cannot send SMS
911
- * (no provider yet) — the host should let the report through.
929
+ * Starts the confirmation in the TPK app (decision 2026-11-10, replaces
930
+ * the SMS code): a short-lived link for this install. Open `appUrl`
931
+ * first (TPK app installed), `url` when that fails (web page with an
932
+ * install hint). The person allows it there; [checkAppLink] then sees
933
+ * the confirmed number. Throws when offline.
912
934
  */
913
- startPhone(phone: string): Promise<{
914
- ok: true;
915
- verificationId: string;
916
- devCode?: string;
917
- } | {
918
- ok: false;
919
- reason: 'invalid' | 'tooMany' | 'unavailable' | 'network';
920
- }>;
935
+ linkWithTpkApp(): Promise<AppLinkResponse>;
921
936
  /**
922
- * Confirms the code, bound to this device (hashed device key +
923
- * platform, migration 077). `awaitingApproval` is true when the server
924
- * says the person is not approved yet — the host must not open the
925
- * report then. Only a confirmed AND approved state is remembered.
926
- * `deviceNotAllowed`: the number is already confirmed on another
927
- * device; an admin has to allow this one.
928
- */
929
- confirmPhone(verificationId: string, code: string): Promise<{
930
- ok: true;
931
- handle: string;
932
- awaitingApproval: boolean;
933
- } | {
934
- ok: false;
935
- reason: 'wrong' | 'expired' | 'tooMany' | 'deviceNotAllowed' | 'network';
936
- }>;
937
+ * What the TPK-app sheet polls while it waits: the phone status asked
938
+ * from the server. Once `verified` the gate is open, so what waited in
939
+ * the queue goes out without another launch.
940
+ */
941
+ checkAppLink(): Promise<'verified' | 'required' | 'awaitingApproval' | 'unknown'>;
937
942
  /**
938
943
  * This tester's in-app notifications (newest first) + the unread count —
939
944
  * powers the "Nachrichten" inbox. Mirrors the Flutter SDK.
@@ -1032,7 +1037,7 @@ declare class TpkExpo {
1032
1037
  /**
1033
1038
  * Ask a natural-language question about the project. Server embeds
1034
1039
  * the question, retrieves top-K relevant chunks from the project's
1035
- * knowledge-base, and asks gpt-4o-mini to synthesise an answer
1040
+ * knowledge-base, and asks gpt-6-luna to synthesise an answer
1036
1041
  * citing those chunks. Used by the SDK widget's "double-tap →
1037
1042
  * speak → answer" voice flow.
1038
1043
  *
@@ -1048,6 +1053,8 @@ declare class TpkExpo {
1048
1053
  * SDK's lifecycle + periodic flush.
1049
1054
  */
1050
1055
  private flushDurable;
1056
+ /** 426 client_outdated: no periodic flush any more in this app run. */
1057
+ private stopDurableSync;
1051
1058
  /** Tear down crash handler + network interceptor + durable sync (test hygiene). */
1052
1059
  dispose(): void;
1053
1060
  /** Build a bug-report payload — exposed so tests can introspect. */
@@ -1204,6 +1211,10 @@ interface FloatingFeedbackButtonProps {
1204
1211
  onReportBug: () => void;
1205
1212
  /** Tap "Feedback". Required — general (non-bug) tester feedback. */
1206
1213
  onGeneralFeedback: () => void;
1214
+ /** Since 2.3.0 (voice first): "Report in detail", the step-by-step form,
1215
+ * as the last row before "End session". Hosts set it when "Report Bug"
1216
+ * opens the voice sheet. Hidden when omitted. */
1217
+ onDetailedReport?: () => void;
1207
1218
  /** Tap "My Workboard" — opens the TesterDashboard. Hidden when omitted
1208
1219
  * (the wrapper omits it unless the host enabled the dashboard). */
1209
1220
  onViewDashboard?: () => void;
@@ -1298,7 +1309,7 @@ interface FloatingFeedbackButtonProps {
1298
1309
  * wiring. A failed/absent storage degrades gracefully. */
1299
1310
  tourStorage?: OnboardingStorage;
1300
1311
  }
1301
- declare function FloatingFeedbackButton({ onReportBug, onGeneralFeedback, onViewDashboard, onShowMyMoney, testerHandle, onDailyBriefing, onTourShown, onMenuOpened, onEndSession, onShowRetests, retestCount, onShowDebugLogs, onShowMyBugs, onShowSessionDetails, onShowMessages, unreadMessageCount, onAutoTest, onShowChecklist, checklistCount, onSendToClaude, onToggleLiveLink, liveLinkConnected, onLongPressVoiceBug, onFlushCachedCrashes, notificationCount, position, confirmedEarnings, style, testID, enableFirstTapTour, tourStorage, }: FloatingFeedbackButtonProps): React.ReactElement;
1312
+ declare function FloatingFeedbackButton({ onReportBug, onDetailedReport, onGeneralFeedback, onViewDashboard, onShowMyMoney, testerHandle, onDailyBriefing, onTourShown, onMenuOpened, onEndSession, onShowRetests, retestCount, onShowDebugLogs, onShowMyBugs, onShowSessionDetails, onShowMessages, unreadMessageCount, onAutoTest, onShowChecklist, checklistCount, onSendToClaude, onToggleLiveLink, liveLinkConnected, onLongPressVoiceBug, onFlushCachedCrashes, notificationCount, position, confirmedEarnings, style, testID, enableFirstTapTour, tourStorage, }: FloatingFeedbackButtonProps): React.ReactElement;
1302
1313
 
1303
1314
  type AttachmentKind = 'screenshot' | 'image' | 'video' | 'audio' | 'screen-recording' | 'log' | 'json' | 'other';
1304
1315
  interface BugReportAttachmentDraft {
@@ -1763,6 +1774,257 @@ interface TpkWelcomeSheetProps {
1763
1774
  }
1764
1775
  declare function TpkWelcomeSheet({ visible, brief, productName, onStart, onLater, style, testID, }: TpkWelcomeSheetProps): React.ReactElement;
1765
1776
 
1777
+ type TpkLanguage = 'de' | 'en';
1778
+ /** The device's UI language, reduced to `de` / `en`. */
1779
+ declare function detectDeviceLanguage(): TpkLanguage;
1780
+ /** Pins the UI language for every TPK surface below it. `undefined`
1781
+ * keeps device detection. */
1782
+ declare function TpkLanguageProvider({ language, children, }: {
1783
+ language?: TpkLanguage;
1784
+ children: ReactNode;
1785
+ }): React.JSX.Element;
1786
+ declare function useTpkLanguage(): TpkLanguage;
1787
+ declare function useTpkStrings(): TpkStrings;
1788
+ /** Money in the tester's language: "1,00 €" in German, "€1.00" in
1789
+ * English. `currency` is an ISO-4217 code (EUR, USD, GBP …). */
1790
+ declare function formatTpkMoney(amount: number, currency: string, language: TpkLanguage): string;
1791
+ /** Picks the text for the active language: `tr({ en: '…', de: '…' })`.
1792
+ * For surfaces with a handful of texts; big surfaces use TPK_STRINGS. */
1793
+ declare function useTr(): (texts: {
1794
+ en: string;
1795
+ de: string;
1796
+ }) => string;
1797
+ interface TpkStrings {
1798
+ menuReportBug: string;
1799
+ menuDetailedReport: string;
1800
+ menuFeedback: string;
1801
+ menuAutoTest: string;
1802
+ menuChecklist: string;
1803
+ menuSendToClaude: string;
1804
+ menuConnectClaude: string;
1805
+ menuDisconnectClaude: string;
1806
+ menuCachedCrashes: (count: number) => string;
1807
+ menuWorkboard: string;
1808
+ menuMyBugs: string;
1809
+ menuSessionDetails: string;
1810
+ menuMessages: string;
1811
+ menuRetests: string;
1812
+ menuDebugLogs: string;
1813
+ menuEndSession: string;
1814
+ menuSessionEarnings: string;
1815
+ menuMyMoney: string;
1816
+ menuYouAre: (handle: string) => string;
1817
+ unreadBadgeA11y: (count: number) => string;
1818
+ verifyOfflineTitle: string;
1819
+ verifyOffline: string;
1820
+ verifiedNow: string;
1821
+ menuOpen: string;
1822
+ menuClose: string;
1823
+ reportTitle: string;
1824
+ reportClose: string;
1825
+ reportSpeak: string;
1826
+ stepTitles: readonly [string, string, string, string, string];
1827
+ cancel: string;
1828
+ back: string;
1829
+ continue: string;
1830
+ submit: string;
1831
+ typeBug: string;
1832
+ typeBugDescription: string;
1833
+ typeCrash: string;
1834
+ typeCrashDescription: string;
1835
+ typeUiIssue: string;
1836
+ typeUiIssueDescription: string;
1837
+ typePerformance: string;
1838
+ typePerformanceDescription: string;
1839
+ typeFeature: string;
1840
+ typeFeatureDescription: string;
1841
+ typeFeedback: string;
1842
+ typeFeedbackDescription: string;
1843
+ severityCritical: string;
1844
+ severityCriticalDescription: string;
1845
+ severityHigh: string;
1846
+ severityHighDescription: string;
1847
+ severityMedium: string;
1848
+ severityMediumDescription: string;
1849
+ severityLow: string;
1850
+ severityLowDescription: string;
1851
+ frequencyAlways: string;
1852
+ frequencyOften: string;
1853
+ frequencySometimes: string;
1854
+ frequencyOnce: string;
1855
+ fieldTitle: string;
1856
+ fieldTitlePlaceholder: string;
1857
+ fieldDescription: string;
1858
+ fieldDescriptionPlaceholder: string;
1859
+ fieldExpected: string;
1860
+ fieldExpectedPlaceholder: string;
1861
+ fieldActual: string;
1862
+ fieldActualPlaceholder: string;
1863
+ fieldFrequency: string;
1864
+ fieldComponent: string;
1865
+ fieldComponentPlaceholder: string;
1866
+ attachments: string;
1867
+ attachScreenshot: string;
1868
+ attachImage: string;
1869
+ attachFile: string;
1870
+ attachA11y: (label: string) => string;
1871
+ removeA11y: (name: string) => string;
1872
+ stepsAdd: string;
1873
+ stepsPlaceholder: string;
1874
+ stepsAddA11y: string;
1875
+ stepsEmpty: string;
1876
+ stepsReorderHint: string;
1877
+ stepsDragA11y: (n: number) => string;
1878
+ stepsRemoveA11y: (n: number) => string;
1879
+ reviewType: string;
1880
+ reviewSeverity: string;
1881
+ reviewTitle: string;
1882
+ reviewDescription: string;
1883
+ reviewExpected: string;
1884
+ reviewActual: string;
1885
+ reviewFrequency: string;
1886
+ reviewComponent: string;
1887
+ reviewSteps: string;
1888
+ reviewAttachments: string;
1889
+ reviewEmpty: string;
1890
+ errorRejected: string;
1891
+ /** 403 phone_required (migration 077). */
1892
+ errorPhoneRequired: string;
1893
+ /** 403 approval_required — also the wrapper's waiting notice. */
1894
+ awaitingApproval: string;
1895
+ awaitingApprovalTitle: string;
1896
+ /** 426 client_outdated: TPK in this build is below the server's minimum.
1897
+ * Same text as the Flutter SDK. */
1898
+ clientOutdated: (yours: string, min: string) => string;
1899
+ errorFailed: string;
1900
+ errorAttachmentLimit: (max: number) => string;
1901
+ errorAttachmentSize: (maxMB: number) => string;
1902
+ errorNoCaptureRef: string;
1903
+ errorNeedsViewShot: string;
1904
+ errorScreenshotFailed: string;
1905
+ errorNeedsImagePicker: string;
1906
+ errorImageNoData: string;
1907
+ errorImagePickFailed: string;
1908
+ errorNeedsDocumentPicker: string;
1909
+ errorFileUnreadable: string;
1910
+ errorFilePickFailed: string;
1911
+ }
1912
+ declare const TPK_STRINGS: Record<TpkLanguage, TpkStrings>;
1913
+
1914
+ /** What the server knows about the store versions of this app. */
1915
+ interface TpkVersionNotice {
1916
+ /** The version this app runs, as the server understood it. */
1917
+ installedVersion: string | null;
1918
+ /** A newer store version exists. */
1919
+ updateAvailable: boolean;
1920
+ /** A release newer than this one is marked as required. */
1921
+ updateRequired: boolean;
1922
+ latestVersion: string | null;
1923
+ latestNotes: string[];
1924
+ /** Store page of the latest version (App Store, Google Play or the web). */
1925
+ storeUrl: string | null;
1926
+ /** The installed version as a store release, with its "what's new". */
1927
+ currentVersion: string | null;
1928
+ currentNotes: string[];
1929
+ }
1930
+ /** Store platform of a build. */
1931
+ type TpkStorePlatform = 'ios' | 'android' | 'web';
1932
+ declare const TPK_VERSION_NOTICE_DEFAULT_API_BASE_URL = "https://api.testerpaykit.com";
1933
+ declare const TPK_VERSION_NOTICE_SEEN_KEY = "tpk_version_notice_seen";
1934
+ declare const TPK_VERSION_NOTICE_DISMISSED_KEY = "tpk_version_notice_dismissed";
1935
+ /** Store platform of this build: `ios`, `android` or `web`; null on
1936
+ * platforms without a store release (windows, macos). */
1937
+ declare function tpkStorePlatform(os?: string): TpkStorePlatform | null;
1938
+ /** Parses the body of `GET /public/apps/{id}/release`. */
1939
+ declare function parseVersionNotice(json: unknown): TpkVersionNotice | null;
1940
+ interface FetchVersionNoticeOptions {
1941
+ projectId: string;
1942
+ /** Default `https://api.testerpaykit.com`. */
1943
+ apiBaseUrl?: string;
1944
+ /** Normally read from the app (expo-application, else expo-constants). */
1945
+ installedVersion?: string;
1946
+ /** Normally `Platform.OS`. */
1947
+ platform?: string;
1948
+ /** Normally the device language; the `<TpkVersionCheck>` component passes
1949
+ * the SDK language (`TpkLanguageProvider`). */
1950
+ language?: TpkLanguage;
1951
+ /** Default 5000 ms. */
1952
+ timeoutMs?: number;
1953
+ /** For tests; default the global `fetch`. */
1954
+ fetchImpl?: typeof fetch;
1955
+ }
1956
+ /**
1957
+ * Asks TesterPayKit for the version notice of `projectId`. Resolves to null
1958
+ * when the platform has no store, the version is unknown, the network fails,
1959
+ * the request takes longer than the timeout or the app is unknown. Never
1960
+ * throws. Needs no `TpkExpo.init`, so it works in store builds too.
1961
+ */
1962
+ declare function fetchVersionNotice({ projectId, apiBaseUrl, installedVersion, platform, language, timeoutMs, fetchImpl, }: FetchVersionNoticeOptions): Promise<TpkVersionNotice | null>;
1963
+ /** What `<TpkVersionCheck>` shows for a notice. */
1964
+ type TpkVersionNoticeKind = 'required' | 'update' | 'whatsNew';
1965
+ /**
1966
+ * Decides what to show, at most one thing, and remembers the installed
1967
+ * version:
1968
+ * - a required update: a dialog that only leads to the store;
1969
+ * - an available update: once per new store version (unless "Later" was
1970
+ * chosen for exactly that version);
1971
+ * - otherwise "what's new" once per installed version, but not on the very
1972
+ * first start of a fresh install.
1973
+ */
1974
+ declare function decideVersionNotice(notice: TpkVersionNotice, storage: TpkStorage): Promise<TpkVersionNoticeKind | null>;
1975
+ /** "Later" on an available update: no hint again until a newer version. */
1976
+ declare function dismissVersionUpdate(notice: TpkVersionNotice, storage: TpkStorage): Promise<void>;
1977
+
1978
+ interface TpkVersionCheckProps {
1979
+ /** The TesterPayKit project of this app. */
1980
+ projectId: string;
1981
+ /** Default `https://api.testerpaykit.com`. */
1982
+ apiBaseUrl?: string;
1983
+ /** Where the seen / dismissed versions live. Default `ExpoStorage`
1984
+ * (AsyncStorage). */
1985
+ storage?: TpkStorage;
1986
+ /** Called with the fetched notice (or null) once the check ran. */
1987
+ onNotice?: (notice: TpkVersionNotice | null) => void;
1988
+ /** For tests: normally read from the app. */
1989
+ installedVersion?: string;
1990
+ /** For tests: normally `Platform.OS`. */
1991
+ platform?: string;
1992
+ /** For tests: default the global `fetch`. */
1993
+ fetchImpl?: typeof fetch;
1994
+ }
1995
+ /**
1996
+ * Checks once on mount and shows at most one thing:
1997
+ * - a required update: a dialog that only leads to the store;
1998
+ * - an available update: once per new store version, with "Later";
1999
+ * - otherwise "what's new" once per installed version, but not on the very
2000
+ * first start of a fresh install.
2001
+ * The app never updates itself; "Update" opens the store page.
2002
+ */
2003
+ declare function TpkVersionCheck({ projectId, apiBaseUrl, storage, onNotice, installedVersion, platform, fetchImpl, }: TpkVersionCheckProps): React.ReactElement | null;
2004
+ interface TpkWhatsNewSheetProps {
2005
+ notice: TpkVersionNotice;
2006
+ visible: boolean;
2007
+ onClose: () => void;
2008
+ }
2009
+ /** "What's new in `version`" as a bottom sheet, e.g. from a settings row. */
2010
+ declare function TpkWhatsNewSheet({ notice, visible, onClose, }: TpkWhatsNewSheetProps): React.ReactElement;
2011
+
2012
+ /** What the server said: kind, minimum and our version (null when the
2013
+ * request carried no `X-TPK-Client`). */
2014
+ type TpkClientOutdated = ClientOutdatedInfo;
2015
+ /** Non-null once the server rejected this SDK version in this app run. */
2016
+ declare function getClientOutdated(): TpkClientOutdated | null;
2017
+ /** Called once when this app run turns outdated. Returns the unsubscribe. */
2018
+ declare function onClientOutdated(listener: (info: TpkClientOutdated) => void): () => void;
2019
+ /** React hook: null while the server serves this SDK, else the 426 body. */
2020
+ declare function useTpkClientOutdated(): TpkClientOutdated | null;
2021
+ /** The tester notice for [info], same text as the Flutter SDK. */
2022
+ declare function clientOutdatedText(info: TpkClientOutdated, language: TpkLanguage): string;
2023
+
2024
+ /** `X-TPK-Client` value: client kind and version, sent on every request to
2025
+ * the TPK API (decision 2026-11-14 "Mindestversion je Client-Art"). */
2026
+ declare const TPK_CLIENT_ID: string;
2027
+
1766
2028
  interface TpkOnboardingProps {
1767
2029
  /** Storage adapter used to persist the done flag + consent. */
1768
2030
  storage: OnboardingStorage;
@@ -1910,13 +2172,12 @@ declare function GeneralFeedbackDialog({ visible, tpk, currentScreen, onClose, o
1910
2172
 
1911
2173
  interface PhoneConfirmSheetProps {
1912
2174
  visible: boolean;
1913
- tpk: Pick<TpkExpo, 'startPhone' | 'confirmPhone'> | null;
2175
+ tpk: Pick<TpkExpo, 'linkWithTpkApp' | 'checkAppLink'> | null;
1914
2176
  /**
1915
- * Confirmed (handle) or skipped because SMS is unavailable (null).
1916
- * `awaitingApproval`: confirmed, but the account still waits for
1917
- * approval — the host must not open the report.
2177
+ * Confirmed in the TPK app. `awaitingApproval`: confirmed, but the
2178
+ * account still waits for approval — the host must not open the report.
1918
2179
  */
1919
- onDone: (handle: string | null, awaitingApproval?: boolean) => void;
2180
+ onDone: (awaitingApproval: boolean) => void;
1920
2181
  /** Tester closed the sheet: the report does not open. */
1921
2182
  onCancel: () => void;
1922
2183
  }
@@ -1960,139 +2221,6 @@ interface ChecklistPanelProps {
1960
2221
  }
1961
2222
  declare function ChecklistPanel({ visible, tpk, tasks, onReload, onClose, }: ChecklistPanelProps): React.ReactElement | null;
1962
2223
 
1963
- type TpkLanguage = 'de' | 'en';
1964
- /** The device's UI language, reduced to `de` / `en`. */
1965
- declare function detectDeviceLanguage(): TpkLanguage;
1966
- /** Pins the UI language for every TPK surface below it. `undefined`
1967
- * keeps device detection. */
1968
- declare function TpkLanguageProvider({ language, children, }: {
1969
- language?: TpkLanguage;
1970
- children: ReactNode;
1971
- }): React.JSX.Element;
1972
- declare function useTpkLanguage(): TpkLanguage;
1973
- declare function useTpkStrings(): TpkStrings;
1974
- /** Money in the tester's language: "1,00 €" in German, "€1.00" in
1975
- * English. `currency` is an ISO-4217 code (EUR, USD, GBP …). */
1976
- declare function formatTpkMoney(amount: number, currency: string, language: TpkLanguage): string;
1977
- /** Picks the text for the active language: `tr({ en: '…', de: '…' })`.
1978
- * For surfaces with a handful of texts; big surfaces use TPK_STRINGS. */
1979
- declare function useTr(): (texts: {
1980
- en: string;
1981
- de: string;
1982
- }) => string;
1983
- interface TpkStrings {
1984
- menuReportBug: string;
1985
- menuFeedback: string;
1986
- menuAutoTest: string;
1987
- menuChecklist: string;
1988
- menuSendToClaude: string;
1989
- menuConnectClaude: string;
1990
- menuDisconnectClaude: string;
1991
- menuCachedCrashes: (count: number) => string;
1992
- menuWorkboard: string;
1993
- menuMyBugs: string;
1994
- menuSessionDetails: string;
1995
- menuMessages: string;
1996
- menuRetests: string;
1997
- menuDebugLogs: string;
1998
- menuEndSession: string;
1999
- menuSessionEarnings: string;
2000
- menuMyMoney: string;
2001
- menuYouAre: (handle: string) => string;
2002
- unreadBadgeA11y: (count: number) => string;
2003
- verifyOfflineTitle: string;
2004
- verifyOffline: string;
2005
- verifiedNow: string;
2006
- menuOpen: string;
2007
- menuClose: string;
2008
- reportTitle: string;
2009
- reportClose: string;
2010
- reportSpeak: string;
2011
- stepTitles: readonly [string, string, string, string, string];
2012
- cancel: string;
2013
- back: string;
2014
- continue: string;
2015
- submit: string;
2016
- typeBug: string;
2017
- typeBugDescription: string;
2018
- typeCrash: string;
2019
- typeCrashDescription: string;
2020
- typeUiIssue: string;
2021
- typeUiIssueDescription: string;
2022
- typePerformance: string;
2023
- typePerformanceDescription: string;
2024
- typeFeature: string;
2025
- typeFeatureDescription: string;
2026
- typeFeedback: string;
2027
- typeFeedbackDescription: string;
2028
- severityCritical: string;
2029
- severityCriticalDescription: string;
2030
- severityHigh: string;
2031
- severityHighDescription: string;
2032
- severityMedium: string;
2033
- severityMediumDescription: string;
2034
- severityLow: string;
2035
- severityLowDescription: string;
2036
- frequencyAlways: string;
2037
- frequencyOften: string;
2038
- frequencySometimes: string;
2039
- frequencyOnce: string;
2040
- fieldTitle: string;
2041
- fieldTitlePlaceholder: string;
2042
- fieldDescription: string;
2043
- fieldDescriptionPlaceholder: string;
2044
- fieldExpected: string;
2045
- fieldExpectedPlaceholder: string;
2046
- fieldActual: string;
2047
- fieldActualPlaceholder: string;
2048
- fieldFrequency: string;
2049
- fieldComponent: string;
2050
- fieldComponentPlaceholder: string;
2051
- attachments: string;
2052
- attachScreenshot: string;
2053
- attachImage: string;
2054
- attachFile: string;
2055
- attachA11y: (label: string) => string;
2056
- removeA11y: (name: string) => string;
2057
- stepsAdd: string;
2058
- stepsPlaceholder: string;
2059
- stepsAddA11y: string;
2060
- stepsEmpty: string;
2061
- stepsReorderHint: string;
2062
- stepsDragA11y: (n: number) => string;
2063
- stepsRemoveA11y: (n: number) => string;
2064
- reviewType: string;
2065
- reviewSeverity: string;
2066
- reviewTitle: string;
2067
- reviewDescription: string;
2068
- reviewExpected: string;
2069
- reviewActual: string;
2070
- reviewFrequency: string;
2071
- reviewComponent: string;
2072
- reviewSteps: string;
2073
- reviewAttachments: string;
2074
- reviewEmpty: string;
2075
- errorRejected: string;
2076
- /** 403 phone_required (migration 077). */
2077
- errorPhoneRequired: string;
2078
- /** 403 approval_required — also the wrapper's waiting notice. */
2079
- awaitingApproval: string;
2080
- awaitingApprovalTitle: string;
2081
- errorFailed: string;
2082
- errorAttachmentLimit: (max: number) => string;
2083
- errorAttachmentSize: (maxMB: number) => string;
2084
- errorNoCaptureRef: string;
2085
- errorNeedsViewShot: string;
2086
- errorScreenshotFailed: string;
2087
- errorNeedsImagePicker: string;
2088
- errorImageNoData: string;
2089
- errorImagePickFailed: string;
2090
- errorNeedsDocumentPicker: string;
2091
- errorFileUnreadable: string;
2092
- errorFilePickFailed: string;
2093
- }
2094
- declare const TPK_STRINGS: Record<TpkLanguage, TpkStrings>;
2095
-
2096
2224
  /** Verdict of one step while the tester works: null = not judged yet. */
2097
2225
  interface StepDraft {
2098
2226
  passed: boolean | null;
@@ -2266,6 +2394,7 @@ interface VoiceBugStrings {
2266
2394
  quickExtractedDescription?: string;
2267
2395
  quickNoScreenshot?: string;
2268
2396
  back?: string;
2397
+ typeInstead?: string;
2269
2398
  }
2270
2399
  interface VoiceBugInputSheetProps {
2271
2400
  visible: boolean;
@@ -2317,10 +2446,16 @@ interface VoiceBugInputSheetProps {
2317
2446
  currentScreen?: string;
2318
2447
  /** The tester's handle — shown as "Du meldest als …" in the sheet. */
2319
2448
  reporterHandle?: string | null;
2449
+ /**
2450
+ * Since 2.3.0 (voice first): shows "Type instead" while nothing is
2451
+ * recorded yet or recording failed (no microphone, too loud). The host
2452
+ * opens its written report, usually BugReportSheet at the details step.
2453
+ */
2454
+ onTypeInstead?: () => void;
2320
2455
  style?: StyleProp<ViewStyle>;
2321
2456
  testID?: string;
2322
2457
  }
2323
- declare function VoiceBugInputSheet({ visible, tpk, onCancel, onExtracted, maxSeconds, accentColor, sheetOpacity, voiceLanguage, strings, captureScreen, currentScreen, reporterHandle, style, testID, }: VoiceBugInputSheetProps): React.ReactElement;
2458
+ declare function VoiceBugInputSheet({ visible, tpk, onCancel, onExtracted, maxSeconds, accentColor, sheetOpacity, voiceLanguage, strings, captureScreen, currentScreen, reporterHandle, onTypeInstead, style, testID, }: VoiceBugInputSheetProps): React.ReactElement;
2324
2459
  /** Maps the sheet's classification onto the BugReportSheet's
2325
2460
  * BugReportType union. Exported so the host can call it when
2326
2461
  * building the initialDraft for the bug sheet. */
@@ -2420,6 +2555,12 @@ interface TesterPayKitWrapperProps {
2420
2555
  /** Threshold above which we consider it a shake (gravity units).
2421
2556
  * Flutter default is 2.7. Lower → more sensitive. */
2422
2557
  shakeThresholdG?: number;
2558
+ /** Since 2.3.0. `'voice'` (default): "Report Bug" and shake open the
2559
+ * voice sheet, which drafts the report and lands on its review step;
2560
+ * "Type instead" and the menu's "Report in detail" open the form.
2561
+ * `'form'`: the step-by-step form first, as before 2.3.0, for apps
2562
+ * where speaking does not fit (library, till). */
2563
+ reportMode?: 'voice' | 'form';
2423
2564
  /** Outer container override. */
2424
2565
  style?: StyleProp<ViewStyle>;
2425
2566
  onShowDebugLogs?: () => void;
@@ -2492,7 +2633,10 @@ interface TesterPayKitWrapperProps {
2492
2633
  language?: TpkLanguage;
2493
2634
  testID?: string;
2494
2635
  }
2495
- declare function TesterPayKitWrapper({ children, tpk, enableWrapper, enableShake, shakeThresholdG, style, onShowDebugLogs, notificationCount, onFlushCachedCrashes, retestCount, onShowRetests, onViewDashboard, enableTesterDashboard, showCompensation, showDebugLogs, buttonPosition, currentScreen, sessionStartedAt, compensationPush, aiCoordinatorToken, aiRemoteTrigger, aiRemotePollSeconds, enableLiveLink, aiProjectId, aiApiBaseUrl, theme, language, testID, }: TesterPayKitWrapperProps): React.ReactElement;
2636
+ /** Renders `children` unchanged in a store build: no FAB, no shake, no
2637
+ * sheets, no polling, no storage (App Store Guideline 2.2). The channel is
2638
+ * fixed for the process, so the branch never flips between renders. */
2639
+ declare function TesterPayKitWrapper(props: TesterPayKitWrapperProps): React.ReactElement;
2496
2640
 
2497
2641
  type LiveLinkStatus = 'off' | 'connecting' | 'connected';
2498
2642
  /** The part of the WebSocket API the link uses (lets tests fake it). */
@@ -2517,7 +2661,7 @@ interface TpkLiveLinkOptions {
2517
2661
  /** Runs a device action (tap, type, scroll, back) Claude asked for.
2518
2662
  * Resolves with `{ok:true, matched?}`; throws to answer with an error. */
2519
2663
  act?: (action: Record<string, unknown>) => Promise<Record<string, unknown>>;
2520
- /** Socket factory. Default: the global WebSocket. */
2664
+ /** Socket factory. Default: the global WebSocket with `X-TPK-Client`. */
2521
2665
  createSocket?: (url: string) => LiveSocket;
2522
2666
  }
2523
2667
  declare class TpkLiveLink {
@@ -2992,5 +3136,5 @@ declare function useTpkEarnings(tpk: TpkExpo | null, options?: {
2992
3136
  payoutLimit?: number;
2993
3137
  }): UseEarningsResult;
2994
3138
 
2995
- export { ANNOTATION_PALETTE, AttachmentQueue, Breadcrumbs, BugReportSheet, ChecklistPanel, CompensationClient, CrashQueue, DEFAULT_STYLE, DEFAULT_TPK_THEME, DENY_LABEL_PATTERNS, ExpoStorage, FloatingFeedbackButton, GeneralFeedbackDialog, INTERACTION_NAV_WEIGHT, InviteCodeScreen, LiveNoteDialog, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MoneyOverview, MyBugsSheet, NotificationsSheet, ONBOARDING_DONE_STORAGE_KEY, PhoneConfirmSheet, RetestSheet, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, SessionDetailsSheet, SessionEndDialog, SubmitQueue, TPK_STRINGS, TaskAnnotationRegistry, TesterDashboard, TesterPayKitProvider, TesterPayKitWrapper, TpkAnnotated, TpkAnnotationOverlay, TpkExpo, TpkIcon, TpkIconsProvider, TpkLanguageProvider, TpkLiveLink, TpkOnboarding, TpkSensitive, TpkTalker, TpkThemeProvider, TpkWelcomeSheet, VoiceBugInputSheet, VoiceNoteRecorder, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, WidgetDiscovery, WidgetTour, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureLiveSnapshot, captureView, classificationToBugType, createBugReportDraft, createCompensationPushAdapter, deriveTaskProgress, detectDeviceLanguage, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, formatTpkMoney, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, loadChecklist, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, parseLiveAction, parseVersionRange, pathToSvgD, playMoneyLabel, quickDraftBug, readLiveState, readScreenTexts, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, runLiveAction, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, toStepResults, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkLanguage, useTpkStrings, useTpkTheme, useTr, versionSatisfies, widgetDiscovery, withNativeCapture, workSeconds };
2996
- export type { AnnotatedElementInfo, AnnotatedScreenshotResult, AnnotationColor, AnnotationEvent, AnnotationEventType, AnnotationInteraction, AnnotationListener, AnnotationShape, AnnotationStyle, AnnotationTool, AppSnapshot, ArrowShape, AttachmentQueueFlushOptions, BlurShape, Breadcrumb, BugFix, BugReportDraft, BugReportSheetProps, BuildInfo, CachedCrash, CaptureViewOptions, ChecklistPanelProps, CircleShape, CompensationPushAdapter, CompletionTrigger, CrashHandlerOptions, CrashInfo, CreateBugReportDraftInput, DashboardData, DeviceSnapshot, DiscoverOptions, EarningsData, EngagedMinutesInput, ExpoNotificationsPort, FeedbackCategory, FloatingFeedbackButtonProps, FlushTelemetryResult, FocusArea, GeneralFeedbackDialogProps, InstallNetworkCaptureOptions, InteractionBounds, InteractionType, InviteCodeScreenProps, LiveAction, LiveActionEnv, LiveActionResult, LiveLinkStatus, LiveNoteDialogProps, LiveSnapshotSource, LiveSocket, MoneyOverviewProps, MyBugsSheetProps, NotificationsSheetProps, OnboardingStorage, PathShape, PeriodFilter, PhoneConfirmSheetProps, Point, QueueFlushOptions, QueueFlushResult, QuickActionKind, RecordInteractionDetails, RecordingOptions, RecordingResult, RecordingState, RectShape, RegisterAnnotationInput, ReleaseNote, RetestSheetProps, ScreenText, ScreenshotAnnotationEditorProps, ScreenshotResult, SensitiveMaskingMode, SessionDetailsSheetProps, SessionEndDialogProps, SessionEndStats, SessionStatsSnapshot, StatusStyle, StepDraft, SubmitBugInput, SubmitBugOutcome, SubmitBugResult, TaskAnnotation, TaskInteractionSummary, TaskProgress, TesterDashboardProps, TesterPayKitContextValue, TesterPayKitProviderProps, TesterPayKitWrapperProps, TextShape, TpkAccess, TpkAnnotatedProps, TpkAnnotationOverlayHandle, TpkAnnotationOverlayProps, TpkExpoConfig, TpkIconName, TpkIconOverrideMap, TpkIconProps, TpkLanguage, TpkLiveLinkOptions, TpkLogEntry, TpkLogLevel, TpkOnboardingProps, TpkSensitiveProps, TpkStorage, TpkStrings, TpkTalkerListener, TpkTalkerOptions, TpkTheme, TpkWelcomeSheetProps, UseDashboardResult, UseEarningsResult, UseShakeOptions, UseTaskAnnotationOptions, UseTaskAnnotationResult, VersionRange, VoiceBugInputSheetProps, VoiceBugStrings, VoiceClassification, VoiceExtractAudio, VoiceExtractResult, VoiceNoteFileReader, VoiceNoteRecorderLike, VoiceNoteRecorderOptions, VoiceNoteResult, VoiceNoteState, WelcomeAckStorage, WelcomeBrief, WelcomeTask, WidgetInfo, WidgetTourProps };
3139
+ export { ANNOTATION_PALETTE, AttachmentQueue, Breadcrumbs, BugReportSheet, ChecklistPanel, CompensationClient, CrashQueue, DEFAULT_STYLE, DEFAULT_TPK_THEME, DENY_LABEL_PATTERNS, ExpoStorage, FloatingFeedbackButton, GeneralFeedbackDialog, INTERACTION_NAV_WEIGHT, InviteCodeScreen, LiveNoteDialog, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MoneyOverview, MyBugsSheet, NotificationsSheet, ONBOARDING_DONE_STORAGE_KEY, PhoneConfirmSheet, RetestSheet, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, SessionDetailsSheet, SessionEndDialog, SubmitQueue, TPK_CLIENT_ID, TPK_STRINGS, TPK_VERSION_NOTICE_DEFAULT_API_BASE_URL, TPK_VERSION_NOTICE_DISMISSED_KEY, TPK_VERSION_NOTICE_SEEN_KEY, TaskAnnotationRegistry, TesterDashboard, TesterPayKitProvider, TesterPayKitWrapper, TpkAnnotated, TpkAnnotationOverlay, TpkExpo, TpkIcon, TpkIconsProvider, TpkLanguageProvider, TpkLiveLink, TpkOnboarding, TpkSensitive, TpkTalker, TpkThemeProvider, TpkVersionCheck, TpkWelcomeSheet, TpkWhatsNewSheet, VoiceBugInputSheet, VoiceNoteRecorder, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, WidgetDiscovery, WidgetTour, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureLiveSnapshot, captureView, classificationToBugType, clientOutdatedText, createBugReportDraft, createCompensationPushAdapter, decideVersionNotice, deriveTaskProgress, detectDeviceLanguage, dismissVersionUpdate, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, fetchVersionNotice, findAssignmentForTask, formatTpkMoney, getAppSnapshot, getBuildChannel, getClientOutdated, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, loadChecklist, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, onClientOutdated, parseLiveAction, parseVersionNotice, parseVersionRange, pathToSvgD, playMoneyLabel, quickDraftBug, readLiveState, readScreenTexts, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, runLiveAction, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, toStepResults, tpkStorePlatform, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkClientOutdated, useTpkDashboard, useTpkEarnings, useTpkLanguage, useTpkStrings, useTpkTheme, useTr, versionSatisfies, widgetDiscovery, withNativeCapture, workSeconds };
3140
+ export type { AnnotatedElementInfo, AnnotatedScreenshotResult, AnnotationColor, AnnotationEvent, AnnotationEventType, AnnotationInteraction, AnnotationListener, AnnotationShape, AnnotationStyle, AnnotationTool, AppSnapshot, ArrowShape, AttachmentQueueFlushOptions, BlurShape, Breadcrumb, BugFix, BugReportDraft, BugReportSheetProps, BuildInfo, CachedCrash, CaptureViewOptions, ChecklistPanelProps, CircleShape, CompensationPushAdapter, CompletionTrigger, CrashHandlerOptions, CrashInfo, CreateBugReportDraftInput, DashboardData, DeviceSnapshot, DiscoverOptions, EarningsData, EngagedMinutesInput, ExpoNotificationsPort, FeedbackCategory, FetchVersionNoticeOptions, FloatingFeedbackButtonProps, FlushTelemetryResult, FocusArea, GeneralFeedbackDialogProps, InstallNetworkCaptureOptions, InteractionBounds, InteractionType, InviteCodeScreenProps, LiveAction, LiveActionEnv, LiveActionResult, LiveLinkStatus, LiveNoteDialogProps, LiveSnapshotSource, LiveSocket, MoneyOverviewProps, MyBugsSheetProps, NotificationsSheetProps, OnboardingStorage, PathShape, PeriodFilter, PhoneConfirmSheetProps, Point, QueueFlushOptions, QueueFlushResult, QuickActionKind, RecordInteractionDetails, RecordingOptions, RecordingResult, RecordingState, RectShape, RegisterAnnotationInput, ReleaseNote, RetestSheetProps, ScreenText, ScreenshotAnnotationEditorProps, ScreenshotResult, SensitiveMaskingMode, SessionDetailsSheetProps, SessionEndDialogProps, SessionEndStats, SessionStatsSnapshot, StatusStyle, StepDraft, SubmitBugInput, SubmitBugOutcome, SubmitBugResult, TaskAnnotation, TaskInteractionSummary, TaskProgress, TesterDashboardProps, TesterPayKitContextValue, TesterPayKitProviderProps, TesterPayKitWrapperProps, TextShape, TpkAccess, TpkAnnotatedProps, TpkAnnotationOverlayHandle, TpkAnnotationOverlayProps, TpkBuildChannel, TpkClientOutdated, TpkExpoConfig, TpkIconName, TpkIconOverrideMap, TpkIconProps, TpkLanguage, TpkLiveLinkOptions, TpkLogEntry, TpkLogLevel, TpkOnboardingProps, TpkSensitiveProps, TpkStorage, TpkStorePlatform, TpkStrings, TpkTalkerListener, TpkTalkerOptions, TpkTheme, TpkVersionCheckProps, TpkVersionNotice, TpkVersionNoticeKind, TpkWelcomeSheetProps, TpkWhatsNewSheetProps, UseDashboardResult, UseEarningsResult, UseShakeOptions, UseTaskAnnotationOptions, UseTaskAnnotationResult, VersionRange, VoiceBugInputSheetProps, VoiceBugStrings, VoiceClassification, VoiceExtractAudio, VoiceExtractResult, VoiceNoteFileReader, VoiceNoteRecorderLike, VoiceNoteRecorderOptions, VoiceNoteResult, VoiceNoteState, WelcomeAckStorage, WelcomeBrief, WelcomeTask, WidgetInfo, WidgetTourProps };