import Options from '~/interfaces/Options'; /** * Convert a Microsoft Office document to PDF using LibreOffice. * * Spawns LibreOffice in headless mode with an isolated user profile, * so multiple conversions can run in parallel safely. The converted PDF * is written to `outputPath`; parent directories are created if needed. * * Supported formats: `.ppt`, `.pptx`, `.doc`, `.docx`, `.xls`, `.xlsx`. * * @param inputPath Path to the source Office document. * @param outputPath Destination path for the generated PDF. * @param options Optional configuration (custom binary path, language). * @returns Resolves when the PDF has been written to `outputPath`. * * @throws {InputFileNotFoundError} If `inputPath` does not exist. * @throws {UnsupportedFileError} If the file extension is not supported. * @throws {UnsupportedLanguageError} If `options.language` is not a valid code. * @throws {UnsupportedOSError} If the OS is not Linux, macOS, or Windows. * @throws {LibreOfficeNotFoundError} If no LibreOffice binary is found. * @throws {SpecifiedLibreOfficeNotFoundError} If `options.libreOfficeBinaryPath` does not exist. * * @example * // Basic usage * await msoffice2pdf('report.docx', 'report.pdf'); * * @example * // With options * await msoffice2pdf('report.docx', 'report.pdf', { * language: 'ja', * libreOfficeBinaryPath: '/opt/libreoffice26.2/program/soffice', * }); */ declare const _default: (inputPath: string, outputPath: string, options?: Options) => Promise; export default _default;