import { Client } from 'soap'; import { PQLOptions } from './pql'; import { GetByStatement, GetByStatementResponseResult } from './statement'; import { Value, ValueKey } from './value'; /** * Query a service wth PQL options. * * If a client's method matches that of a usual query statement, * using this function will infer the query object. * * @deprecated Use {@link function:getByStatement} * * @example * ``` * query(client, 'getLineItemsByStatementAsync', { * where: { * id: 123 * } * }) * ``` * Is syntactical sugar for: * ``` * client.getLineItemsByStatementAsync({ * filterStatement: { * query: pql({ * where: { * id: 123 * } * }) * } * }) * ``` */ export declare function query = Value, Args extends unknown[] = []>(client: C, methodName: Parameters extends [GetByStatement, ...unknown[]] ? M : never, query: PQLOptions, ValueKey>, values?: V[], ...args: Args): ReturnType;