import type { PreparedFilterGroup, PreparedQuery, PreparedWhereFilter } from './types/index.js'; /** * Simplifies a query by removing redundant parts * Performs changes in place (assuming prepareQuery has already created a copy) */ export declare function simplifyQuery(query: PreparedQuery): PreparedQuery; /** * Filter groups can be overly expressive and contain redundant information. This function simplifies the filter group to a more concise form. * If the filter group contains only one filter, it will return that filter. * If the filter group contains no filters, then undefined is returned and the filter can be dropped. */ export declare function simplifyFilterGroup(filterGroup: PreparedFilterGroup): PreparedWhereFilter | undefined;