ftp.d.ts 518 B

1234567891011121314151617
  1. /// <reference types="node" />
  2. import { Options } from 'ftp';
  3. import { Readable } from 'stream';
  4. import { UrlWithStringQuery } from 'url';
  5. import { GetUriOptions } from '.';
  6. interface FTPReadable extends Readable {
  7. lastModified?: Date;
  8. }
  9. interface FTPOptions extends GetUriOptions, Options {
  10. cache?: FTPReadable;
  11. debug?: (s: string) => void;
  12. }
  13. /**
  14. * Returns a Readable stream from an "ftp:" URI.
  15. */
  16. export default function get(parsed: UrlWithStringQuery, opts: FTPOptions): Promise<Readable>;
  17. export {};