openclaw/secure/pdf-parse.d.ts
Claude b5d78db832
feat: add document analysis + PostgreSQL/Redis persistence
- Add document analysis for PDFs, text, code files (up to 20MB)
- Add PostgreSQL storage for task persistence (survives restarts)
- Add Redis for conversation caching (24hr TTL)
- Create storage.ts abstraction layer with fallback to memory
- Update scheduler to persist tasks to database
- Update config with DATABASE_URL and REDIS_URL support
- Add railway.toml for Railway deployment
- Update README with new architecture and features

https://claude.ai/code/session_015VqJ7gN4vaxtYfYc92UjLs
2026-01-30 07:13:06 +00:00

14 lines
344 B
TypeScript

declare module "pdf-parse" {
interface PDFData {
numpages: number;
numrender: number;
info: Record<string, unknown>;
metadata: Record<string, unknown> | null;
text: string;
version: string;
}
function pdfParse(dataBuffer: Buffer, options?: Record<string, unknown>): Promise<PDFData>;
export default pdfParse;
}