/** * visus_read_excel MCP Tool * * Reads and sanitizes an Excel workbook (.xlsx or .xls) from a local path or URL. * All cell content passes through the IPI injection scanner before being returned. * * CRITICAL: ALL content MUST pass through the sanitizer. This cannot be bypassed. * * Pipeline order: * 1. Fetch file (local or remote) as binary buffer * 2. Parse with SheetJS * 3. IPI threat detection on flattened cell content * 4. Sanitization (injection detection + PII redaction) * 5. Token metrics header */ import type { VisusReadExcelInput, VisusReadExcelOutput, Result } from '../types.js'; /** * Fetch content as buffer from a local file path or remote URL */ declare function fetchBuffer(source: string): Promise>; /** * Format rows as a markdown table */ declare function rowsToMarkdownTable(rows: unknown[][], sheetName?: string): string; /** * visus_read_excel tool implementation * * @param input Tool input parameters * @returns Sanitized Excel content with metadata */ export declare function visusReadExcel(input: VisusReadExcelInput): Promise>; export declare const visusReadExcelToolDefinition: { name: string; title: string; description: string; inputSchema: { type: "object"; properties: { source: { type: string; description: string; }; sheet: { description: string; oneOf: { type: string; }[]; }; format: { type: string; enum: string[]; description: string; default: string; }; }; required: readonly ["source"]; }; readOnlyHint: boolean; destructiveHint: boolean; idempotentHint: boolean; openWorldHint: boolean; }; export { fetchBuffer, rowsToMarkdownTable }; //# sourceMappingURL=visus_read_excel.d.ts.map