/** * MD Preview PDF Converter * Main converter class that orchestrates the conversion process */ import { ConverterOptions, ConversionResult, ParsedMarkdown } from './types'; /** * MD Preview PDF Converter class */ export declare class Converter { private options; constructor(options?: ConverterOptions); /** * Map document theme to Mermaid predefined theme */ private getMermaidThemeForDocumentTheme; /** * Validate Mermaid theme is one of the predefined themes */ private isValidMermaidTheme; /** * Convert markdown string to PDF buffer */ convertString(markdown: string, basePath?: string): Promise; /** * Convert markdown file to PDF file */ convertFile(inputPath: string, outputPath?: string): Promise; /** * Convert multiple files */ convertFiles(inputPaths: string[], outputDir?: string): Promise; /** * Parse markdown and return structured result (useful for previewing) */ parseMarkdown(markdown: string): ParsedMarkdown; /** * Generate HTML from markdown (useful for previewing) */ generateHtml(markdown: string, basePath?: string): Promise; /** * Update converter options */ setOptions(options: Partial): void; /** * Get current options */ getOptions(): ConverterOptions; /** * Clean up resources (close browser) */ cleanup(): Promise; } /** * Create a converter instance with options */ export declare function createConverter(options?: ConverterOptions): Converter; /** * Quick convert function for simple use cases */ export declare function convert(input: string, output?: string, options?: ConverterOptions): Promise; /** * Convert markdown string to PDF buffer */ export declare function convertString(markdown: string, options?: ConverterOptions): Promise; export default Converter; //# sourceMappingURL=converter.d.ts.map