export declare const MCP_LOG_BODY_CAP: number; export declare const MCP_LOG_TTL_DAYS: number; export declare const MCP_LOG_INTENT_CAP = 500; export type McpCaller = { id?: number; auth_attributes?: { business_id?: number; api_key_kind?: string; client_id?: string; }; }; export type SanitizedMcpCallLog = { client_id: string | null; user_id: number | null; business_id: number | null; kind: string; request: unknown; }; export declare function sanitizeMcpCallLog(input: { headers?: Record; request?: unknown; user?: McpCaller | null; }): SanitizedMcpCallLog; export declare function capResponseBody(body: unknown, cap?: number): { body?: unknown; truncated: boolean; bytes: number; }; export declare function hashCompiledSql(sql: string): string; export declare function capIntent(value: unknown): string | null; export declare function extractIntent(payload: unknown): string | null; export declare function clusterIntentsBySqlHash(rows: Array<{ sql_hash?: string | null; intent?: string | null; }>, limit?: number): Array<{ sql_hash: string; count: number; intents: Array<{ intent: string; count: number; }>; }>; export declare function catalogGapIntents(rows: Array<{ intent?: string | null; error?: boolean; }>, limit?: number): Array<{ intent: string; count: number; }>; export declare function hottestQueryFamilies(rows: Array<{ sql_hash: string; db_ms: number; }>, limit?: number): Array<{ sql_hash: string; count: number; p95_db_ms: number; }>; export declare function extractExplainCost(plan: unknown): number | null; export declare const SanitizeMcpCallLog: { sanitizeMcpCallLog: typeof sanitizeMcpCallLog; capResponseBody: typeof capResponseBody; hashCompiledSql: typeof hashCompiledSql; hottestQueryFamilies: typeof hottestQueryFamilies; extractExplainCost: typeof extractExplainCost; capIntent: typeof capIntent; extractIntent: typeof extractIntent; clusterIntentsBySqlHash: typeof clusterIntentsBySqlHash; catalogGapIntents: typeof catalogGapIntents; };