andy-stack_vaultkeeper-ai/global.d.ts
Andrew Beal 9457fa5b44 Replace unpdf and officeparser with lightweight document parsers
Switch PDF extraction to Obsidian's bundled PDF.js via loadPdfJs() instead of unpdf. Replace officeparser with mammoth for DOCX and custom fflate-based ZIP parsers for PPTX/XLSX/ODF formats. Eliminates heavy dependencies, removes all dynamic eval and .wasm references, and simplifies the esbuild plugin configuration.
2026-06-28 14:06:56 +01:00

22 lines
586 B
TypeScript

declare module '*.css' {
const content: string;
export default content;
}
declare module '*.svg' {
const content: string;
export default content;
}
declare module '*.png' {
const content: string;
export default content;
}
// mammoth ships type declarations for its default entry but not for the browser
// build we import (mammoth/mammoth.browser.js) for mobile safety. The browser build
// exposes the same public API, so we re-use mammoth's own types.
declare module 'mammoth/mammoth.browser.js' {
import mammoth from 'mammoth';
export = mammoth;
}