/** * postgres-mcp - Code Mode Group API Generator * * Dynamic API generator for tool groups. Creates methods for each tool * in the group, wires up method aliases, and adds special wrapper * functions for text (soundex/metaphone) and performance groups. */ import type { PostgresAdapter } from "../../adapters/postgresql/postgres-adapter.js"; import type { ToolDefinition } from "../../types/index.js"; import type { AuditInterceptor } from "../../audit/index.js"; /** * Dynamic API generator for tool groups. * Creates methods for each tool in the group. * * ยง1: When an auditInterceptor is provided, all handler calls are wrapped * with audit logging + pre-mutation snapshots. This closes the Code Mode * blindspot where sandbox tool calls previously bypassed the audit trail. * Each auditInterceptor.around() adds ~2ms latency per inner tool call. */ export declare function createGroupApi(adapter: PostgresAdapter, groupName: string, tools: ToolDefinition[], auditInterceptor?: AuditInterceptor | null): Record Promise>; /** * Convert tool name to camelCase method name * Examples: * pg_read_query (core) -> readQuery * pg_jsonb_extract (jsonb) -> extract * pg_vector_search (vector) -> search */ export declare function toolNameToMethodName(toolName: string, groupName: string): string; //# sourceMappingURL=group-api.d.ts.map