/** * A wrapper around chdb Session that provides a @clickhouse/client-web compatible interface * This allows the local adapter to use the same operations as the remote adapter */ import type { ChdbSession } from '../types.js'; /** * Parameters for command execution (INSERT, DELETE, CREATE, etc.) */ export interface CommandParams { query: string; query_params?: Record; } /** * Parameters for query execution (SELECT) */ export interface QueryParams { format?: string; query: string; query_params?: Record; } /** * Result from a query execution */ export interface QueryResult { json: () => Promise; text: () => Promise; } /** * ChDB client wrapper providing @clickhouse/client-web compatible interface */ export declare class ChdbClient { private session; constructor(session: ChdbSession); /** * Close the client and cleanup resources */ close(): Promise; /** * Execute a command (INSERT, DELETE, CREATE, etc.) that doesn't return data */ command(params: CommandParams): Promise; /** * Insert data into a table */ insert(params: { format?: string; table: string; values: unknown[]; }): Promise; /** * Execute a query (SELECT) and return results */ query(params: QueryParams): Promise>; } //# sourceMappingURL=chdbClient.d.ts.map