import { Memory, Filter, OrderCmd, ReduceDefault, ID, DIC, QUERY_ARGS, SortCmd, DEFAULT_RULE_TYPE, } from './type' import { Finder } from './finder' import { List } from './list' export declare class Query { _is_uniq: boolean _all_ids: string[] _reduce?: A[1] & ReduceDefault _step: number _filters: Filter[] _finder: Finder _group: any _cache: { [idx: string]: any } $sort: { [path: string]: OrderCmd } $partition: any $page_by: any $memory: Memory all: Query get reduce(): A[1] & ReduceDefault get list(): List get hash(): DIC get memory(): Memory get ids(): string[] static build({ $sort, $memory, }: { $sort: any $memory: any }): Query constructor(base: any, tap: (this: Query) => void) _copy({ all, _all_ids, _group, _is_uniq, _filters, $sort, $partition, $page_by, }: { all: any _all_ids: any _group: any _is_uniq: any _filters: any $sort: any $partition: any $page_by: any }): void in(req: QUERY_ARGS): Query where(req: (o: A[0]) => any): Query where(req: QUERY_ARGS): Query partition(...ary: string[]): Query distinct(b?: boolean): Query distance(key: any, order: any, point: any): Query search(text: any, target?: string): Query shuffle(): Query order(keys: string | string[], order: OrderCmd): Query sort(...sort: SortCmd): Query page(page_by: number): Query form(...ids: ID[]): any find(...ids: ID[]): A[0] | null finds(ids: ID[]): A[0][] pluck(...keys: ID[]): List }