import { entityKind } from "../entity.cjs"; import { MySqlDatabase } from "../mysql-core/db.cjs"; import type { DrizzleConfig } from "../utils.cjs"; import { type MySqlRemotePreparedQueryHKT, type MySqlRemoteQueryResultHKT } from "./session.cjs"; export declare class MySqlRemoteDatabase = Record> extends MySqlDatabase { static readonly [entityKind]: string; } export type RemoteCallback = (sql: string, params: any[], method: 'all' | 'execute') => Promise<{ rows: any[]; insertId?: number; affectedRows?: number; }>; export declare function drizzle = Record>(callback: RemoteCallback, config?: DrizzleConfig): MySqlRemoteDatabase;