Urara-Blog/node_modules/.pnpm-store/v3/files/22/84c6de2acc6d3fa0e55562f67685aa01a65bf379afd4f41b6d8b00522b5ed4908ca3e0a3d149b140faa4215e0ea2079407c3c9a363bbaa477fb202a1f8d0e4
2022-08-14 01:14:53 +08:00

14 lines
433 B
Text

import type { Dict } from 'worktop/utils';
export interface Attributes {
maxage?: number;
expires?: Date;
samesite?: 'Lax' | 'Strict' | 'None';
secure?: boolean;
httponly?: boolean;
domain?: string;
path?: string;
}
export function parse(cookie: string): Attributes & Dict<string>;
export function stringify(name: string, value: string, options?: Omit<Attributes, 'expires'> & { expires?: Date | number | string }): string;