fcs
2025-04-10 0163870d662dc5b7d69ceff977490ede594f7d82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// <reference types="node" />
import { Readable } from 'stream';
import { UrlWithStringQuery } from 'url';
import { Stats, createReadStream } from 'fs';
import { GetUriOptions } from '.';
declare type ReadStreamOptions = Exclude<Parameters<typeof createReadStream>[1], string>;
interface FileReadable extends Readable {
    stat?: Stats;
}
declare type FileOptions = GetUriOptions & ReadStreamOptions & {
    cache?: FileReadable;
};
/**
 * Returns a `fs.ReadStream` instance from a "file:" URI.
 */
export default function get({ href: uri }: UrlWithStringQuery, opts: FileOptions): Promise<Readable>;
export {};