import { CatalystApp } from '../catalyst-app'; import { AuthorizedHttpClient } from '../utils/api-request'; import { Component } from '../utils/pojo/common'; type ICatalystTableData = { [tableName: string]: { [x: string]: any; }; }; export declare class ZCQL implements Component { requester: AuthorizedHttpClient; constructor(app: CatalystApp); getComponentName(): string; /** * Executes a Zoho Catalyst Query Language (ZCQL) query on the DataStore tables. * * @param sql - The ZCQL query string to execute. * * @returns A promise that resolves to an array of objects containing the query results. * * @throws CatalystZCQLError Throws an error if: * - The SQL parameter is empty or not a valid string * - The query syntax is invalid * - The query execution fails on the server * * @example * ```typescript * const catalyst = require('zcatalyst-sdk-node'); * * // initialize sdk for Catalyst Advanced I/O function * const app = catalyst.initialize(req); * * // Simple SELECT query * const results = await app.zcql().executeZCQLQuery('SELECT * FROM Users WHERE Age > 25'); * console.log(results); * * ``` */ executeZCQLQuery(sql: string): Promise>; /** * Executes an OLAP (Online Analytical Processing) query on the DataStore tables. * * @param sql - The ZCQL query string to execute with OLAP optimization. Must be a non-empty string containing a valid ZCQL query. * * @returns A promise that resolves to an array of objects containing the query results. * * @throws CatalystZCQLError Throws an error if: * - The SQL parameter is empty or not a valid string * - The query syntax is invalid * - The query execution fails on the server * * @example * ```typescript * const catalyst = require('zcatalyst-sdk-node'); * const app = catalyst.initialize(req); * * // Aggregation query * const results = await app.zcql().executeOLAPQuery( * 'SELECT COUNT(Id) FROM Employees GROUP BY Department' * ); * console.log(results); * ``` */ executeOLAPQuery(sql: string): Promise>; } export {};