import type { ReadonlyJSONValue } from '../../../shared/src/json.ts';
import { type AnyQuery } from '../../../zql/src/query/query-impl.ts';
import { type TransformResponseMessage } from '../../../zero-protocol/src/custom-queries.ts';
import type { Schema } from '../../../zero-schema/src/builder/schema-builder.ts';
import type { MaybePromise } from '../../../shared/src/types.ts';
/**
 * Invokes the callback `cb` for each query in the request or JSON body.
 * The callback should return a Query or Promise<Query> that is the transformed result.
 *
 * This function will call `cb` in parallel for each query found in the request.
 *
 * If you need to limit concurrency, you can use a library like `p-limit` to wrap the `cb` function.
 */
export declare function handleGetQueriesRequest<S extends Schema>(cb: (name: string, args: readonly ReadonlyJSONValue[]) => MaybePromise<{
    query: AnyQuery;
}>, schema: S, requestOrJsonBody: Request | ReadonlyJSONValue): Promise<TransformResponseMessage>;
//# sourceMappingURL=process-queries.d.ts.map