declare module "local-storage" { export function set(key: string, value: T): boolean; export function get(key: string): T; export function remove(key: string): void; export function clear(): void; export function on(key: string, cb: (value: T) => void): void; export function on(key: string, cb: (value: T, old: T) => void): void; export function on(key: string, cb: (value: T, old: T, url: string) => void): void; export function off(key: string, cb: (value: T) => void): void; export function off(key: string, cb: (value: T, old: T) => void): void; export function off(key: string, cb: (value: T, old: T, url: string) => void): void; export default function (key: string, value?: T): void; }