import { Response, SqlResponse, SQLPredicateBlock, SQLClauseResult } from 'src/models'; /** * SDK for generating the properly formatted query strings based on the API documented * at [developer.domo.com](https://developer.domo.com/docs/dev-studio-references/data-api#SQL%20API). * This is the default export of the library. * ### Example Usage * * ```js * import { SqlClient as Query } from '@domoinc/toolkit'; * * const datasetAlias = 'dsAlias'; * * (new Query()) * .get('alias', `select * from ${datasetalias}`) * .then((data) => { * // do something with the data * console.table(data); * }); * ``` */ export declare class SqlClient { /** * @ignore */ private static sqlOperationParsers; /** * A helper method for reading page filters and transforming each of them * into a SQL predicate. e.g. `"First Name" = 'Stephen Strange`. * There is also an overload version that will concatenate the predicates * together into `WHERE` and `HAVING` clauses (if any, for each). To get * the concatenated predicates, set the @param produceClauses to `true` */ static parsePageFilters(datasets: string[]): Record; static parsePageFilters(datasets: string[], produceClauses: boolean): Record; /** * @ignore */ private static mapFilters; private static escapeSingleQuote; /** * @ignore */ private static joinINValues; /** * @ignore */ private static getExpressionValue; /** * @ignore */ private static buildINClause; /** * @ignore */ private static filterToSQLPredicate; /** * @ignore */ private static sqlPredicatesToClauses; /** * A helper method for generating a GET request. This method also * enables caching requests. * @param {Boolean} useV2Endpoint If set to true, the v2 endpoint will be hit. * Use this endpoint when you need the column names to refer to aliases if your app's manifest. */ get(alias: string, query: string): Promise>; }