Newer
Older
vue-indexer / node_modules / get-uri / dist / file.d.ts
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 555 bytes v1.0
/// <reference types="node" />
/// <reference types="node" />
import { Readable } from 'stream';
import { Stats, createReadStream } from 'fs';
import { GetUriProtocol } from './';
type ReadStreamOptions = NonNullable<Exclude<Parameters<typeof createReadStream>[1], string>>;
interface FileReadable extends Readable {
    stat?: Stats;
}
export interface FileOptions extends ReadStreamOptions {
    cache?: FileReadable;
}
/**
 * Returns a `fs.ReadStream` instance from a "file:" URI.
 */
export declare const file: GetUriProtocol<FileOptions>;
export {};