<commit_before>// Type definitions for lozad 1.0
// Project: https://github.com/ApoorvSaxena/lozad.js
// Definitions by: <NAME> <https://github.com/plantain-00>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface Option {
    rootMargin?: string;
    threshold?: number;
    load?(element: HTMLElement | HTMLCanvasElement): void;
}

interface Observer {
    observe(): void;
}

declare function lozad(selector?: string, options?: Option): Observer;

declare namespace lozad {
    const prototype: {
    };
}

export as namespace lozad;

export = lozad;<commit_msg>Export Option and Observer interfaces for the Lozad package<commit_after>// Type definitions for lozad 1.1
// Project: https://github.com/ApoorvSaxena/lozad.js
// Definitions by: <NAME> <https://github.com/plantain-00>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace lozad {
    interface Option {
        rootMargin?: string;
        threshold?: number;
        load?(element: HTMLElement | HTMLCanvasElement): void;
    }

    interface Observer {
        observe(): void;
    }

    const prototype: {
    };
}

declare function lozad(selector?: string, options?: lozad.Option): lozad.Observer;

export as namespace lozad;

export = lozad;
{'fraction_non_alphanumeric': 0.12283464566929134, 'fraction_numerical': 0.006299212598425197, 'mean_word_length': 3.724907063197026, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '2722491', 'n_tokens_mistral': 402, 'n_tokens_neox': 395, 'n_words': 99}