UNPKG

@aidalinfo/office-to-markdown

Version:

Modern TypeScript library for converting Office documents (DOCX) to Markdown format, optimized for Bun runtime with enhanced table support and math equation conversion.

38 lines 998 B
/** * Information about a file stream used for conversion. */ export interface StreamInfo { /** * The MIME type of the file (e.g., "application/vnd.openxmlformats-officedocument.wordprocessingml.document") */ mimetype?: string; /** * The file extension (e.g., ".docx") */ extension?: string; /** * The character encoding (e.g., "utf-8") */ charset?: string; /** * The filename (e.g., "document.docx") */ filename?: string; /** * The local file path */ localPath?: string; /** * The URL if the file was downloaded */ url?: string; } /** * Create a StreamInfo instance with optional parameters. */ export declare function createStreamInfo(options?: Partial<StreamInfo>): StreamInfo; /** * Copy StreamInfo and update with new values. */ export declare function copyAndUpdateStreamInfo(base: StreamInfo, updates: Partial<StreamInfo>): StreamInfo; //# sourceMappingURL=stream-info.d.ts.map