/**
 * Document Management MCP Tools
 *
 * Extracted from src/index.ts Task 22.
 * Tools: ocr_document_list, ocr_document_get, ocr_document_delete,
 *        ocr_document_find_similar
 *
 * CRITICAL: NEVER use console.log() - stdout is reserved for JSON-RPC protocol.
 * Use console.error() for all logging.
 *
 * @module tools/documents
 */
import { type ToolResponse, type ToolDefinition } from './shared.js';
/**
 * Handle ocr_document_list - List documents in the current database.
 *
 * Supports both offset-based and cursor-based pagination.
 * When `cursor` is provided, keyset pagination is used (more efficient for large datasets).
 */
export declare function handleDocumentList(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_document_get - Get detailed information about a specific document
 */
export declare function handleDocumentGet(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_document_delete - Delete a document and all its derived data
 */
export declare function handleDocumentDelete(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_document_find_similar - Find documents similar to a given document
 * using averaged chunk embeddings as document centroid for vector search.
 */
export declare function handleFindSimilar(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_document_update_metadata - Batch update metadata for multiple documents
 */
export declare function handleUpdateMetadata(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_document_duplicates - Detect duplicate documents
 */
export declare function handleDuplicateDetection(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_document_structure - Analyze document structure
 *
 * Supports three formats:
 * - 'structure' (default): headings, tables, figures, code blocks from json_blocks or chunks
 * - 'tree': hierarchical section tree with chunk_ids, page_numbers (merged from ocr_document_sections)
 * - 'outline': flat numbered outline with chunk counts (merged from ocr_document_sections)
 */
export declare function handleDocumentStructure(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Handle ocr_export - Unified export for single document or entire corpus
 * If document_id is provided: exports that document (json/markdown)
 * If document_id is omitted: exports entire corpus (json/csv)
 */
export declare function handleExport(params: Record<string, unknown>): Promise<ToolResponse>;
/**
 * Document tools collection for MCP server registration
 */
export declare const documentTools: Record<string, ToolDefinition>;
//# sourceMappingURL=documents.d.ts.map