@blotoutio/providers-blotout-popup-sdk 1.70.2

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/index.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ declare module '@blotoutio/providers-blotout-popup-sdk'
2
+
3
+ declare global {
4
+ const registryKey: unique symbol
5
+
6
+ interface Window {
7
+ // Debug only: force-shows a popup, bypassing schedule, fatigue and
8
+ // conditions, and emits no analytics. Blotout engineers, not merchants.
9
+ [registryKey]: {
10
+ show?: (ruleId?: string) => void
11
+ hide?: () => void
12
+ clearState?: () => void
13
+ }
14
+ // `window.blotoutPopup`, the documented storefront entry point, is declared
15
+ // in public-api.ts instead. This file is a global script rather than a
16
+ // module, so a `declare global` in it does not reach the spec build, and a
17
+ // second copy of the type here only looked like it was doing something.
18
+ }
19
+ }