UNPKG

523 BTypeScriptView Raw
1/// <reference types="node" />
2import { File } from './types';
3interface FileRefOptions {
4 mode?: number;
5 digest: string;
6 contentType?: string;
7 mutable?: boolean;
8}
9export default class FileRef implements File {
10 type: 'FileRef';
11 mode: number;
12 digest: string;
13 contentType: string | undefined;
14 private mutable;
15 constructor({ mode, digest, contentType, mutable, }: FileRefOptions);
16 toStreamAsync(): Promise<NodeJS.ReadableStream>;
17 toStream(): NodeJS.ReadableStream;
18}
19export {};