import { PDFDocument } from 'pdf-lib'; export declare function loadPdf(filePath: string, password?: string): Promise; export declare function loadPdfBuffer(filePath: string): Promise; export declare function savePdf(doc: PDFDocument, outputPath: string): Promise<{ path: string; size: number; pages: number; }>; export declare function ensureDir(dirPath: string): Promise; export declare function resolvePageIndices(pages: number[] | undefined, totalPages: number): number[]; export declare function parseColor(input?: string): import("pdf-lib").RGB; export declare function toRadians(degrees: number): number; export declare function formatBytes(bytes: number): string; export declare function errMsg(error: unknown): string; export declare function toolResult(text: string): { content: { type: "text"; text: string; }[]; }; export declare function toolError(message: string): { content: { type: "text"; text: string; }[]; isError: true; }; export declare function embedImage(doc: PDFDocument, imagePath: string): Promise; export declare function getPageSize(name: string): [number, number];