cookie-storage.d.ts 586 B

1234567891011121314151617
  1. import { CookieOptions } from "./cookie-options";
  2. import { Storage } from "./storage";
  3. export declare class CookieStorage implements Storage {
  4. private _defaultOptions;
  5. constructor(defaultOptions?: CookieOptions);
  6. get length(): number;
  7. clear(): void;
  8. getItem(key: string): string | null;
  9. key(index: number): string | null;
  10. removeItem(key: string, cookieOptions?: CookieOptions): void;
  11. setItem(key: string, data: string, options?: CookieOptions): void;
  12. private _getCookie;
  13. private _setCookie;
  14. [key: string]: any;
  15. [index: number]: string;
  16. }