UNPKG

507 BTypeScriptView Raw
1import { CookieStorageData, KeyValueStorageInterface, SameSite } from '../types';
2export declare class CookieStorage implements KeyValueStorageInterface {
3 path: string;
4 domain?: string;
5 expires?: number;
6 sameSite?: SameSite;
7 secure?: boolean;
8 constructor(data?: CookieStorageData);
9 setItem(key: string, value: string): Promise<void>;
10 getItem(key: string): Promise<string | null>;
11 removeItem(key: string): Promise<void>;
12 clear(): Promise<void>;
13 private getData;
14}