import { CookieOptions } from './cookie.model'; import * as i0 from "@angular/core"; export declare const DATE_MAX_EXPIRES: Date; export declare const DEFAULT_COOKIE_OPTIONS: CookieOptions; export declare abstract class CookieFactory { /** * Get all cookies in object format. */ abstract getAll(): { [key: string]: string; }; /** * Implementation (create / update / delete) */ abstract save(key: string, data: string, options: CookieOptions): void; } export declare class CookieService { private cookieFactory; private cookieOptions; constructor(cookieOptions: CookieOptions, cookieFactory: CookieFactory); /** * Returns an integer representing the number of cookie items. */ get length(): number; /** * Transform to expires Date */ private static getExpiresDate; /** * Get all cookies in object format. */ getAll(): { [key: string]: string; }; /** * Read a cookie. If the cookie doesn't exist a null value will be returned. */ getItem(key: string): string | null; /** * Check whether a cookie exists in the current position. */ hasItem(key: string): boolean; /** * Return all cookie names. */ keys(): string[]; /** * Return the cookie name at a index. */ key(index: number): string | null; /** * Add that cookie to the storage, or update that cookie's value if it already exists. */ setItem(key: string, data?: string, options?: CookieOptions): void; /** * Delete a cookie. */ removeItem(key: string, options?: CookieOptions): void; /** * Remove all cookie. */ clear(options?: CookieOptions): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }