import * as Cookies from 'cookies'; import { CookieBag as CookieBagContract, CookieConfig, RequestCookieBuilderCallback, ResponseCookieBuilderCallback } from '@supercharge/contracts'; export declare class CookieBag implements CookieBagContract { /** * Stores the request cookies. */ private readonly cookies; /** * Stores the default cookie options. */ private readonly options; /** * Create a new instance. */ constructor(cookies: Cookies, options?: CookieConfig); /** * Returns the attribute value for the given `name` or the `defaultValue`. */ get(name: string, callback?: RequestCookieBuilderCallback): string | undefined; /** * Set an attribute for the given `name` and assign the `value`. * This will override an existing attribute for the given `name`. */ set(name: string, value?: string | null, cookieBuilder?: ResponseCookieBuilderCallback): this; /** * Determine whether the attribute for the given `name` exists. */ has(name: string): boolean; /** * Deletes a cookie with the given `name`. */ delete(name: string): this; }