@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
13 lines (12 loc) • 513 B
TypeScript
import { Fs, File } from '../../fs/type';
import { ReadableStream } from 'stream/web';
export declare class Publisher {
private fs;
constructor(fs: Fs);
publishSource(src: Uint8Array | string, ...filenames: string[]): Promise<void>;
publishFiles(src: ReadableStream<Uint8Array>, ...filenames: string[]): Promise<void>;
private openFilesForWriting;
private copyToWriter;
private copyStreamToWriter;
}
export declare function openFileForWriting(fs: Fs, filename: string): Promise<File>;