<commit_before>// Type definitions for uuidv4 2.0
// Project: https://github.com/thenativeweb/uuidv4#readme
// Definitions by: <NAME> <https://github.com/Hinaser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare const uuidv4: UUIDv4;

interface UUIDv4_is {
    (value: string): boolean;
}

type EmptyUUIDv4 = '00000000-0000-0000-0000-000000000000';

interface UUIDv4_empty {
    (): string;
}

interface UUIDv4_FromString {
    (text: string): string;
}

interface UUIDv4 {
    (): string;
    is: UUIDv4_is;
    empty: UUIDv4_empty;
    fromString: UUIDv4_FromString;
}

// If you read this because linter warns you like '... has no default export'
// please try to write import statement like
//     import * as uuidv4 from 'uuidv4'
// rather than
//     import uuidv4 from 'uuidv4'
export = uuidv4;<commit_msg>Restructured to more appropriate type definition<commit_after>// Type definitions for uuidv4 2.0
// Project: https://github.com/thenativeweb/uuidv4#readme
// Definitions by: <NAME> <https://github.com/Hinaser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = uuidv4;

declare function uuidv4(): string;

declare namespace uuidv4 {
    type EmptyUUIDv4 = '00000000-0000-0000-0000-000000000000';

    function is(value: string): boolean;

    function empty(): string;

    function fromString(text: string): string;
}
{'fraction_non_alphanumeric': 0.12138728323699421, 'fraction_numerical': 0.0657514450867052, 'mean_word_length': 3.9820143884892087, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '6577807', 'n_tokens_mistral': 514, 'n_tokens_neox': 460, 'n_words': 117}