import { type Config, type Connection } from '@tidbcloud/serverless'; 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 { TiDBServerlessPreparedQueryHKT, TiDBServerlessQueryResultHKT } from "./session.js"; export interface TiDBServerlessSDriverOptions { logger?: Logger; } export declare class TiDBServerlessDatabase = Record> extends MySqlDatabase { static readonly [entityKind]: string; } export declare function drizzle = Record, TClient extends Connection = Connection>(...params: [ TClient | string ] | [ TClient | string, DrizzleConfig ] | [ ({ connection: string | Config; } | { client: TClient; }) & DrizzleConfig ]): TiDBServerlessDatabase & { $client: TClient; }; export declare namespace drizzle { function mock = Record>(config?: DrizzleConfig): TiDBServerlessDatabase & { $client: '$client is not available on drizzle.mock()'; }; }