cmux/node_modules/@vercel/build-utils/dist/file-fs-ref.d.ts
2026-01-29 17:36:26 -08:00

27 lines
870 B
TypeScript

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