import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { DdClients } from './clients.js'; /** * Tier kind — controls which tools are available to the caller. * - 'free' : get_dd_report (basic), get_risk_score (rate-limited) * - 'compliance' : + nominee, timeline patterns (Pro Compliance €99/mo) * - 'agency' : + statutory_chain, bulk_lookup, watchlist (Agency €199/mo) * * 'enterprise' = treated as 'agency' for tool discovery. */ export type DdTier = 'free' | 'compliance' | 'agency' | 'enterprise'; export interface McpAuditContext { tokenId: string; userId?: string; } export interface DdServerOptions { audit?: McpAuditContext; authorizeLookup?: DdLookupAuthorizer; } export interface DdLookupRequest { country: string; tool: string; depth: 'basic' | 'ddplus'; } export interface DdLookupAccess { upstreamAllowed: boolean; error?: unknown; record?: (upstreamCalled: boolean) => void; } export type DdLookupAuthorizer = (request: DdLookupRequest) => DdLookupAccess | Promise; export declare function buildDdServer(clients: DdClients, tier?: DdTier, opts?: DdServerOptions): McpServer; //# sourceMappingURL=server.d.ts.map