import { QueryDef, QueryDefFilter } from '../types.js';
import { SchemaTypeDef } from '@based/schema/def';
import { Operator } from './types.js';
import { Filter, FilterAst } from './types.js';
import { DbClient } from '../../index.js';
export { Operator, Filter };
export declare const filterRaw: (db: DbClient, filter: Filter, schema: SchemaTypeDef, conditions: QueryDefFilter, def: QueryDef) => number;
export declare const filter: (db: DbClient, def: QueryDef, filterAst: FilterAst, conditions: QueryDefFilter) => void;
export declare const filterOr: (db: DbClient, def: QueryDef, filterAst: FilterAst[], conditions: QueryDefFilter) => any;
