import { Config, QueryResult } from '../types'; /** * Trino client wrapper for Treasure Data * Handles authentication, query execution, and connection management */ export declare class TDTrinoClient { private config; private catalog; private client; private defaultDatabase; constructor(config: Config); /** * Executes a SQL query and returns the results * @param sql - SQL query to execute * @returns Query results with columns and data * @throws {Error} If query fails */ query(sql: string): Promise; /** * Executes a SQL statement (for write operations) * @param sql - SQL statement to execute * @returns Execution result with affected rows count * @throws {Error} If execution fails */ execute(sql: string): Promise<{ affectedRows: number; success: boolean; }>; testConnection(): Promise; /** * Escapes a SQL identifier to prevent SQL injection * @param identifier - The identifier to escape * @returns Escaped identifier */ escapeIdentifier(identifier: string): string; /** * Escapes a SQL string literal to prevent SQL injection * @param value - The string value to escape * @returns Escaped string literal */ escapeStringLiteral(value: string): string; /** * Lists all databases accessible to the user * @returns Array of database names */ listDatabases(): Promise; /** * Lists all tables in a database * @param database - Database name * @returns Array of table names */ listTables(database: string): Promise; describeTable(database: string, table: string): Promise>; private wrapError; destroy(): void; /** * Gets the current database/schema name */ get database(): string; } //# sourceMappingURL=trino.d.ts.map