forked from krakenfx/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
declarations.d.ts
56 lines (48 loc) · 1.59 KB
/
declarations.d.ts
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
declare module '*.svg' {
import React from 'react';
import { SvgProps } from 'react-native-svg';
const content: React.FC<SvgProps>;
export default content;
}
declare module 'react-native-bootsplash';
declare module 'react-native-argon2';
declare module 'coinselect/split';
declare module 'coinselect';
declare type RequestCredentials = RequestCredentials_;
declare type StringNumber = string;
declare module 'react-native-config' {
export interface NativeConfig {
DEFAULT_HARMONY_BASE_URI: string;
ALT_HARMONY_BASE_URIS_1?: string;
ALT_HARMONY_BASE_URIS_2?: string;
HARMONY_CF_CLIENT_ID?: string;
HARMONY_CF_CLIENT_SECRET?: string;
DEFAULT_GROUNDCONTROL_BASE_URI: string;
ALT_GROUNDCONTROL_BASE_URIS_1?: string;
ALT_GROUNDCONTROL_BASE_URIS_2?: string;
WALLETCONNECT_PROJECT_ID: string;
DISABLE_PREVENT_SCREEN_CAPTURE?: boolean;
INTERNAL_RELEASE?: string;
STORYBOOK_ENABLED?: string;
}
export const Config: NativeConfig;
export default Config;
}
declare module '*.webp' {
const content: string;
export default content;
}
declare module 'react-native-password-strength-meter/src/utils/calculate-level' {
function calculateLevel<T extends object>(score: number, levels: T[]): T;
export default calculateLevel;
}
declare module 'react-native-password-strength-meter/src/utils/score-password' {
type Variations = {
digits: RegExp;
lower: RegExp;
upper: RegExp;
nonWords: RegExp;
};
function scorePassword(password: string, minLength: number, scoreLimit: number, variations?: Variations): number;
export default scorePassword;
}