UNPKG

@now/build-utils

Version:
26 lines (25 loc) 805 B
/// <reference types="node" /> import { File } from './types'; interface FileFsRefOptions { mode?: number; contentType?: string; fsPath: string; } interface FromStreamOptions { mode: number; contentType?: string; stream: NodeJS.ReadableStream; fsPath: string; } declare class FileFsRef implements File { type: 'FileFsRef'; mode: number; fsPath: string; contentType: string | undefined; constructor({ mode, contentType, fsPath }: FileFsRefOptions); static fromFsPath({ mode, contentType, fsPath, }: FileFsRefOptions): Promise<FileFsRef>; static fromStream({ mode, contentType, stream, fsPath, }: FromStreamOptions): Promise<FileFsRef>; toStreamAsync(): Promise<NodeJS.ReadableStream>; toStream(): NodeJS.ReadableStream; } export = FileFsRef;