import type { Config } from '@planetscale/database'; import { Client } from '@planetscale/database'; import { entityKind } from "../entity.js"; import type { Logger } from "../logger.js"; import { MySqlDatabase } from "../mysql-core/db.js"; import { type DrizzleConfig } from "../utils.js"; import type { PlanetScalePreparedQueryHKT, PlanetscaleQueryResultHKT } from "./session.js"; export interface PlanetscaleSDriverOptions { logger?: Logger; } export declare class PlanetScaleDatabase = Record> extends MySqlDatabase { static readonly [entityKind]: string; } export declare function drizzle = Record, TClient extends Client = Client>(...params: [ TClient | string ] | [ TClient | string, DrizzleConfig ] | [ (DrizzleConfig & ({ connection: string | Config; } | { client: TClient; })) ]): PlanetScaleDatabase & { $client: TClient; }; export declare namespace drizzle { function mock = Record>(config?: DrizzleConfig): PlanetScaleDatabase & { $client: '$client is not available on drizzle.mock()'; }; }