frontend/.pnpm-store/v3/files/af/bc0dfd23b28e68eb459f639e2dbca4efb436a56ef41ced8a36115eef1ddc7523f974b600171d2844fdcb45d6eb915d986c2f365ccd640cc93367ed43e866ca

18 lines
614 B
Plaintext

/// <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 {};