/** * Native DuckDB MCP tools - Exported for embedding in other MCP servers * @public */ import { DuckDBService } from '../duckdb/service.js'; import { z } from 'zod'; export declare const nativeToolSchemas: { query_duckdb: z.ZodObject<{ sql: z.ZodString; limit: z.ZodDefault>; space_id: z.ZodOptional; }, z.core.$strip>; list_tables: z.ZodObject<{ schema: z.ZodDefault>; space_id: z.ZodOptional; }, z.core.$strip>; describe_table: z.ZodObject<{ table_name: z.ZodString; schema: z.ZodDefault>; space_id: z.ZodOptional; }, z.core.$strip>; load_csv: z.ZodObject<{ path: z.ZodString; table_name: z.ZodString; options: z.ZodOptional; delimiter: z.ZodOptional; quote: z.ZodOptional; }, z.core.$strip>>; space_id: z.ZodOptional; }, z.core.$strip>; load_parquet: z.ZodObject<{ path: z.ZodString; table_name: z.ZodString; space_id: z.ZodOptional; }, z.core.$strip>; export_data: z.ZodObject<{ query: z.ZodString; path: z.ZodString; format: z.ZodDefault>>; space_id: z.ZodOptional; }, z.core.$strip>; }; interface ExecutionContext { duckdb?: DuckDBService; spaceId?: string; applySpaceContext?: (sql: string) => string; metadata?: Record; } export declare const nativeToolHandlers: { /** * Execute SQL query on DuckDB */ query_duckdb: (args: any, context?: ExecutionContext) => Promise<{ success: boolean; rowCount: number; executionTime: number; data: any[]; error?: undefined; } | { success: boolean; error: string; rowCount?: undefined; executionTime?: undefined; data?: undefined; }>; /** * List all tables in a schema */ list_tables: (args: any, context?: ExecutionContext) => Promise<{ success: boolean; schema: string; tables: any[]; error?: undefined; } | { success: boolean; error: string; schema?: undefined; tables?: undefined; }>; /** * Describe table structure */ describe_table: (args: any, context?: ExecutionContext) => Promise<{ success: boolean; table: string; schema: string; columns: any[]; error?: undefined; } | { success: boolean; error: string; table?: undefined; schema?: undefined; columns?: undefined; }>; /** * Load CSV file into DuckDB table */ load_csv: (args: any, context?: ExecutionContext) => Promise<{ success: boolean; message: string; rowCount: any; error?: undefined; } | { success: boolean; error: string; message?: undefined; rowCount?: undefined; }>; /** * Load Parquet file into DuckDB table */ load_parquet: (args: any, context?: ExecutionContext) => Promise<{ success: boolean; message: string; rowCount: any; error?: undefined; } | { success: boolean; error: string; message?: undefined; rowCount?: undefined; }>; /** * Export query results to file */ export_data: (args: any, context?: ExecutionContext) => Promise<{ success: boolean; message: string; path: string; format: "csv" | "json" | "parquet"; error?: undefined; } | { success: boolean; error: string; message?: undefined; path?: undefined; format?: undefined; }>; }; export declare const nativeToolDefinitions: ({ name: string; description: string; inputSchema: { type: string; properties: { sql: { type: string; description: string; }; limit: { type: string; description: string; default: number; }; schema?: undefined; table_name?: undefined; path?: undefined; options?: undefined; query?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { schema: { type: string; description: string; default: string; }; sql?: undefined; limit?: undefined; table_name?: undefined; path?: undefined; options?: undefined; query?: undefined; format?: undefined; }; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { table_name: { type: string; description: string; }; schema: { type: string; description: string; default: string; }; sql?: undefined; limit?: undefined; path?: undefined; options?: undefined; query?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { path: { type: string; description: string; }; table_name: { type: string; description: string; }; options: { type: string; properties: { header: { type: string; description: string; }; delimiter: { type: string; description: string; }; quote: { type: string; description: string; }; }; }; sql?: undefined; limit?: undefined; schema?: undefined; query?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { path: { type: string; description: string; }; table_name: { type: string; description: string; }; sql?: undefined; limit?: undefined; schema?: undefined; options?: undefined; query?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { query: { type: string; description: string; }; path: { type: string; description: string; }; format: { type: string; enum: string[]; description: string; default: string; }; sql?: undefined; limit?: undefined; schema?: undefined; table_name?: undefined; options?: undefined; }; required: string[]; }; })[]; export type QueryDuckDBInput = z.infer; export type ListTablesInput = z.infer; export type DescribeTableInput = z.infer; export type LoadCSVInput = z.infer; export type LoadParquetInput = z.infer; export type ExportDataInput = z.infer; export {}; //# sourceMappingURL=native-tools.d.ts.map