-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
23 lines (23 loc) · 893 Bytes
/
index.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
import sensitiveInfo from 'react-native-sensitive-info';
export default function (options?: sensitiveInfo.RNSensitiveInfoOptions): {
getItem(key: string, callback?: {
(_: null, result: string[]): void;
(_: null, result: string | null): void;
(error: unknown): void;
}): Promise<string | null>;
setItem(key: string, value: string, callback?: {
(_: null, result: string[]): void;
(_: null, result: string | null): void;
(error: unknown): void;
}): Promise<void>;
removeItem(key: string, callback?: {
(_: null, result: string[]): void;
(_: null, result: string | null): void;
(error: unknown): void;
}): Promise<void>;
getAllKeys(callback?: {
(_: null, result: string[]): void;
(_: null, result: string | null): void;
(error: unknown): void;
}): Promise<string[]>;
};