import type { Column, Dialect, Table } from 'drizzle-orm';
import type { PgDatabase } from 'drizzle-orm/pg-core';
import type { RstoreDrizzleCondition } from '../../utils/types.js';
import * as drizzle from 'drizzle-orm';
export interface RstoreDrizzleQueryParams {
    where?: string;
    limit?: number;
}
export declare function getDrizzleTableFromModel(modelName: string): {
    table: Table<drizzle.TableConfig<Column<any, object, object>>>;
    tableKey: string | undefined;
    primaryKeys: string[];
};
export declare function getDrizzleCondition(table: Table, condition: RstoreDrizzleCondition): any;
export declare function getDrizzleDialect(): Dialect;
export declare function getDrizzleKeyWhere(key: string, primaryKeys: string[], table: Table): drizzle.SQL<unknown> | undefined;
export declare function rstoreUseDrizzle(): PgDatabase<any>;
