<commit_before>declare module "local-storage" {
    export function set<T>(key: string, value: T): boolean;
    export function get<T>(key: string): T;
    export function remove(key:string):void;
    export function clear():void;
    export default function<T>(key:string,value?:T):void;
}<commit_msg>Added index.d.ts support for event emitter<commit_after>declare module "local-storage" {
    export function set<T>(key: string, value: T): boolean;
    export function get<T>(key: string): T;
    export function remove(key:string):void;
    export function clear():void;

    export function on<T>(key:string,cb: (value:T)=>void):void;
    export function on<T>(key:string,cb: (value:T,old : T)=>void):void;
    export function on<T>(key:string,cb: (value:T,old : T,url: T)=>void):void;
    
    export function off<T>(key:string,cb: (value:T)=>void):void;
    export function off<T>(key:string,cb: (value:T,old : T)=>void):void;
    export function off<T>(key:string,cb: (value:T,old : T,url: T)=>void):void;
    export default function<T>(key:string,value?:T):void;
}
{'fraction_non_alphanumeric': 0.17164179104477612, 'fraction_numerical': 0.0, 'mean_word_length': 5.5426829268292686, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1290598', 'n_tokens_mistral': 360, 'n_tokens_neox': 354, 'n_words': 83}