UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

20 lines (19 loc) 671 B
import { URLConfig } from '../type'; import { Fs, File } from '../../fs/type'; export declare class Publisher { private pubFs; private urlSvc; constructor(pubFs: Fs, urlSvc: URLConfig); openPublishFileForWriting(filename: string): Promise<FileWritable>; private openFilesForWriting; private openFileForWriting; private isFileNotFoundError; } import { Writable } from 'stream'; declare class FileWritable extends Writable { file: File; constructor(file: File); _write(chunk: Buffer, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void; _final(callback: (error?: Error | null) => void): void; } export {};