UNPKG

338 BTypeScriptView Raw
1import request from 'request';
2/**
3 * Extract file info from a URL.
4 *
5 * @param uri The URI to extract info from.
6 * @param req Optional custom request function or null.
7 * @returns File info.
8 */
9export declare function extract(uri: string, req?: typeof request | null): Promise<{
10 download: string;
11 filename: string | null;
12}>;