UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

18 lines (17 loc) 611 B
/// <reference types="node" /> import type { Except, JsonValue } from 'type-fest'; import type { CookieOptions } from '../types/interfaces'; import type { IncomingHttpHeaders } from 'http'; export declare class Cookie { protected data: Map<string, { options: CookieOptions; value: JsonValue; }>; private modifiedKeys; constructor(headers: IncomingHttpHeaders); set(key: string, value: JsonValue, options?: Except<CookieOptions, 'enable' | 'strategy'>): void; get<T>(key: string): T; has(key: string): boolean; serialize(): string; private getCookieOptions; }