-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathindex.d.ts
More file actions
62 lines (55 loc) · 1.83 KB
/
index.d.ts
File metadata and controls
62 lines (55 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import React from 'react';
import Hcaptcha, { HcaptchaProps } from './Hcaptcha';
export type JourneyRuntimeStats = {
activeConsumers: number;
bufferedEvents: number;
capturing: boolean;
currentRoute: { key?: string; name: string } | null;
initialized: boolean;
touchCaptureEnabled: boolean;
wrapperInstalled: boolean;
};
export type JourneyTrackingOptions = {
navigationContainerRef?: unknown;
touchCapture?: boolean;
debug?: boolean;
onStats?: (stats: JourneyRuntimeStats) => void;
};
type ConfirmHcaptchaProps = Omit<HcaptchaProps, 'url' | 'style'> & {
/**
* Indicates whether the passive mode is enabled; when true, the modal won't be shown at all
*/
passiveSiteKey?: boolean;
/**
* The url domain defined on your hCaptcha. You generally will not need to change this.
*/
baseUrl?: string;
/**
* Defines if the modal backdrop is shown (true by default). If `hasBackdrop=false`,
* `backgroundColor` will apply only after the hCaptcha visual challenge is presented.
*/
hasBackdrop?: boolean;
/**
* Defines if the view containing the hCaptcha should use a SafeAreaView or a View component (true by default)
*/
useSafeAreaView?: boolean;
};
export default class ConfirmHcaptcha extends React.Component<ConfirmHcaptchaProps> {
/**
* Shows the modal containing the challenge
*/
show: () => void;
/**
* Hides the modal containing the challenge. Do not pass any argument to trigger
* the onMessage `cancel` event
*/
hide: (source?: any) => void;
/**
* Clears the shared journey buffer and detaches this instance from journey attachment
* until it is explicitly reconfigured.
*/
stopEvents: () => void;
}
export function initJourneyTracking(options?: JourneyTrackingOptions): void;
export function registerJourneyNavigationContainer(ref: unknown): void;
export { Hcaptcha };