<commit_before>// Type definitions for backlog-js 0.9.0
// Project: https://github.com/nulab/backlog-js
// Definitions by: <NAME> <https://github.com/vvatanabe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />
/// <reference types="isomorphic-fetch" />

declare class Request {
    private configure;
    constructor(configure: {
        host: string;
        apiKey?: string;
        accessToken?: string;
        timeout?: number;
    });
    get<T>(path: string, params?: any): Promise<T>;
    post<T>(path: string, params?: any): Promise<T>;
    put<T>(path: string, params: any): Promise<T>;
    patch<T>(path: string, params: any): Promise<T>;
    delete<T>(path: string, params?: any): Promise<T>;
    request(options: {
        method: string;
        path: string;
        params?: Params | FormData;<commit_msg>backlog-js should use lib instead of isomorphic-fetch<commit_after>// Type definitions for backlog-js 0.9.0
// Project: https://github.com/nulab/backlog-js
// Definitions by: <NAME> <https://github.com/vvatanabe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

/// <reference types="node" />

declare class Request {
    private configure;
    constructor(configure: {
        host: string;
        apiKey?: string;
        accessToken?: string;
        timeout?: number;
    });
    get<T>(path: string, params?: any): Promise<T>;
    post<T>(path: string, params?: any): Promise<T>;
    put<T>(path: string, params: any): Promise<T>;
    patch<T>(path: string, params: any): Promise<T>;
    delete<T>(path: string, params?: any): Promise<T>;
    request(options: {
        method: string;
        path: string;
        params?: Params | FormData;
{'fraction_non_alphanumeric': 0.16308040770101925, 'fraction_numerical': 0.004530011325028313, 'mean_word_length': 3.237410071942446, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, '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': '2733009', 'n_tokens_mistral': 545, 'n_tokens_neox': 541, 'n_words': 136}