<commit_before>// Type definitions for ssh2-sftp-client 4.1
// Project: https://github.com/theophilusx/ssh2-sftp-client
// Definitions by: igrayson <https://github.com/igrayson>
//                 <NAME> <https://github.com/ascariandrea>
//                 <NAME> <https://github.com/kartik2406>
//                 <NAME> <https://github.com/viamuli>
//                 Orblazer <https://github.com/orblazer>
//                 <NAME> <https://github.com/gbhmt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as ssh2 from 'ssh2';
import * as ssh2Stream from 'ssh2-streams';

export = sftp;

declare class sftp {
    connect(options: ssh2.ConnectConfig): Promise<ssh2.SFTPWrapper>;

    list(remoteFilePath: string): Promise<sftp.FileInfo[]>;

    exists(remotePath: string): Promise<false | "d" | "-" | "l">;

    stat(remotePath: string): Promise<sftp.FileStats>;

    realPath(remotePath: string): Promise<string>;

    get(path: string, dst?: string | NodeJS.ReadableStream, options?: boolean): Promise<string | NodeJS.ReadableStream | Buffer>;

    fastGet(remoteFilePath: string, localPath: string, options?: ssh2Stream.TransferOptions): Promise<string>;

    put(input: string | Buffer | NodeJS.ReadableStream, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise<string>;

    fastPut(localPath: string, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise<string>;

    cwd(): Promise<string>;

    mkdir(remoteFilePath: string, recursive?: boolean): Promise<string>;

    rmdir(remoteFilePath: string, recursive?: boolean): Promise<string>;

    delete(remoteFilePath: string): Promise<string>;
<commit_msg>update index.d.ts: fix sft.get options param (#40305)<commit_after>// Type definitions for ssh2-sftp-client 4.1
// Project: https://github.com/theophilusx/ssh2-sftp-client
// Definitions by: igrayson <https://github.com/igrayson>
//                 <NAME> <https://github.com/ascariandrea>
//                 <NAME> <https://github.com/kartik2406>
//                 <NAME> <https://github.com/viamuli>
//                 Orblazer <https://github.com/orblazer>
//                 <NAME> <https://github.com/gbhmt>
//                 <NAME> <https://github.com/builtbylane>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as ssh2 from 'ssh2';
import * as ssh2Stream from 'ssh2-streams';

export = sftp;

declare class sftp {
    connect(options: ssh2.ConnectConfig): Promise<ssh2.SFTPWrapper>;

    list(remoteFilePath: string): Promise<sftp.FileInfo[]>;

    exists(remotePath: string): Promise<false | "d" | "-" | "l">;

    stat(remotePath: string): Promise<sftp.FileStats>;

    realPath(remotePath: string): Promise<string>;

    get(path: string, dst?: string | NodeJS.ReadableStream, options?: ssh2Stream.TransferOptions): Promise<string | NodeJS.ReadableStream | Buffer>;

    fastGet(remoteFilePath: string, localPath: string, options?: ssh2Stream.TransferOptions): Promise<string>;

    put(input: string | Buffer | NodeJS.ReadableStream, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise<string>;

    fastPut(localPath: string, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise<string>;

    cwd(): Promise<string>;

    mkdir(remoteFilePath: string, recursive?: boolean): Promise<string>;

    rmdir(remoteFilePath: string, recursive?: boolean): Promise<string>;

    delete(remoteFilePath: string): Promise<string>;

{'fraction_non_alphanumeric': 0.14732912119471567, 'fraction_numerical': 0.011487650775416428, 'mean_word_length': 3.850974930362117, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 17, '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': '3083975', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1023, 'n_words': 216}