1 | interface ClientStorageOptions {
|
2 | daysUntilExpire?: number;
|
3 | cookieDomain?: string;
|
4 | }
|
5 |
|
6 |
|
7 |
|
8 | export type ClientStorage = {
|
9 | get<T extends Object>(key: string): T | undefined;
|
10 | save(key: string, value: any, options?: ClientStorageOptions): void;
|
11 | remove(key: string, options?: ClientStorageOptions): void;
|
12 | };
|
13 |
|
14 |
|
15 |
|
16 | export declare const CookieStorage: ClientStorage;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare const CookieStorageWithLegacySameSite: ClientStorage;
|
22 |
|
23 |
|
24 |
|
25 | export declare const SessionStorage: ClientStorage;
|
26 | export {};
|