1 | import 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 | */
|
9 | export declare function extract(uri: string, req?: typeof request | null): Promise<{
|
10 | download: string;
|
11 | filename: string | null;
|
12 | }>;
|