/** * postgres-mcp - Code Mode API * * Main API class exposing all 24 tool groups organized for the * sandboxed code execution environment. */ import type { PostgresAdapter } from "../../adapters/postgresql/postgres-adapter.js"; /** * Main API class exposing all tool groups */ export declare class PgApi { readonly core: Record Promise>; readonly transactions: Record Promise>; readonly jsonb: Record Promise>; readonly text: Record Promise>; readonly performance: Record Promise>; readonly admin: Record Promise>; readonly monitoring: Record Promise>; readonly backup: Record Promise>; readonly schema: Record Promise>; readonly vector: Record Promise>; readonly postgis: Record Promise>; readonly partitioning: Record Promise>; readonly stats: Record Promise>; readonly cron: Record Promise>; readonly partman: Record Promise>; readonly kcache: Record Promise>; readonly citext: Record Promise>; readonly ltree: Record Promise>; readonly pgcrypto: Record Promise>; readonly introspection: Record Promise>; readonly migration: Record Promise>; readonly security: Record Promise>; readonly roles: Record Promise>; readonly docstore: Record Promise>; private readonly toolsByGroup; constructor(adapter: PostgresAdapter); /** * Group tools by their tool group */ private groupTools; /** * Get list of available groups and their method counts */ getAvailableGroups(): Record; /** * Get list of methods available in a group */ getGroupMethods(groupName: string): string[]; /** * Get help information listing all groups and their methods. * Call pg.help() in code mode to discover available APIs. * * @returns Object with group names as keys and arrays of method names as values */ help(): Record; /** * Create a serializable API binding for the sandbox * This creates references that can be called from isolated-vm */ createSandboxBindings(): Record; } /** * Create a PgApi instance for an adapter */ export declare function createPgApi(adapter: PostgresAdapter): PgApi; //# sourceMappingURL=index.d.ts.map