27 lines
561 B
TypeScript
27 lines
561 B
TypeScript
declare module 'got' {
|
|
interface GotFn {
|
|
(url: string, options?: any): Promise<{ body: string }>
|
|
stream(url: string, optoins?: any): any
|
|
}
|
|
const got: GotFn
|
|
export = got
|
|
}
|
|
|
|
declare module 'caw'
|
|
|
|
declare module 'download' {
|
|
import type { Duplex } from 'stream'
|
|
interface DownloadOptions {
|
|
extract?: boolean
|
|
strip?: number
|
|
filename?: string
|
|
proxy?: string
|
|
}
|
|
function download(
|
|
url: string,
|
|
destination?: string | DownloadOptions,
|
|
options?: DownloadOptions
|
|
): PromiseLike<Buffer> & Duplex
|
|
export = download
|
|
}
|