/** * MySQL integration client implementation. * * Executes MySQL queries through the Superblocks orchestrator with * runtime validation using Zod schemas. */ import type { z } from "zod"; import type { QueryExecutor, TraceMetadata } from "../registry.js"; import type { IntegrationConfig, IntegrationClientImpl } from "../types.js"; import type { MySQLClient } from "./types.js"; /** * Internal implementation of the MySQL client. */ export declare class MySQLClientImpl implements MySQLClient, IntegrationClientImpl { readonly config: IntegrationConfig; private readonly executeQuery; constructor(config: IntegrationConfig, executeQuery: QueryExecutor); get name(): string; get pluginId(): string; /** * Builds a MySQL request object from SQL and parameters. * * When params are provided, the SQL body is sent with placeholders intact * (e.g. ?) and the parameter values are passed via the `parameters` field * as a JSON-stringified array for server-side binding. * * @param sql - The SQL query with optional ? placeholders * @param params - Optional array of parameter values for server-side binding * @returns The plugin request object */ private buildRequest; query(sql: string, schema: z.ZodSchema, params?: unknown[], metadata?: TraceMetadata): Promise; execute(sql: string, params?: unknown[], metadata?: TraceMetadata): Promise<{ rowCount: number; }>; } //# sourceMappingURL=client.d.ts.map