1 | export type Cookie = any;
|
2 | export interface CookieGetOptions {
|
3 | doNotParse?: boolean;
|
4 | doNotUpdate?: boolean;
|
5 | }
|
6 | export interface CookieSetOptions {
|
7 | path?: string;
|
8 | expires?: Date;
|
9 | maxAge?: number;
|
10 | domain?: string;
|
11 | secure?: boolean;
|
12 | httpOnly?: boolean;
|
13 | sameSite?: boolean | 'none' | 'lax' | 'strict';
|
14 | partitioned?: boolean;
|
15 | }
|
16 | export interface CookieChangeOptions {
|
17 | name: string;
|
18 | value?: any;
|
19 | options?: CookieSetOptions;
|
20 | }
|
21 | export type CookieChangeListener = (options: CookieChangeOptions) => void;
|