mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
23 lines
608 B
TypeScript
23 lines
608 B
TypeScript
|
|
import { Range } from "./parseRangeHeader";
|
||
|
|
import { Stream } from "stream";
|
||
|
|
export type Content = {
|
||
|
|
/**
|
||
|
|
* Returns a readable stream based on the provided range (optional).
|
||
|
|
* @param {Range} range The start-end range of stream data.
|
||
|
|
* @returns {Stream} A readable stream
|
||
|
|
*/
|
||
|
|
getStream(range?: Range): Stream;
|
||
|
|
/**
|
||
|
|
* Total size of the content
|
||
|
|
*/
|
||
|
|
readonly totalSize: number;
|
||
|
|
/**
|
||
|
|
* Mime type to be sent in Content-Type header
|
||
|
|
*/
|
||
|
|
readonly mimeType: string;
|
||
|
|
/**
|
||
|
|
* File name to be sent in Content-Disposition header
|
||
|
|
*/
|
||
|
|
readonly fileName: string;
|
||
|
|
};
|