UNPKG

file2md

Version:

A TypeScript library for converting various document types (PDF, DOCX, XLSX, PPTX, HWP, HWPX) into Markdown with image and layout preservation

57 lines 1.36 kB
export interface LibreOfficeInfo { installed: boolean; path?: string; version?: string; error?: string; } export declare class LibreOfficeDetector { private static instance; private cachedInfo?; private constructor(); static getInstance(): LibreOfficeDetector; /** * Check if LibreOffice is installed and get its information */ checkLibreOfficeInstallation(): Promise<LibreOfficeInfo>; /** * Detect LibreOffice based on platform */ private detectLibreOffice; /** * Detect LibreOffice on Windows */ private detectWindows; /** * Detect LibreOffice on macOS */ private detectMacOS; /** * Detect LibreOffice on Linux */ private detectLinux; /** * Get LibreOffice version */ private getVersion; /** * Check if file exists */ private fileExists; /** * Check if LibreOffice version meets minimum requirement */ isVersionSupported(version?: string): boolean; /** * Get installation instructions for current platform */ getInstallationInstructions(): string; /** * Get download URL for current platform */ getDownloadUrl(): string; /** * Clear cached LibreOffice info */ clearCache(): void; } //# sourceMappingURL=libreoffice-detector.d.ts.map