@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
23 lines (22 loc) • 600 B
TypeScript
import { PageTask } from '@pkg/page-filter';
export interface BatchRenderResult {
success: boolean;
processedCount: number;
totalCount: number;
duration: number;
errors: string[];
}
export declare class WorkerState {
private projDir;
private moduleDir;
private initialized;
constructor(projDir: string, moduleDir: string);
initialize(): Promise<void>;
processBatch(pageTasks: PageTask[]): Promise<BatchRenderResult>;
cleanup(): Promise<void>;
getStats(): {
initialized: boolean;
projDir: string;
moduleDir: string;
};
}