import type { PgTable } from 'drizzle-orm/pg-core';
import type { QueryOp } from '../../typings/routing/crud';
import type { CrudTrashQueryOptions } from '../../typings/comm/crud';
import type { PageResult } from '../../typings/comm/page';
/**
 * 带 join / select / where / extend 的 list / page
 */
export declare function queryWithOp(main: PgTable, body: Record<string, unknown>, op: QueryOp, options: {
    request?: Request;
    mode: 'list' | 'page';
    trash?: CrudTrashQueryOptions;
}): Promise<unknown[] | PageResult>;
