import { QueryInterface, SortableOptions } from '@midway3-components/core'; import { ORDER } from '@midway3-components/core/dist/data'; import { SQL, SQLWrapper } from 'drizzle-orm'; import { EntityClass } from './decorator/entity'; import { Drizzle } from './drizzle'; import { Query, QueryConfig, QueryResultOf, QuerySession } from './query'; import { ActiveRecordOf, RowOf } from './types'; export type Condition = SQL | Partial ? RowOf

: T>; export declare class ActiveQuery implements QueryInterface, SQLWrapper { readonly query: Query; readonly modelClass?: EntityClass | undefined; static create(entityClz: EntityClass, dataSource?: Drizzle | string): ActiveQuery; static create>(query: Q): ActiveQuery>; constructor(query: Query, modelClass?: EntityClass | undefined); protected getConfig(): QueryConfig; protected setConfig(val: Partial): void; where(condition: Condition | null): this; limit(value: number | null): this; offset(value: number | null): this; orderBy(value: Record | null): this; addOrderBy(value: Record): this; sortableOptions(): SortableOptions; all(): Promise; one(): Promise; protected getSession(): QuerySession; count(): Promise; getSQL(): SQL; } //# sourceMappingURL=activeQuery.d.ts.map