UNPKG

libreoffice-convert

Version:

A simple and fast node.js module for converting office documents to different formats

23 lines (22 loc) 683 B
/// <reference types="node" /> declare module "libreoffice-convert" { function convert( document: Buffer, format: string, filter: string | undefined, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void ): void; function convertWithOptions( document: Buffer, format: string, filter: string | undefined, options: { tmpOptions?: Record<string | number | symbol, unknown>; asyncOptions?: { times?: number; interval?: number }; sofficeBinaryPaths?: string[]; sofficeAdditionalArgs?: string[]; fileName?: string; }, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void ): void; }