import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; export interface RetrievalConfig { toolName: string; documentType: string; documentTypeLabel: string; fields: string[]; purpose: string; documentId?: string; shape?: 'fields' | 'photo'; } export declare function retrieveWithConsent(server: McpServer, vaultDir: string, key: Uint8Array, cfg: RetrievalConfig): Promise;