/// <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;
}
