import { Tool, JSONToolOutput, BaseToolOptions, BaseToolRunOptions, ToolEmitter, ToolInput } from '../base.cjs'; import { z } from 'zod'; import { Options, Sequelize } from 'sequelize'; import { Provider } from './metadata.cjs'; import { AnyToolSchemaLike } from '../../internals/helpers/schema.cjs'; import 'ajv'; import '../../context.cjs'; import '../../emitter-D4OcelZ9.cjs'; import '../../internals/types.cjs'; import '../../internals/helpers/guards.cjs'; import '../../internals/serializable.cjs'; import '../../internals/helpers/promise.cjs'; import '../../errors.cjs'; import 'promise-based-task'; import '../../cache/base.cjs'; import 'zod-to-json-schema'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ interface ToolOptions extends BaseToolOptions { provider: Provider; connection: Options; } type ToolRunOptions = BaseToolRunOptions; declare const SQLToolAction: { readonly GetMetadata: "GET_METADATA"; readonly Query: "QUERY"; }; declare class SQLToolOutput extends JSONToolOutput { } declare class SQLTool extends Tool { name: string; description: string; inputSchema(): z.ZodObject<{ action: z.ZodNativeEnum<{ readonly GetMetadata: "GET_METADATA"; readonly Query: "QUERY"; }>; query: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "GET_METADATA" | "QUERY"; query?: string | undefined; }, { action: "GET_METADATA" | "QUERY"; query?: string | undefined; }>; readonly emitter: ToolEmitter, SQLToolOutput>; constructor(options: ToolOptions); protected validateInput(schema: AnyToolSchemaLike, input: unknown): asserts input is ToolInput; protected connection(): Promise; protected _run(input: ToolInput, _options: Partial): Promise; protected executeQuery(query: string, provider: Provider, schema: string | undefined): Promise; private isReadOnlyQuery; destroy(): Promise; } export { SQLTool, SQLToolAction, SQLToolOutput };