import { BaseApi } from "../base-api"; import type { ApiRecordsV2 } from "../types"; import type { CreateNqlQueryRequest, GetQueriesParams, NqlOwnedQueryResponse, NqlQueryAst, NqlQueryCollaborators, NqlQueryMetadata, NqlQueryOwner, NqlQueryResponse, NqlSharedQueryResponse, UpdateNqlQueryRequest } from "./types"; /** * A class for accessing the Queries API. * @extends BaseApi */ declare class QueriesApi extends BaseApi { /** * Gets a paginated list of accessible queries from the API. * * @param {GetQueriesParams} [params] - Optional pagination, ownership, tag, owner, and keyword filters. * @returns {Promise>} A promise that resolves with the paginated list of queries. */ getQueries(params?: GetQueriesParams): Promise>; /** * Gets a single query from the API by its ID. * * @param {number} queryId - The ID of the query to retrieve. * @returns {Promise} A promise that resolves with the query. */ getQuery(queryId: string): Promise; /** * Deletes a single query from the API by its ID. * * @param {number} queryId - The ID of the query to delete. * @returns {Promise} A promise that resolves when the delete operation is complete. */ deleteQuery(queryId: string): Promise; /** * Creates a new query on the API. * * @param {CreateNqlQueryRequest} data - The data for the new query. * @returns {Promise} A promise that resolves with the newly created query. */ createQuery(data: CreateNqlQueryRequest): Promise; /** * Updates an existing query on the API. * * @param {string} queryId - The ID of the query to update. * @param {UpdateNqlQueryRequest} data - The updated data for the query. * @returns {Promise} A promise that resolves with the updated query. */ updateQuery(queryId: string, data: UpdateNqlQueryRequest): Promise; } export { type CreateNqlQueryRequest, type GetQueriesParams, type NqlOwnedQueryResponse, type NqlQueryAst, type NqlQueryCollaborators, type NqlQueryMetadata, type NqlQueryOwner, type NqlQueryResponse, type NqlSharedQueryResponse, QueriesApi, type UpdateNqlQueryRequest, };