1 | export interface KeyValueStorageInterface {
|
2 | setItem(key: string, value: string): Promise<void>;
|
3 | getItem(key: string): Promise<string | null>;
|
4 | removeItem(key: string): Promise<void>;
|
5 | clear(): Promise<void>;
|
6 | }
|
7 | export type SameSite = 'strict' | 'lax' | 'none';
|
8 | export interface CookieStorageData {
|
9 | domain?: string;
|
10 | path?: string;
|
11 | |
12 |
|
13 |
|
14 | expires?: number;
|
15 | secure?: boolean;
|
16 | sameSite?: SameSite;
|
17 | }
|
18 | export interface SyncStorage {
|
19 | setItem(key: string, value: string): void;
|
20 | getItem(key: string): string | null;
|
21 | removeItem(key: string): void;
|
22 | clear(): void;
|
23 | }
|