declare namespace Opti { class Cookie { private name; private value; private expiry; private path; constructor(name: string, valueIfNotExist?: T | null, days?: number, path?: string); static set(name: string, value: T, days?: number, path?: string): void; static get(name: string): T | null; static delete(name: string, path?: string): void; /** Instance methods */ update(value: T, days?: number, path?: string): void; delete(): void; getValue(): T | null; getName(): string; getExpiry(): number; getPath(): string; } class LocalStorage { private name; private value; constructor(name: string, valueIfNotExist?: T | null); static set(key: string, value: T): void; static get(key: string): T | null; static remove(key: string): void; static clear(): void; /** Instance methods to interact with this specific cookie */ update(value: T): void; delete(): void; getValue(): T | null; getName(): string; } class SessionStorage { private name; private value; constructor(name: string, valueIfNotExist?: T | null); static set(key: string, value: T): void; static get(key: string): T | null; static remove(key: string): void; static clear(): void; /** Instance methods to interact with this specific cookie */ update(value: T): void; delete(): void; getValue(): T | null; getName(): string; } }